curl --request PUT \
--url https://api.domo.com/v1/projects/{PROJECT_ID}/lists/{LIST_ID}/tasks \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"id": "3",
"projectId": "2",
"projectListId": "4",
"taskName": "Business Plan Review",
"priority": 3,
"contributors": [
27
],
"tags": [],
"archived": false
}
'import requests
url = "https://api.domo.com/v1/projects/{PROJECT_ID}/lists/{LIST_ID}/tasks"
payload = {
"id": "3",
"projectId": "2",
"projectListId": "4",
"taskName": "Business Plan Review",
"priority": 3,
"contributors": [27],
"tags": [],
"archived": False
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
id: '3',
projectId: '2',
projectListId: '4',
taskName: 'Business Plan Review',
priority: 3,
contributors: [27],
tags: [],
archived: false
})
};
fetch('https://api.domo.com/v1/projects/{PROJECT_ID}/lists/{LIST_ID}/tasks', 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.domo.com/v1/projects/{PROJECT_ID}/lists/{LIST_ID}/tasks",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_POSTFIELDS => json_encode([
'id' => '3',
'projectId' => '2',
'projectListId' => '4',
'taskName' => 'Business Plan Review',
'priority' => 3,
'contributors' => [
27
],
'tags' => [
],
'archived' => false
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$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.domo.com/v1/projects/{PROJECT_ID}/lists/{LIST_ID}/tasks"
payload := strings.NewReader("{\n \"id\": \"3\",\n \"projectId\": \"2\",\n \"projectListId\": \"4\",\n \"taskName\": \"Business Plan Review\",\n \"priority\": 3,\n \"contributors\": [\n 27\n ],\n \"tags\": [],\n \"archived\": false\n}")
req, _ := http.NewRequest("PUT", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
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.put("https://api.domo.com/v1/projects/{PROJECT_ID}/lists/{LIST_ID}/tasks")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"id\": \"3\",\n \"projectId\": \"2\",\n \"projectListId\": \"4\",\n \"taskName\": \"Business Plan Review\",\n \"priority\": 3,\n \"contributors\": [\n 27\n ],\n \"tags\": [],\n \"archived\": false\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.domo.com/v1/projects/{PROJECT_ID}/lists/{LIST_ID}/tasks")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"id\": \"3\",\n \"projectId\": \"2\",\n \"projectListId\": \"4\",\n \"taskName\": \"Business Plan Review\",\n \"priority\": 3,\n \"contributors\": [\n 27\n ],\n \"tags\": [],\n \"archived\": false\n}"
response = http.request(request)
puts response.read_body{
"id": "5",
"projectId": "2",
"projectListId": "4",
"taskName": "Business Plan Review",
"createdDate": "2018-08-01T08:00:00Z",
"updatedDate": "2018-08-01T08:00:00Z",
"priority": 3,
"createdBy": 27,
"ownedBy": 27,
"contributors": [
27
],
"attachmentCount": 0,
"tags": [],
"archived": false
}Add a task to a project list.
curl --request PUT \
--url https://api.domo.com/v1/projects/{PROJECT_ID}/lists/{LIST_ID}/tasks \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"id": "3",
"projectId": "2",
"projectListId": "4",
"taskName": "Business Plan Review",
"priority": 3,
"contributors": [
27
],
"tags": [],
"archived": false
}
'import requests
url = "https://api.domo.com/v1/projects/{PROJECT_ID}/lists/{LIST_ID}/tasks"
payload = {
"id": "3",
"projectId": "2",
"projectListId": "4",
"taskName": "Business Plan Review",
"priority": 3,
"contributors": [27],
"tags": [],
"archived": False
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
id: '3',
projectId: '2',
projectListId: '4',
taskName: 'Business Plan Review',
priority: 3,
contributors: [27],
tags: [],
archived: false
})
};
fetch('https://api.domo.com/v1/projects/{PROJECT_ID}/lists/{LIST_ID}/tasks', 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.domo.com/v1/projects/{PROJECT_ID}/lists/{LIST_ID}/tasks",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_POSTFIELDS => json_encode([
'id' => '3',
'projectId' => '2',
'projectListId' => '4',
'taskName' => 'Business Plan Review',
'priority' => 3,
'contributors' => [
27
],
'tags' => [
],
'archived' => false
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$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.domo.com/v1/projects/{PROJECT_ID}/lists/{LIST_ID}/tasks"
payload := strings.NewReader("{\n \"id\": \"3\",\n \"projectId\": \"2\",\n \"projectListId\": \"4\",\n \"taskName\": \"Business Plan Review\",\n \"priority\": 3,\n \"contributors\": [\n 27\n ],\n \"tags\": [],\n \"archived\": false\n}")
req, _ := http.NewRequest("PUT", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
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.put("https://api.domo.com/v1/projects/{PROJECT_ID}/lists/{LIST_ID}/tasks")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"id\": \"3\",\n \"projectId\": \"2\",\n \"projectListId\": \"4\",\n \"taskName\": \"Business Plan Review\",\n \"priority\": 3,\n \"contributors\": [\n 27\n ],\n \"tags\": [],\n \"archived\": false\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.domo.com/v1/projects/{PROJECT_ID}/lists/{LIST_ID}/tasks")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"id\": \"3\",\n \"projectId\": \"2\",\n \"projectListId\": \"4\",\n \"taskName\": \"Business Plan Review\",\n \"priority\": 3,\n \"contributors\": [\n 27\n ],\n \"tags\": [],\n \"archived\": false\n}"
response = http.request(request)
puts response.read_body{
"id": "5",
"projectId": "2",
"projectListId": "4",
"taskName": "Business Plan Review",
"createdDate": "2018-08-01T08:00:00Z",
"updatedDate": "2018-08-01T08:00:00Z",
"priority": 3,
"createdBy": 27,
"ownedBy": 27,
"contributors": [
27
],
"attachmentCount": 0,
"tags": [],
"archived": false
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
The ID of the project
The ID of the list
Query Parameters
The name of the task
An optional description of the task
The date the task is expected to be completed
Priority of task within a list. Setting this property will impact the index of other tasks in the list to maintain sequential order. If not provided the priority will default to 1 and the index of all the other tasks in the list will shift.
The ID of the Domo user that owns the task
An array of user IDs that are assigned as contributors to the task
An array of tags that have been assigned to the task
The maximum amount of results to return (defaults to 10 with a maximum of 50)
The number of records to offset from the beginning of the result list (defaults to 0)
Body
The request body accepts a task object.