Toggle Accept/Reject Task Request
Method: PATCH
/api/v1/task-requests/{id}/toggle-accept-reject
Description
This endpoint toggles the status of a task request for a specific sampler or laboratory. It allows changing the task request status to ACCEPTED, REJECTED, or PENDING.
🔑 Authentication
This endpoint requires authentication via headers.
| Param | Value | Type |
|---|---|---|
tenantId | {{tenantId}} | string |
userId | {{userId}} | string |
countryCode | {{countryCode}} | string (optional) |
Path Parameter
| Name | Type | Description |
|---|---|---|
id | string | The unique ID of the task request to toggle. |
Request Body
{
"status": "PENDING",
"samplerOrLaboratoryId": "string"
}
LANGUAGE
CURL REQUEST
curl --request PATCH \
--url /api/v1/task-requests/{id}/toggle-accept-reject \
--header 'accept: application/json' \
--header 'content-type: application/json'
RESPONSE
Click Try It! to start a request and see the response here!