Tasks

Get the paddock a move went to

Changed on

The related resource URL of a task's to_paddock relationship (JSON:API 1.1, "Related Resource Links"; decision 2026-10-28, G17): on a move, the paddock the mob went to, as getPaddock returns it; data: null with a 200 on any row that is not a move. It is the relationship's links.related on getTask, built from the task's id alone, so it never changes. The paddock is read under its own rights, as getTaskFromPaddock describes. Not an assistant's tool: an assistant reads the paddock with getPaddock and is refused here (403).

get/tasks/{id}/to_paddock

Request

  • Base URL
    https://api.purplegrain.com/api/v1
  • URL
    https://api.purplegrain.com/api/v1/tasks/{id}/to_paddock
  • Auth
    • none
    • or HTTP bearer

Path parameters

idstring required

Id of the task

Response

The paddock, or data: null when the task is not a move

Example response

{
  "data": {
    "type": "paddock"
  }
}

Changes