Headers
Workspace ID for which the task is being created
Body
application/json
Available options:
Low, Medium, High curl --request POST \
--url https://api.xenia.team/api/v1/task/createTask \
--header 'Content-Type: application/json' \
--header 'workspace-id: <workspace-id>' \
--header 'x-client-key: <api-key>' \
--header 'x-client-secret: <api-key>' \
--data '{
"title": "room inspection",
"description": "test description",
"priority": "High",
"assignees": [
"dfea8b8a-5b22-4668-b68d-dc641eb3a101",
"b465548d-69fc-42e3-b406-6af3b9d2f62a",
"c027212e-eedd-4fdd-9317-27903b82ed6e"
],
"locationIds": null,
"AssetId": null,
"startTime": "2025-06-24T00:00:00-11:00",
"dueTime": "2025-06-25T23:30:00-11:00",
"isTimeBound": true,
"isMultiTasks": true,
"isAutoTagLocation": true,
"serviceTypeId": "263a3926-9cb1-4ad6-8969-ecfce1674cb7",
"attachment": [
"cb363f7e-c52a-4478-911d-f6a6f791090e/2025/6/24/88127020/screenshot-2020-07-28-at-12-14-39-pm.png",
"cb363f7e-c52a-4478-911d-f6a6f791090e/2025/6/24/88127020/screenshot-2020-07-28-at-12-59-12-pm.png"
],
"AutomationId": null,
"HotelId": "cb363f7e-c52a-4478-911d-f6a6f791090e",
"notification": {
"statusChange": {
"recipients": []
},
"overdue": {
"recipients": [
"e25dd448-7ae7-4588-8767-7e1a316547e5"
]
}
}
}'{
"data": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"title": "<string>",
"description": "<string>",
"priority": "<string>",
"taskStatus": "<string>",
"startTime": "2023-11-07T05:31:56Z",
"dueTime": "2023-11-07T05:31:56Z",
"isTimeBound": true,
"assignees": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
],
"notification": {},
"attachment": [
"<string>"
],
"LocationId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"AssetId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"timezone": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"taskNumber": "<string>",
"taskUniqueId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
],
"extra_meta": {
"message": "<string>"
}
}Creates one or multiple tasks based on request payload.
curl --request POST \
--url https://api.xenia.team/api/v1/task/createTask \
--header 'Content-Type: application/json' \
--header 'workspace-id: <workspace-id>' \
--header 'x-client-key: <api-key>' \
--header 'x-client-secret: <api-key>' \
--data '{
"title": "room inspection",
"description": "test description",
"priority": "High",
"assignees": [
"dfea8b8a-5b22-4668-b68d-dc641eb3a101",
"b465548d-69fc-42e3-b406-6af3b9d2f62a",
"c027212e-eedd-4fdd-9317-27903b82ed6e"
],
"locationIds": null,
"AssetId": null,
"startTime": "2025-06-24T00:00:00-11:00",
"dueTime": "2025-06-25T23:30:00-11:00",
"isTimeBound": true,
"isMultiTasks": true,
"isAutoTagLocation": true,
"serviceTypeId": "263a3926-9cb1-4ad6-8969-ecfce1674cb7",
"attachment": [
"cb363f7e-c52a-4478-911d-f6a6f791090e/2025/6/24/88127020/screenshot-2020-07-28-at-12-14-39-pm.png",
"cb363f7e-c52a-4478-911d-f6a6f791090e/2025/6/24/88127020/screenshot-2020-07-28-at-12-59-12-pm.png"
],
"AutomationId": null,
"HotelId": "cb363f7e-c52a-4478-911d-f6a6f791090e",
"notification": {
"statusChange": {
"recipients": []
},
"overdue": {
"recipients": [
"e25dd448-7ae7-4588-8767-7e1a316547e5"
]
}
}
}'{
"data": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"title": "<string>",
"description": "<string>",
"priority": "<string>",
"taskStatus": "<string>",
"startTime": "2023-11-07T05:31:56Z",
"dueTime": "2023-11-07T05:31:56Z",
"isTimeBound": true,
"assignees": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
],
"notification": {},
"attachment": [
"<string>"
],
"LocationId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"AssetId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"timezone": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"taskNumber": "<string>",
"taskUniqueId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
],
"extra_meta": {
"message": "<string>"
}
}Workspace ID for which the task is being created
Low, Medium, High Show child attributes