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,
"startTime": "2023-11-07T05:31:56Z",
"dueTime": "2023-11-07T05:31:56Z",
"workspaceId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"description": "<string>",
"recurringByEvery": "Week1",
"intervalWeek": [],
"endDate": "2023-11-07T05:31:56Z",
"isTimeBound": true,
"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,
"notification": {
"statusChange": {
"recipients": [
"<string>"
]
},
"overdue": {
"recipients": [
"<string>"
]
}
}
}
'import requests
url = "https://api.xenia.team/api/v1/task/createTask?project="
payload = {
"title": "user based project",
"recurringTask": True,
"startTime": "2023-11-07T05:31:56Z",
"dueTime": "2023-11-07T05:31:56Z",
"workspaceId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"description": "<string>",
"recurringByEvery": "Week1",
"intervalWeek": [],
"endDate": "2023-11-07T05:31:56Z",
"isTimeBound": True,
"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,
"notification": {
"statusChange": { "recipients": ["<string>"] },
"overdue": { "recipients": ["<string>"] }
}
}
headers = {
"x-client-key": "<api-key>",
"x-client-secret": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {
'x-client-key': '<api-key>',
'x-client-secret': '<api-key>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
title: 'user based project',
recurringTask: true,
startTime: '2023-11-07T05:31:56Z',
dueTime: '2023-11-07T05:31:56Z',
workspaceId: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
description: '<string>',
recurringByEvery: 'Week1',
intervalWeek: [],
endDate: '2023-11-07T05:31:56Z',
isTimeBound: true,
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,
notification: {statusChange: {recipients: ['<string>']}, overdue: {recipients: ['<string>']}}
})
};
fetch('https://api.xenia.team/api/v1/task/createTask?project=', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.xenia.team/api/v1/task/createTask?project=",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'title' => 'user based project',
'recurringTask' => true,
'startTime' => '2023-11-07T05:31:56Z',
'dueTime' => '2023-11-07T05:31:56Z',
'workspaceId' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'description' => '<string>',
'recurringByEvery' => 'Week1',
'intervalWeek' => [
],
'endDate' => '2023-11-07T05:31:56Z',
'isTimeBound' => true,
'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,
'notification' => [
'statusChange' => [
'recipients' => [
'<string>'
]
],
'overdue' => [
'recipients' => [
'<string>'
]
]
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"x-client-key: <api-key>",
"x-client-secret: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.xenia.team/api/v1/task/createTask?project="
payload := strings.NewReader("{\n \"title\": \"user based project\",\n \"recurringTask\": true,\n \"startTime\": \"2023-11-07T05:31:56Z\",\n \"dueTime\": \"2023-11-07T05:31:56Z\",\n \"workspaceId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"description\": \"<string>\",\n \"recurringByEvery\": \"Week1\",\n \"intervalWeek\": [],\n \"endDate\": \"2023-11-07T05:31:56Z\",\n \"isTimeBound\": true,\n \"assignees\": [\n \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n ],\n \"serviceTypeId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"AutomationId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"editInstance\": \"One\",\n \"isAutoTagLocation\": true,\n \"isMultiTasks\": true,\n \"isProject\": true,\n \"notification\": {\n \"statusChange\": {\n \"recipients\": [\n \"<string>\"\n ]\n },\n \"overdue\": {\n \"recipients\": [\n \"<string>\"\n ]\n }\n }\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("x-client-key", "<api-key>")
req.Header.Add("x-client-secret", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.xenia.team/api/v1/task/createTask?project=")
.header("x-client-key", "<api-key>")
.header("x-client-secret", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"title\": \"user based project\",\n \"recurringTask\": true,\n \"startTime\": \"2023-11-07T05:31:56Z\",\n \"dueTime\": \"2023-11-07T05:31:56Z\",\n \"workspaceId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"description\": \"<string>\",\n \"recurringByEvery\": \"Week1\",\n \"intervalWeek\": [],\n \"endDate\": \"2023-11-07T05:31:56Z\",\n \"isTimeBound\": true,\n \"assignees\": [\n \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n ],\n \"serviceTypeId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"AutomationId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"editInstance\": \"One\",\n \"isAutoTagLocation\": true,\n \"isMultiTasks\": true,\n \"isProject\": true,\n \"notification\": {\n \"statusChange\": {\n \"recipients\": [\n \"<string>\"\n ]\n },\n \"overdue\": {\n \"recipients\": [\n \"<string>\"\n ]\n }\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.xenia.team/api/v1/task/createTask?project=")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["x-client-key"] = '<api-key>'
request["x-client-secret"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"title\": \"user based project\",\n \"recurringTask\": true,\n \"startTime\": \"2023-11-07T05:31:56Z\",\n \"dueTime\": \"2023-11-07T05:31:56Z\",\n \"workspaceId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"description\": \"<string>\",\n \"recurringByEvery\": \"Week1\",\n \"intervalWeek\": [],\n \"endDate\": \"2023-11-07T05:31:56Z\",\n \"isTimeBound\": true,\n \"assignees\": [\n \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n ],\n \"serviceTypeId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"AutomationId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"editInstance\": \"One\",\n \"isAutoTagLocation\": true,\n \"isMultiTasks\": true,\n \"isProject\": true,\n \"notification\": {\n \"statusChange\": {\n \"recipients\": [\n \"<string>\"\n ]\n },\n \"overdue\": {\n \"recipients\": [\n \"<string>\"\n ]\n }\n }\n}"
response = http.request(request)
puts response.read_body{
"data": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"title": "<string>",
"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"
}
}Projects
Create Project
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,
"startTime": "2023-11-07T05:31:56Z",
"dueTime": "2023-11-07T05:31:56Z",
"workspaceId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"description": "<string>",
"recurringByEvery": "Week1",
"intervalWeek": [],
"endDate": "2023-11-07T05:31:56Z",
"isTimeBound": true,
"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,
"notification": {
"statusChange": {
"recipients": [
"<string>"
]
},
"overdue": {
"recipients": [
"<string>"
]
}
}
}
'import requests
url = "https://api.xenia.team/api/v1/task/createTask?project="
payload = {
"title": "user based project",
"recurringTask": True,
"startTime": "2023-11-07T05:31:56Z",
"dueTime": "2023-11-07T05:31:56Z",
"workspaceId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"description": "<string>",
"recurringByEvery": "Week1",
"intervalWeek": [],
"endDate": "2023-11-07T05:31:56Z",
"isTimeBound": True,
"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,
"notification": {
"statusChange": { "recipients": ["<string>"] },
"overdue": { "recipients": ["<string>"] }
}
}
headers = {
"x-client-key": "<api-key>",
"x-client-secret": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {
'x-client-key': '<api-key>',
'x-client-secret': '<api-key>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
title: 'user based project',
recurringTask: true,
startTime: '2023-11-07T05:31:56Z',
dueTime: '2023-11-07T05:31:56Z',
workspaceId: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
description: '<string>',
recurringByEvery: 'Week1',
intervalWeek: [],
endDate: '2023-11-07T05:31:56Z',
isTimeBound: true,
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,
notification: {statusChange: {recipients: ['<string>']}, overdue: {recipients: ['<string>']}}
})
};
fetch('https://api.xenia.team/api/v1/task/createTask?project=', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.xenia.team/api/v1/task/createTask?project=",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'title' => 'user based project',
'recurringTask' => true,
'startTime' => '2023-11-07T05:31:56Z',
'dueTime' => '2023-11-07T05:31:56Z',
'workspaceId' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'description' => '<string>',
'recurringByEvery' => 'Week1',
'intervalWeek' => [
],
'endDate' => '2023-11-07T05:31:56Z',
'isTimeBound' => true,
'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,
'notification' => [
'statusChange' => [
'recipients' => [
'<string>'
]
],
'overdue' => [
'recipients' => [
'<string>'
]
]
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"x-client-key: <api-key>",
"x-client-secret: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.xenia.team/api/v1/task/createTask?project="
payload := strings.NewReader("{\n \"title\": \"user based project\",\n \"recurringTask\": true,\n \"startTime\": \"2023-11-07T05:31:56Z\",\n \"dueTime\": \"2023-11-07T05:31:56Z\",\n \"workspaceId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"description\": \"<string>\",\n \"recurringByEvery\": \"Week1\",\n \"intervalWeek\": [],\n \"endDate\": \"2023-11-07T05:31:56Z\",\n \"isTimeBound\": true,\n \"assignees\": [\n \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n ],\n \"serviceTypeId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"AutomationId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"editInstance\": \"One\",\n \"isAutoTagLocation\": true,\n \"isMultiTasks\": true,\n \"isProject\": true,\n \"notification\": {\n \"statusChange\": {\n \"recipients\": [\n \"<string>\"\n ]\n },\n \"overdue\": {\n \"recipients\": [\n \"<string>\"\n ]\n }\n }\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("x-client-key", "<api-key>")
req.Header.Add("x-client-secret", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.xenia.team/api/v1/task/createTask?project=")
.header("x-client-key", "<api-key>")
.header("x-client-secret", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"title\": \"user based project\",\n \"recurringTask\": true,\n \"startTime\": \"2023-11-07T05:31:56Z\",\n \"dueTime\": \"2023-11-07T05:31:56Z\",\n \"workspaceId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"description\": \"<string>\",\n \"recurringByEvery\": \"Week1\",\n \"intervalWeek\": [],\n \"endDate\": \"2023-11-07T05:31:56Z\",\n \"isTimeBound\": true,\n \"assignees\": [\n \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n ],\n \"serviceTypeId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"AutomationId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"editInstance\": \"One\",\n \"isAutoTagLocation\": true,\n \"isMultiTasks\": true,\n \"isProject\": true,\n \"notification\": {\n \"statusChange\": {\n \"recipients\": [\n \"<string>\"\n ]\n },\n \"overdue\": {\n \"recipients\": [\n \"<string>\"\n ]\n }\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.xenia.team/api/v1/task/createTask?project=")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["x-client-key"] = '<api-key>'
request["x-client-secret"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"title\": \"user based project\",\n \"recurringTask\": true,\n \"startTime\": \"2023-11-07T05:31:56Z\",\n \"dueTime\": \"2023-11-07T05:31:56Z\",\n \"workspaceId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"description\": \"<string>\",\n \"recurringByEvery\": \"Week1\",\n \"intervalWeek\": [],\n \"endDate\": \"2023-11-07T05:31:56Z\",\n \"isTimeBound\": true,\n \"assignees\": [\n \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n ],\n \"serviceTypeId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"AutomationId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"editInstance\": \"One\",\n \"isAutoTagLocation\": true,\n \"isMultiTasks\": true,\n \"isProject\": true,\n \"notification\": {\n \"statusChange\": {\n \"recipients\": [\n \"<string>\"\n ]\n },\n \"overdue\": {\n \"recipients\": [\n \"<string>\"\n ]\n }\n }\n}"
response = http.request(request)
puts response.read_body{
"data": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"title": "<string>",
"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"
}
}Body
application/json
Example:
"user based project"
Example:
true
Available options:
Weekly, Monthly, Daily UUID of the workspace.
Example:
"Week1"
Available options:
Mon, Tue, Wed, Thu, Fri, Sat, Sun Available options:
None, Low, Medium, High, Critical Available options:
One, All Example:
"One"
Available options:
user, asset, role Show child attributes
Show child attributes
⌘I