Task Fields
To fetch the metadata of Task objects, send a GET request to:
https://api.assembla.com/v1/meta/tasks.(json|xml)
Examples
Request XML, using cURL utility:
curl -H "Authorization: bearer _token" https://api.assembla.com/v1/meta/tasks.xml
Request JSON, using cURL utility:
curl -H "Authorization: bearer _token" https://api.assembla.com/v1/meta/tasks.json
The table below lists fields contained in the response. The list will be properly formatted to json or xml as requested.
Fields
| Param | Data type | Access | Description |
|---|---|---|---|
| id | integer | read | Identifier of the task |
| description | string | write | Task description |
| billed | boolean | read | True if the task has been billed and vice versa |
| user_id | string | read | Identifier of the author of the task |
| job_agreement_id | integer | write | Identifier of the job agreement with which the task is associated |
| space_id | string | write | Identifier of the space to which the task belongs |
| ticket_id | integer | write | Identifier of the ticket with which the task is associated |
| url | string | write | Link to an artifact with which the task is associated |
| hours | float | write | The number hours spent on the task |
| begin_at | datetime | write | Date and time when the task began |
| end_at | datetime | write | Date and time when the task ended |
| created_at | datetime | read | Date and time when the task was created |
| updated_at | datetime | read | Date and time when the task was updated |
Validations
| Field | Validator | Description |
|---|---|---|
| description | presence validator | description should be present. |
| user_id | presence validator | user_id should be present. |
| space_id | presence validator | space_id should be present. |
| hours | presence validator | hours should be present. |
| begin_at | presence validator | begin_at should be present. |
| end_at | presence validator | end_at should be present. |