Skip to main content
POST
/
tasks
cURL
curl --request POST \
  --url https://api.usepylon.com/tasks \
  --header 'Authorization: Bearer <token>'
{
  "data": {
    "account": {
      "id": "<string>"
    },
    "assignee": {
      "contact": {
        "email": "<string>",
        "id": "<string>"
      },
      "user": {
        "email": "<string>",
        "id": "<string>"
      }
    },
    "body_html": "<string>",
    "created_at": "<string>",
    "customer_portal_visible": true,
    "due_date": "<string>",
    "id": "<string>",
    "milestone": {
      "id": "<string>"
    },
    "project": {
      "id": "<string>"
    },
    "status": "not_started",
    "title": "<string>",
    "updated_at": "<string>"
  },
  "request_id": "<string>"
}

Authorizations

Authorization
string
header
required

Authorization: Bearer

Query Parameters

title
string
required

Title for this task

body_html
string

Body HTML for this task

milestone_id
string

Milestone ID for this task

status
enum<string>

Status for this task

not_started TaskStatusNotStarted

in_progress TaskStatusInProgress

completed TaskStatusCompleted

Available options:
not_started,
in_progress,
completed
customer_portal_visible
boolean
default:false

Customer portal visible for this task

due_date
string

Due date for this task, in RFC 3339 format

assignee_id
string

Assignee ID for this task

account_id
string

Account ID for this task

project_id
string

Project ID for this task

Response

data
object
request_id
string

The request ID for tracking.