Service Import Jobs
Function-calling namespace: serviceImportJobs
- 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/service-import-jobs/create
Input Fields
| Field | Type | Required |
|---|---|---|
organizationId | string | Yes |
createdByStackUserId | string | Yes |
importScope | string | No |
status | string | Yes |
fileName | string | Yes |
idempotencyKey | string | Yes |
workflowId | string | No |
totalRows | int | No |
processedRows | int | No |
successCount | int | No |
warningCount | int | No |
errorCount | int | No |
lastProcessedChunkIndex | *int | No |
summary | string | No |
errorReport | []models.ServiceImportJobError | No |
startedAt | *int64 | No |
completedAt | *int64 | No |
createdAt | *int64 | No |
updatedAt | *int64 | 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": "serviceImportJobs",
"apiName": "create",
"data": {
"organizationId": "org_123",
"createdByStackUserId": "createdbystackuser_123",
"status": "ACTIVE",
"fileName": "value",
"idempotencyKey": "value"
}
}'Example Response
{ "status": "ok", "data": {} }delete
Source: backend/endpoints/service-import-jobs/delete
Input Fields
| Field | Type | Required |
|---|---|---|
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": "serviceImportJobs",
"apiName": "delete",
"data": {
"id": "id_123",
"organizationId": "org_123"
}
}'Example Response
{ "status": "ok", "data": {} }getById
Source: backend/endpoints/service-import-jobs/get-by-id
Input Fields
| Field | Type | Required |
|---|---|---|
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": "serviceImportJobs",
"apiName": "getById",
"data": {
"id": "id_123",
"organizationId": "org_123"
}
}'Example Response
{ "status": "ok", "data": {} }listByOrganization
Source: backend/endpoints/service-import-jobs/list-by-organization
Input Fields
| Field | Type | Required |
|---|---|---|
organizationId | string | Yes |
page | int | No |
pageSize | int | 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": "serviceImportJobs",
"apiName": "listByOrganization",
"data": {
"organizationId": "org_123"
}
}'Example Response
{ "status": "ok", "data": {} }update
Source: backend/endpoints/service-import-jobs/update
Input Fields
| Field | Type | Required |
|---|---|---|
id | string | Yes |
organizationId | string | Yes |
createdByStackUserId | *string | No |
importScope | *string | No |
status | *string | No |
fileName | *string | No |
idempotencyKey | *string | No |
workflowId | *string | No |
totalRows | *int | No |
processedRows | *int | No |
successCount | *int | No |
warningCount | *int | No |
errorCount | *int | No |
lastProcessedChunkIndex | *int | No |
summary | *string | No |
errorReport | *[]models.ServiceImportJobError | No |
startedAt | *int64 | No |
completedAt | *int64 | No |
createdAt | *int64 | No |
updatedAt | *int64 | 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": "serviceImportJobs",
"apiName": "update",
"data": {
"id": "id_123",
"organizationId": "org_123"
}
}'Example Response
{ "status": "ok", "data": {} }