Examples

POST /foundry-api/v1/tasks
{
  "data": {
    "type": "tasks",
    "attributes": {
      "title": "My Task",
      "description": null,
      "status": "pending",
      "due-date": "2017-09-05",
      "created-at": null,
      "updated-at": null
    },
    "relationships": {
      "assignee": {
        "data": {
          "type": "accounts",
          "id": "137"
        }
      },
      "taggable": {
        "data": {
          "type": "companies",
          "id": "170"
        }
      }
    }
  }
}
201
{
  "data": {
    "id": "23",
    "type": "tasks",
    "links": {
      "self": "http://test.host/foundry-api/v1/tasks/23"
    },
    "attributes": {
      "title": "My Task",
      "description": null,
      "status": "pending",
      "due-date": "2017-09-05",
      "created-at": "2017-08-29T10:43:05.858+08:00",
      "updated-at": "2017-08-29T10:43:05.858+08:00"
    },
    "relationships": {
      "assignee": {
        "links": {
          "self": "http://test.host/foundry-api/v1/tasks/23/relationships/assignee",
          "related": "http://test.host/foundry-api/v1/tasks/23/assignee"
        }
      },
      "assigner": {
        "links": {
          "self": "http://test.host/foundry-api/v1/tasks/23/relationships/assigner",
          "related": "http://test.host/foundry-api/v1/tasks/23/assigner"
        }
      },
      "taggable": {
        "links": {
          "self": "http://test.host/foundry-api/v1/tasks/23/relationships/taggable",
          "related": "http://test.host/foundry-api/v1/tasks/23/taggable"
        }
      },
      "comment-threads": {
        "links": {
          "self": "http://test.host/foundry-api/v1/tasks/23/relationships/comment-threads",
          "related": "http://test.host/foundry-api/v1/tasks/23/comment-threads"
        }
      },
      "followers": {
        "links": {
          "self": "http://test.host/foundry-api/v1/tasks/23/relationships/followers",
          "related": "http://test.host/foundry-api/v1/tasks/23/followers"
        }
      }
    }
  }
}