Create schedule item

POST /data/schedule-items/

Create a new schedule item with data provided in the request body. JSON format is expected. Similar schedule items cannot exist with same project, task type, and object.

application/json

Body Required

  • project_id string(uuid) Required
  • task_type_id string(uuid) Required
  • object_id string(uuid) Required
  • man_days number

Responses

  • 201 application/json

    Schedule item created successfully

    Hide response attributes Show response attributes object
    • id string(uuid)
    • project_id string(uuid)
    • task_type_id string(uuid)
    • object_id string(uuid)
    • man_days number
    • created_at string(date-time)
    • updated_at string(date-time)
  • 400

    Invalid data format or similar schedule item exists

POST /data/schedule-items/
curl \
 --request POST 'http://api.example.com/data/schedule-items/' \
 --header "Authorization: $API_KEY" \
 --header "Content-Type: application/json" \
 --data '{"project_id":"a24a6ea4-ce75-4665-a070-57453082c25","task_type_id":"b24a6ea4-ce75-4665-a070-57453082c25","object_id":"c24a6ea4-ce75-4665-a070-57453082c25","man_days":10.5}'
Request examples
{
  "project_id": "a24a6ea4-ce75-4665-a070-57453082c25",
  "task_type_id": "b24a6ea4-ce75-4665-a070-57453082c25",
  "object_id": "c24a6ea4-ce75-4665-a070-57453082c25",
  "man_days": 10.5
}
Response examples (201)
{
  "id": "a24a6ea4-ce75-4665-a070-57453082c25",
  "project_id": "b24a6ea4-ce75-4665-a070-57453082c25",
  "task_type_id": "c24a6ea4-ce75-4665-a070-57453082c25",
  "object_id": "d24a6ea4-ce75-4665-a070-57453082c25",
  "man_days": 10.5,
  "created_at": "2024-01-15T10:30:00Z",
  "updated_at": "2024-01-15T10:30:00Z"
}