Service Job
The service job resource.
Base/serviceJob
GET
/serviceJobList service jobs
Retrieve a paginated list of service jobs. Filter, order, and select columns with PostgREST query parameters.
Query parameters
selectstringComma-separated columns to return. Defaults to all.
orderstringColumn to sort by, e.g. `createdAt.desc`.
limitintegerMaximum rows to return.
offsetintegerRows to skip, for pagination.
GET/serviceJob
curl --request GET \
--url '<your-host>/serviceJob?select=*&limit=10' \
--header 'Authorization: Bearer <api-key>'Response
[
{
"id": "abc123def456",
"companyId": "xyz789",
"readableId": "xyz789",
"serviceJobKindId": "xyz789",
"status": "string",
"priority": "string",
"scope": "string",
"createdBy": "string"
}
]GET
/serviceJobRetrieve a service job
Fetch a single service job by filtering on `id`.
Query parameters
idstringMatch on the service job's `id`, e.g. `eq.{id}`.
GET/serviceJob
curl --request GET \
--url '<your-host>/serviceJob?id=eq.%7Bid%7D' \
--header 'Authorization: Bearer <api-key>'Response
{
"id": "abc123def456",
"companyId": "xyz789",
"readableId": "xyz789",
"serviceJobKindId": "xyz789",
"status": "string",
"priority": "string",
"scope": "string",
"createdBy": "string"
}POST
/serviceJobCreate a service job
Create a new service job.
Body parameters
readableIdstringrequiredcustomerIdstringReferences customer.id
customerLocationIdstringReferences customerLocation.id
serviceJobKindIdstringrequiredstatusstringrequiredprioritystringrequiredscopestringrequiredsalesOrderIdstringReferences salesOrder.id
sourceReadableIdstringnotesstringcancelReasonstringcommandIdstringPOST/serviceJob
curl --request POST \
--url <your-host>/serviceJob \
--header 'Authorization: Bearer <api-key>' \
--header 'Content-Type: application/json' \
--header 'Prefer: return=representation' \
--data '{"readableId":"xyz789","serviceJobKindId":"xyz789","status":"string","priority":"string","scope":"string"}'Response
{
"id": "abc123def456",
"companyId": "xyz789",
"readableId": "xyz789",
"serviceJobKindId": "xyz789",
"status": "string",
"priority": "string",
"scope": "string",
"createdBy": "string"
}PATCH
/serviceJobUpdate a service job
Update an existing service job, matched on `id`.
Body parameters
readableIdstringrequiredcustomerIdstringReferences customer.id
customerLocationIdstringReferences customerLocation.id
serviceJobKindIdstringrequiredstatusstringrequiredprioritystringrequiredscopestringrequiredsalesOrderIdstringReferences salesOrder.id
sourceReadableIdstringnotesstringcancelReasonstringcommandIdstringPATCH/serviceJob
curl --request PATCH \
--url '<your-host>/serviceJob?id=eq.%7Bid%7D' \
--header 'Authorization: Bearer <api-key>' \
--header 'Content-Type: application/json' \
--header 'Prefer: return=representation' \
--data '{"readableId":"xyz789"}'Response
{
"id": "abc123def456",
"companyId": "xyz789",
"readableId": "xyz789",
"serviceJobKindId": "xyz789",
"status": "string",
"priority": "string",
"scope": "string",
"createdBy": "string"
}DELETE
/serviceJobDelete a service job
Delete a service job, matched on `id`. Returns 204 No Content.
Query parameters
idstringThe `id` of the service job to delete, e.g. `eq.{id}`.
DELETE/serviceJob
curl --request DELETE \
--url '<your-host>/serviceJob?id=eq.%7Bid%7D' \
--header 'Authorization: Bearer <api-key>'204 No Content