Skip to main content
POST

Create a task

Scope:projects:projects.write
https://api.holded.com/api/v2/tasks

Creates 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/json
object
idstring

Error responses

400Bad requestapplication/json
401Invalid or missing API keyapplication/json
403Insufficient permissionsapplication/json
422Validation errorapplication/json
429Rate limit exceededapplication/json