Skip to main content
POST
/
api
/
v1
/
task
/
createTask?project
Create Task or Project
curl --request POST \
  --url 'https://api.xenia.team/api/v1/task/createTask?project=' \
  --header 'Content-Type: application/json' \
  --header 'x-client-key: <api-key>' \
  --header 'x-client-secret: <api-key>' \
  --data '
{
  "title": "user based project",
  "recurringTask": true,
  "requestThisTask": "Weekly",
  "startTime": "2023-11-07T05:31:56Z",
  "dueTime": "2023-11-07T05:31:56Z",
  "workspaceId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "description": "<string>",
  "recurringByEvery": "Week1",
  "intervalWeek": [
    "Mon"
  ],
  "endDate": "2023-11-07T05:31:56Z",
  "isTimeBound": true,
  "priority": "None",
  "assignees": [
    "3c90c3cc-0d44-4b50-8888-8dd25736052a"
  ],
  "serviceTypeId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "AutomationId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "editInstance": "One",
  "isAutoTagLocation": true,
  "isMultiTasks": true,
  "isProject": true,
  "projectType": "user",
  "notification": {
    "statusChange": {
      "recipients": [
        "<string>"
      ]
    },
    "overdue": {
      "recipients": [
        "<string>"
      ]
    }
  }
}
'
{
  "data": {
    "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "title": "<string>",
    "type": "user",
    "entityIds": [
      "3c90c3cc-0d44-4b50-8888-8dd25736052a"
    ],
    "assigneesRoles": "<array>",
    "metadata": {},
    "isPaused": true,
    "isLocationAutoTag": true,
    "state": "creating",
    "WorkspaceId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "CreatedBy": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "UpdatedBy": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "createdAt": "2023-11-07T05:31:56Z",
    "updatedAt": "2023-11-07T05:31:56Z",
    "deletedAt": "2023-11-07T05:31:56Z"
  },
  "extra_meta": {
    "message": "We are setting up your project, Please check back shortly"
  }
}

Authorizations

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

Body

application/json
title
string
required
Example:

"user based project"

recurringTask
boolean
required
Example:

true

requestThisTask
enum<string>
required
Available options:
Weekly,
Monthly,
Daily
startTime
string<date-time>
required
dueTime
string<date-time>
required
workspaceId
string<uuid>
required

UUID of the workspace.

description
string
recurringByEvery
string
Example:

"Week1"

intervalWeek
enum<string>[]
Available options:
Mon,
Tue,
Wed,
Thu,
Fri,
Sat,
Sun
endDate
string<date-time>
isTimeBound
boolean
priority
enum<string>
Available options:
None,
Low,
Medium,
High,
Critical
assignees
string<uuid>[]
serviceTypeId
string<uuid> | null
AutomationId
string<uuid> | null
editInstance
enum<string>
Available options:
One,
All
Example:

"One"

isAutoTagLocation
boolean
isMultiTasks
boolean
isProject
boolean
projectType
enum<string>
Available options:
user,
asset,
role
notification
object

Response

Successful task and/or project creation

data
object
extra_meta
object