Order Tasks Controller

Create task for an order (optional media files, max 10)

post/orders/{orderId}/tasks

Path parameters

orderIdnumber required

Request body

titlestring required
descriptionstring
taskStatusIdnumber
priority'low' | 'medium' | 'high'
dueDatestring date-time
assignedTonumber nullable
filesstring[]

Up to 10 files

Example request

{
  "title": "Follow up with customer"
}

Response

Task created successfully

idnumber required
orderIdnumber required
titlestring required
descriptionstring
prioritystring required
dueDatestring date-time
isOverdueboolean required
completedAtstring date-time
createdAtstring date-time required
updatedAtstring date-time required

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.