POST
/api/public/v1/ticketsCreate a ticket
Create a new ticket in a project. The calling employee is recorded as the reporter.
Request Body
| Property | Type | Description |
|---|---|---|
projectId | string | Owning project. |
title | string | Ticket title. |
description | string | Description. |
status | string | Initial status. |
priority | string | Priority. |
type | string | Ticket type. |
storyPoints | number | Story points. |
dueDate | string | ISO 8601 due date. |
assigneeId | string | Assigned employee ID. |
sprintId | string | Containing sprint ID. |
POSTExample request
curl
curl -X POST "https://www.pxb.app/api/public/v1/tickets" \
-H "X-Organization-Id: your_org_id" \
-H "X-API-Key: your_api_key" \
-H "Content-Type: application/json" \
-d '{
"projectId": "proj_1",
"title": "Wire up auth",
"priority": "HIGH"
}'200Example response
json
{
"message": "Ticket created successfully!",
"content": {
"ticket": {
"id": "tkt_1",
"number": 1
}
}
}