Subscribe to task

POST /actions/user/tasks/{task_id}/subscribe

Create a subscription entry for the current user and given task. When subscribed, the user receives notifications for all comments posted on the task.

Path parameters

  • task_id string(uuid) Required

    Task unique identifier

Responses

  • 201 application/json

    Subscription created successfully

    Hide response attributes Show response attributes object
    • id string(uuid)

      Subscription unique identifier

    • person_id string(uuid)

      Person identifier

    • task_id string(uuid)

      Task identifier

    • created_at string(date-time)

      Creation timestamp

    • updated_at string(date-time)

      Last update timestamp

POST /actions/user/tasks/{task_id}/subscribe
curl \
 --request POST 'http://api.example.com/actions/user/tasks/a24a6ea4-ce75-4665-a070-57453082c25/subscribe' \
 --header "Authorization: $API_KEY"
Response examples (201)
{
  "id": "b35b7fb5-df86-5776-b181-68564193d36",
  "person_id": "c46c8gc6-eg97-6887-c292-79675204e47",
  "task_id": "d57d9hd7-fh08-7998-d403-80786315f58",
  "created_at": "2023-01-01T12:00:00Z",
  "updated_at": "2023-01-01T12:30:00Z"
}