Intervals API Resource: tasknote
The base URL for this resource is located at
https://api.myintervals.com/tasknote/
Collection
| Allowed HTTP Methods | |
|---|---|
| Method | Group Access |
| GET | Administrator, Manager, Resource, Executive |
| Allowed Filters | ||||
|---|---|---|---|---|
| Filter Name | Required? | Expects | Default | Description |
| taskid | no | integer1 | ||
| title | no | string | ||
| authorid | no | integer1 | ||
| public | no | boolean | ||
| sortfield | no | Sort the list by any of the following fields: id, taskid, authorid, date. | ||
| sortdir | no | Sets the sort direction of the returned list. Must be either "ASC" or "DESC". | ||
| offset | no | integer | ||
| limit | no | integer | 10 | |
1 Indicates that multiple values are allowed, in CSV format (e.g. "3,5,11,19").
2 This field accepts HTML, but certain HTML elements may be stripped out.
Examples
To retrieve the entire list of this resource:
GET /tasknote/
To filter the list based on certain parameters:
GET /tasknote/?authorid={value}
Note: You can string together multiple filters.
Member
| Allowed HTTP Methods | |
|---|---|
| Method | Group Access |
| GET | Administrator, Manager, Resource, Executive |
| DELETE | Administrator |
| POST | Administrator, Manager, Resource, Executive |
| PUT | Administrator |
| Settable Fields for PUT and POST Requests | ||||
|---|---|---|---|---|
| Field Name | Required? | Expects | Default | Description |
| taskid | yes | integer | The ID of the task this note belongs to. | |
| note | yes | html | The body of the task note. | |
| public | yes | boolean | f | If true, this task note will be visible to executive users. For executive users, all notes created are public. |
string (xxx) indicates a string with a maximum length of xxx characters.
Examples
To retrieve one member resource:
GET /tasknote/{id}/
Assuming no errors, the server will respond with 200 OK and the object requested.
To delete a particular member resource:
DELETE /tasknote/{id}/
Assuming no errors, the server will respond with 200 OK.
To create a new member resource:
POST /tasknote/
<?xml version="1.0" encoding="UTF-8"?> <tasknote> <taskid>{value}</taskid> <note>{value}</note> <public>{value}</public> </tasknote>
Assuming no errors, the server will respond with 201 Created and the newly-created element. This will allow you to get the id of the item you just created and verify the field values. Note: Only required fields were listed here. The entire list of possible fields is above.
To update a member resource:
PUT /tasknote/{id}/
<?xml version="1.0" encoding="UTF-8"?> <tasknote> <taskid>{value}</taskid> <public>{value}</public> </tasknote>
Assuming no errors, the server will respond with 202 Accepted and the entire element. This will allow you to verify the field values.
Intervals API 1.0
This documentation is meant to serve as an introduction to getting started with the API.
Documentation
Resources
- client
- contactdescriptor
- contacttype
- customer
- document
- expense
- group
- invoice
- invoiceitem
- invoicenote
- invoiceterm
- me
- milestone
- milestonenote
- module
- payment
- paymenttype
- person
- personcontact
- project
- projectmodule
- projectnote
- projectworktype
- request
- settings
- task
- tasklistfilter
- tasknote
- taskpriority
- taskstatus
- time
- timer
- worktype
API Discussion Forum
Looking for help? Want to share ideas and collaborate with others?
» Contribute to the API discussion forum.
