Blood Bank Donors
Function-calling namespace: bloodBankDonors
- 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.
countByStackTeamId
Source: backend/endpoints/blood-bank-donors/count-by-stack-team-id
Input Fields
| Field | Type | Required |
|---|---|---|
stackTeamId | 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": "bloodBankDonors",
"apiName": "countByStackTeamId",
"data": {
"stackTeamId": "org_123"
}
}'Example Response
{ "status": "ok", "data": {} }create
Source: backend/endpoints/blood-bank-donors/create
Input Fields
| Field | Type | Required |
|---|---|---|
organizationSlug | string | Yes |
name | string | Yes |
gender | string | Yes |
phone | string | Yes |
bloodGroup | string | Yes |
age | int | Yes |
eligibilityStatus | string | Yes |
lastDonationDate | *int64 | No |
notes | 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": "bloodBankDonors",
"apiName": "create",
"data": {
"organizationSlug": "value",
"name": "value",
"gender": "value",
"phone": "+911234567890",
"bloodGroup": "value",
"age": 1,
"eligibilityStatus": "ACTIVE"
}
}'Example Response
{ "status": "ok", "data": {} }listByOrganizationSlug
Source: backend/endpoints/blood-bank-donors/list-by-organization-slug
Input Fields
| Field | Type | Required |
|---|---|---|
organizationSlug | 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": "bloodBankDonors",
"apiName": "listByOrganizationSlug",
"data": {
"organizationSlug": "value"
}
}'Example Response
{ "status": "ok", "data": {} }update
Source: backend/endpoints/blood-bank-donors/update
Input Fields
| Field | Type | Required |
|---|---|---|
id | string | Yes |
name | string | Yes |
gender | string | Yes |
phone | string | Yes |
bloodGroup | string | Yes |
age | int | Yes |
eligibilityStatus | string | Yes |
lastDonationDate | *int64 | No |
notes | 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": "bloodBankDonors",
"apiName": "update",
"data": {
"id": "id_123",
"name": "value",
"gender": "value",
"phone": "+911234567890",
"bloodGroup": "value",
"age": 1,
"eligibilityStatus": "ACTIVE"
}
}'Example Response
{ "status": "ok", "data": {} }