Add Fields

POST /api/v1.0/tasks/{task_id}/fields

This endpoint adds the custom field to the task.

Path parameters

application/json

Body Required

Responses

  • 201

    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/{task_id}/fields
curl \
 -X POST https://openapi.niftypm.com/api/v1.0/tasks/{task_id}/fields \
 -H "Authorization: Bearer $ACCESS_TOKEN" \
 -H "Content-Type: application/json" \
 -d '{"field_id":"string","name":"string","description":"string","type":"dropdown","currency":"string","tracking_type":"auto","cost_per_hour":42.0,"options":[{"value":"string","color":"string"}],"roles":["string"],"save":true,"association":"string","project_id":"string"}'
Request example
{
  "field_id": "string",
  "name": "string",
  "description": "string",
  "type": "dropdown",
  "currency": "string",
  "tracking_type": "auto",
  "cost_per_hour": 42.0,
  "options": [
    {
      "value": "string",
      "color": "string"
    }
  ],
  "roles": [
    "string"
  ],
  "save": true,
  "association": "string",
  "project_id": "string"
}
Request examples
{
  "field_id": "string",
  "name": "string",
  "description": "string",
  "type": "dropdown",
  "currency": "string",
  "tracking_type": "auto",
  "cost_per_hour": 42.0,
  "options": [
    {
      "value": "string",
      "color": "string"
    }
  ],
  "roles": [
    "string"
  ],
  "save": true,
  "association": "string",
  "project_id": "string"
}