POST
Create a task
Scope:
projects:projects.writehttps://api.holded.com/api/v2/tasksCreates a new task. The response returns the new task `id`.
Request body
object
project_idstringrequired
Project ID
namestringrequired
Task name
descriptionstring | nulloptional
Task description
due_datestring<date> | nulloptional
Due date in ISO 8601
priorityinteger | nulloptional
Task priority
statusstring | nulloptional
Task status
assigned_to[]string[] | nulloptional
Assigned user IDs
Request
python
import requests
url = "https://api.holded.com/api/v2/tasks"
headers = {
"Authorization": "Bearer YOUR_API_KEY",
"Accept": "application/json",
}
payload = {
"project_id": "string",
"name": "string",
"description": "string",
"due_date": "2024-01-15",
"priority": 0,
"status": "string",
"assigned_to": [
"string"
]
}
response = requests.post(url, headers=headers, json=payload)
print(response.json())Responses
Response
json
{
"id": "507f1f77bcf86cd799439011"
}Success responses
201Task createdapplication/jsonobject
idstring
Error responses
400Bad requestapplication/json401Invalid or missing API keyapplication/json403Insufficient permissionsapplication/json422Validation errorapplication/json429Rate limit exceededapplication/json