Home Collections
Function-calling namespace: homeCollections
- 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/home-collections/create
Input Fields
| Field | Type | Required | Constraints |
|---|---|---|---|
name | string | Yes | - |
orderLevel | integer | No | - |
imageUrl | string | No | - |
webImageUrl | string | No | - |
subTitle | string | No | - |
organizationTypeId | string | Yes | - |
platformServiceCategoryIds | array<string> | No | - |
gridTitle | string | No | - |
featuredTitle | 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": "homeCollections",
"apiName": "create",
"data": {
"name": "value",
"organizationTypeId": "organizationtype_123"
}
}'Example Response
{ "status": "ok", "data": {} }delete
Source: backend/endpoints/home-collections/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": "homeCollections",
"apiName": "delete",
"data": {
"id": "id_123"
}
}'Example Response
{ "status": "ok", "data": {} }getById
Source: backend/endpoints/home-collections/get-by-id
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": "homeCollections",
"apiName": "getById",
"data": {
"id": "id_123"
}
}'Example Response
{ "status": "ok", "data": {} }list
Source: backend/endpoints/home-collections/list
Input Fields
| Field | Type | Required | Constraints |
|---|---|---|---|
page | integer | No | - |
pageSize | integer | No | - |
limit | integer | No | - |
offset | integer | No | - |
search | string | No | - |
organizationTypeId | string | No | - |
organizationTypeName | string | No | - |
platformServiceCategoryId | string | No | - |
sortBy | string | No | - |
sortOrder | 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": "homeCollections",
"apiName": "list",
"data": {
"page": 1,
"pageSize": 1,
"limit": 1,
"offset": 1,
"search": "value",
"organizationTypeId": "organizationtype_123"
}
}'Example Response
{ "status": "ok", "data": {} }update
Source: backend/endpoints/home-collections/update
Input Fields
| Field | Type | Required | Constraints |
|---|---|---|---|
id | string | Yes | - |
name | string | No | nullable |
orderLevel | integer | No | nullable |
imageUrl | string | No | nullable |
webImageUrl | string | No | nullable |
subTitle | string | No | nullable |
organizationTypeId | string | No | nullable |
platformServiceCategoryIds | array<string> | No | - |
gridTitle | string | No | nullable |
featuredTitle | string | No | nullable |
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": "homeCollections",
"apiName": "update",
"data": {
"id": "id_123"
}
}'Example Response
{ "status": "ok", "data": {} }