Order Tasks Controller
Create task for an order (optional media files, max 10)
post/orders/{orderId}/tasks
Path parameters
orderIdnumber required
Request body
Example request
{
"title": "Follow up with customer"
}Response
Task created successfully
Example response
{
"id": 1,
"orderId": 1001,
"title": "Follow up with customer",
"description": "Call customer about documents",
"status": {
"id": 1,
"status": "To Do",
"backgroundColor": "#6B7280",
"textColor": "#FFFFFF",
"borderColor": "#4B5563"
},
"priority": "medium",
"assignedToUser": {
"id": 5,
"firstName": "John",
"lastName": "Doe",
"email": "john@example.com"
},
"createdByUser": {
"id": 5,
"firstName": "John",
"lastName": "Doe",
"email": "john@example.com"
},
"media": [
{
"id": 1,
"filename": "document.pdf",
"url": "https://s3.amazonaws.com/bucket/uploads/tasks/uuid.pdf",
"contentType": "application/pdf",
"size": 1024
}
]
}Changes
No recorded changes to this endpoint across all 1 revision of this API.