Intervals API Resource: worktype
The base URL for this resource is located at
https://api.myintervals.com/worktype/
The work type resource is used to retrieve default work types. Default work types are available to all projects. To create a work type only available to one project, use the projectworktype resource instead.
Collection
Allowed HTTP Methods | |
---|---|
Method | Group Access |
GET | Administrator |
Allowed Filters | ||||
---|---|---|---|---|
Filter Name | Required? | Expects | Default | Description |
active | no | boolean | ||
offset | no | integer | Return worktypes starting from the nth worktype. | |
limit | no | integer | 10 | Sets a limit to the amount of worktypes returned in the response. |
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 /worktype/
To filter the list based on certain parameters:
GET /worktype/?active={value}
Note: You can string together multiple filters.
Member
Allowed HTTP Methods | |
---|---|
Method | Group Access |
GET | Administrator |
Settable Fields for PUT and POST Requests | ||||
---|---|---|---|---|
Field Name | Required? | Expects | Default | Description |
name | yes | string (155) | ||
defaulthourlyrate | yes | double | ||
active | yes | boolean |
string (xxx) indicates a string with a maximum length of xxx characters.
Examples
To retrieve one member resource:
GET /worktype/{id}/
Assuming no errors, the server will respond with 200 OK and the object requested.
Intervals API
This documentation is meant to serve as an introduction to getting started with the API.
Documentation
Resources
- client
- contactdescriptor
- contacttype
- document
- expense
- group
- invoice
- invoiceitem
- invoicenote
- invoiceterm
- me
- milestone
- milestonenote
- module
- payment
- paymenttype
- person
- personcontact
- project
- projectlabel
- projectmodule
- projectnote
- projectteam
- projectworktype
- quota
- request
- task
- tasklistfilter
- tasknote
- taskpriority
- taskstatus
- time
- timer
- worktype
API Support
Looking for help?
» Contact our support team.