Lab Weekly Schedule
Function-calling namespace: labWeeklySchedule
- 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/lab-weekly-schedule/create
Input Fields
| Field | Type | Required | Constraints |
|---|---|---|---|
organizationId | string | Yes | - |
dayOfWeek | integer | No | min: 0; max: 6 |
startTime | string | Yes | format: HH:mm |
endTime | string | Yes | format: HH:mm |
slotDurationMinutes | integer | No | min: 1 |
isActive | boolean | No | nullable |
capacity | integer | No | min: 0 |
bookedCount | integer | No | min: 0 |
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": "labWeeklySchedule",
"apiName": "create",
"data": {
"organizationId": "org_123",
"startTime": "10:30",
"endTime": "10:30"
}
}'Example Response
{ "status": "ok", "data": {} }delete
Source: backend/endpoints/lab-weekly-schedule/delete
Input Fields
| Field | Type | Required | Constraints |
|---|---|---|---|
id | string | Yes | - |
organizationId | 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": "labWeeklySchedule",
"apiName": "delete",
"data": {
"id": "id_123",
"organizationId": "org_123"
}
}'Example Response
{ "status": "ok", "data": {} }getById
Source: backend/endpoints/lab-weekly-schedule/get-by-id
Input Fields
| Field | Type | Required | Constraints |
|---|---|---|---|
id | string | Yes | - |
organizationId | 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": "labWeeklySchedule",
"apiName": "getById",
"data": {
"id": "id_123",
"organizationId": "org_123"
}
}'Example Response
{ "status": "ok", "data": {} }listByOrganization
Source: backend/endpoints/lab-weekly-schedule/list-by-organization
Input Fields
| Field | Type | Required | Constraints |
|---|---|---|---|
organizationId | string | Yes | - |
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": "labWeeklySchedule",
"apiName": "listByOrganization",
"data": {
"organizationId": "org_123"
}
}'Example Response
{ "status": "ok", "data": {} }update
Source: backend/endpoints/lab-weekly-schedule/update
Input Fields
| Field | Type | Required | Constraints |
|---|---|---|---|
organizationId | string | Yes | - |
details | array<object> | Yes | min: 1; dive |
Nested Field Structures
details item
| Field | Type | Required | Constraints |
|---|---|---|---|
dayOfWeek | integer | No | min: 0; max: 6 |
startTime | string | Yes | format: HH:mm |
endTime | string | Yes | format: HH:mm |
slotDurationMinutes | integer | No | min: 1 |
isActive | boolean | No | nullable |
capacity | integer | No | min: 0 |
bookedCount | integer | No | min: 0 |
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": "labWeeklySchedule",
"apiName": "update",
"data": {
"organizationId": "org_123",
"details": [
{
"dayOfWeek": 1,
"startTime": "10:30",
"endTime": "10:30",
"slotDurationMinutes": 1,
"isActive": true,
"capacity": 1,
"bookedCount": 1
}
]
}
}'Example Response
{ "status": "ok", "data": {} }updateByOrganizationAndDay
Source: backend/endpoints/lab-weekly-schedule/update-by-organization-and-day
Input Fields
| Field | Type | Required | Constraints |
|---|---|---|---|
organizationId | string | Yes | - |
dayOfWeek | integer | No | min: 0; max: 6 |
startTime | string | No | format: HH:mm; nullable |
endTime | string | No | format: HH:mm; nullable |
slotDurationMinutes | integer | No | min: 1; nullable |
isActive | boolean | No | nullable |
capacity | integer | No | min: 0; nullable |
bookedCount | integer | No | min: 0; 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": "labWeeklySchedule",
"apiName": "updateByOrganizationAndDay",
"data": {
"organizationId": "org_123"
}
}'Example Response
{ "status": "ok", "data": {} }