Organization Types
Function-calling namespace: organizationTypes
- Base URL:
https://api.aivida.in - Engine endpoint:
POST /api - Auth: Stack token middleware enabled in
optionalmode. - Send token in header:
x-stack-access-token: <access_token>(orAuthorization: Bearer <access_token>). - In
optionalmode: no token is allowed; invalid token is rejected with401.
create
Source: backend/endpoints/organization-types/create
Input Fields
| Field | Type | Required | Constraints |
|---|---|---|---|
id | string | No | - |
name | string | Yes | - |
platformServiceCategoryIds | array<string> | No | - |
Example Request
curl -X POST https://api.aivida.in/api \
-H "Content-Type: application/json" \
-H "x-stack-access-token: <access_token_optional>" \
-d '{
"namespace": "organizationTypes",
"apiName": "create",
"data": {
"name": "value"
}
}'Example Response
{ "status": "ok", "data": {} }delete
Source: backend/endpoints/organization-types/delete
Input Fields
| Field | Type | Required | Constraints |
|---|---|---|---|
ID | string | Yes | - |
Example Request
curl -X POST https://api.aivida.in/api \
-H "Content-Type: application/json" \
-H "x-stack-access-token: <access_token_optional>" \
-d '{
"namespace": "organizationTypes",
"apiName": "delete",
"data": {
"ID": "id_123"
}
}'Example Response
{ "status": "ok", "data": {} }get
Source: backend/endpoints/organization-types/get
Input Fields
| Field | Type | Required | Constraints |
|---|---|---|---|
ID | string | Yes | - |
Example Request
curl -X POST https://api.aivida.in/api \
-H "Content-Type: application/json" \
-H "x-stack-access-token: <access_token_optional>" \
-d '{
"namespace": "organizationTypes",
"apiName": "get",
"data": {
"ID": "id_123"
}
}'Example Response
{ "status": "ok", "data": {} }list
Source: backend/endpoints/organization-types/list
Input Fields
| Field | Type | Required | Constraints |
|---|---|---|---|
Page | integer | No | - |
PageSize | integer | No | - |
Example Request
curl -X POST https://api.aivida.in/api \
-H "Content-Type: application/json" \
-H "x-stack-access-token: <access_token_optional>" \
-d '{
"namespace": "organizationTypes",
"apiName": "list",
"data": {
"Page": 1,
"PageSize": 1
}
}'Example Response
{ "status": "ok", "data": {} }update
Source: backend/endpoints/organization-types/update
Input Fields
| Field | Type | Required | Constraints |
|---|---|---|---|
ID | string | Yes | - |
name | string | Yes | nullable |
platformServiceCategoryIds | array<string> | No | - |
Example Request
curl -X POST https://api.aivida.in/api \
-H "Content-Type: application/json" \
-H "x-stack-access-token: <access_token_optional>" \
-d '{
"namespace": "organizationTypes",
"apiName": "update",
"data": {
"ID": "id_123",
"name": "value"
}
}'Example Response
{ "status": "ok", "data": {} }