Skip to main content

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.

ParamValueType
tenantId{{tenantId}}string
userId{{userId}}string
countryCode{{countryCode}}string (optional)

Path Parameter

NameTypeDescription
idstringThe unique ID of the task request to toggle.

Request Body

{
"status": "PENDING",
"samplerOrLaboratoryId": "string"
}

LANGUAGE

AUTHORIZATION

Bearer

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!