Intervals API Resource: request
The base URL for this resource is located at
https://api.myintervals.com/request/
The request resource is used to manage work requests.
Permissions for work requests are not entirely straightforward, so here are some general rules:
- Administrators can view, change or delete any work request.
- Managers may view, change or delete any work request to which they have project access. However, they cannot change the person with whom the work request is associated once it has been set.
- Resource and executive users may view any work request to which they have project access. However, they cannot change or delete the work request unless they are the person with whom the work request is associated.
- Work requests can have no project. In these cases, view access by managers, resources and executives is allowed if they are included in the mail queue notification list or if they are the person with whom the work request is associated. Managers may edit or delete these work requests, but resource and executive users can only do so if they are the person with whom the work request is associated.
Collection
Allowed HTTP Methods | |
---|---|
Method | Group Access |
GET | Administrator, Manager, Resource, Executive |
Allowed Filters | ||||
---|---|---|---|---|
Filter Name | Required? | Expects | Default | Description |
priorityid | no | integer | Limits the list to work requests having this priority. | |
personid | no | integer | Limits the list to work requests submitted by this person. | |
projectid | no | integer | Limits the list to work requests belonging to this project. | |
sortfield | no | string | Sort the list by any of the following fields: id, title, date, datedue, personid, person, projectid, project, clientid, client, email, priorityid, priority. | |
sortdir | no | string | Sets the sort direction of the returned list. Must be either "ASC" or "DESC". | |
offset | no | integer | Return requests starting from the nth request. | |
limit | no | integer | 10 | Sets a limit to the amount of requests 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 /request/
To filter the list based on certain parameters:
GET /request/?sortfield={value}
Note: You can string together multiple filters.
Member
Allowed HTTP Methods | |
---|---|
Method | Group Access |
GET | Administrator, Manager, Resource, Executive |
DELETE | Administrator, Manager, Resource, Executive |
POST | Administrator, Manager, Resource, Executive |
PUT | Administrator, Manager, Resource, Executive |
Settable Fields for PUT and POST Requests | ||||
---|---|---|---|---|
Field Name | Required? | Expects | Default | Description |
personid | yes | integer | The ID of the owner of the work request. | |
projectid | no | integer | The project the work request belongs to. | |
priorityid | yes | integer | The ID of the priority of the work request. Please see the taskpriority resource for more information. | |
title | yes | string (255) | The work request title. | |
datedue | no | date | The date on which the work request is due. If this is left blank, the date will default to one week ahead | |
description | no | html | The work request description. |
string (xxx) indicates a string with a maximum length of xxx characters.
Examples
To retrieve one member resource:
GET /request/{id}/
Assuming no errors, the server will respond with 200 OK and the object requested.
To delete a particular member resource:
DELETE /request/{id}/
Assuming no errors, the server will respond with 200 OK.
To create a new member resource:
POST /request/
{ "personid": value, "priorityid": value, "title": value }
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 /request/{id}/
{ "personid": value, "description": value }
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
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.