Create Task

POST /api/v1.0/tasks

This endpoint creates the task for the team member.

application/json

Body Required

  • name string Required

    Name

  • description string

    Description

  • order number

    Order

  • task_group_id string Required

    Task Group ID

  • task_id string

    Task Id. This field is mandatory only when we want to create this task as subtask of other task.

  • milestone_id string

    Milestone ID

  • rule_id string

    Rule ID

  • annotation_id string

    Annotation ID

  • due_date string

    Due Date

  • start_date string

    Start Date

  • assignees array[string]

    List of Assignees

  • labels array[string]

    List of labels

  • meeting_ids array[string]

    List of meeting ID

  • embed_url string

    Embed URL

  • banner string

    Banner

  • fields array[object]

    Task Field Body

    Hide fields attributes Show fields attributes object
    • id string Required

      ID

    • value string Required

      Value

  • story_points number

    Story Points

  • dependency object

Responses

  • 201 application/json

    The resource created successfully

  • 401

    The client request has not been completed because it lacks valid authentication credentials for the requested resource.

  • 403

    The client does not have access rights to the content.

  • 405

    The request method is known by the server but is not supported by the target resource.

POST /api/v1.0/tasks
curl \
 --request POST 'https://openapi.niftypm.com/api/v1.0/tasks' \
 --header "Authorization: Bearer $ACCESS_TOKEN" \
 --header "Content-Type: application/json" \
 --data '{"name":"string","description":"string","order":42.0,"task_group_id":"string","task_id":"string","milestone_id":"string","rule_id":"string","annotation_id":"string","due_date":"string","start_date":"string","assignees":["string"],"labels":["string"],"meeting_ids":["string"],"embed_url":"string","banner":"string","fields":[{"id":"string","value":"string"}],"story_points":42.0,"dependency":{}}'
Request examples
{
  "name": "string",
  "description": "string",
  "order": 42.0,
  "task_group_id": "string",
  "task_id": "string",
  "milestone_id": "string",
  "rule_id": "string",
  "annotation_id": "string",
  "due_date": "string",
  "start_date": "string",
  "assignees": [
    "string"
  ],
  "labels": [
    "string"
  ],
  "meeting_ids": [
    "string"
  ],
  "embed_url": "string",
  "banner": "string",
  "fields": [
    {
      "id": "string",
      "value": "string"
    }
  ],
  "story_points": 42.0,
  "dependency": {}
}
Response examples (201)
{}