Skip to main content
PATCH
/
api
/
v1
/
task
/
setTaskStatus
/
{taskId}
Update Task Status
curl --request PATCH \
  --url https://api.xenia.team/api/v1/task/setTaskStatus/{taskId} \
  --header 'Content-Type: application/json' \
  --header 'x-client-key: <api-key>' \
  --header 'x-client-secret: <api-key>' \
  --data '{
  "status": "In Progress",
  "HotelId": "cb363f7e-c52a-4478-911d-f6a6f791090e"
}'
{
"data": {},
"extra_meta": {
"message": "Task started successfully"
}
}

Authorizations

x-client-key
string
header
required
x-client-secret
string
header
required

Path Parameters

taskId
string<uuid>
required
Example:

"232154c0-c239-48f8-b670-0e5d12fd64d0"

Body

application/json
status
enum<string>
required
Available options:
Open,
In Progress,
On Hold,
Completed
Example:

"In Progress"

HotelId
string<uuid>
required
Example:

"cb363f7e-c52a-4478-911d-f6a6f791090e"

Response

200 - application/json

Task status update result

The response is of type any.

I