Intervals API Resource: person
The base URL for this resource is located at
https://api.myintervals.com/person/
For accessing and updating information about people. Only administrators may create, update or delete user accounts.
Collection
Allowed HTTP Methods | |
---|---|
Method | Group Access |
GET | Administrator, Manager, Resource |
Allowed Filters | ||||
---|---|---|---|---|
Filter Name | Required? | Expects | Default | Description |
localid | no | integer1 | Restricts the list based on a person's "localid," which is the number that appears associated with the person in the Intervals application. | |
username | no | string | Limits the list to people whose usernames match the search string. | |
no | string | Limits the list to people whose emails match the search string. | ||
firstname | no | string | Limits the list to people whose first names match the search string. | |
lastname | no | string | Limits the list to people whose last names match the search string. | |
excludegroupids | no | integer1 | Excludes people from the list who fall in the group IDs submitted. | |
projectid | no | integer1 | Limits the list to people who have access to the project IDs submitted. | |
clientid | no | integer1 | Limits the list to people who are associated with the ID of this client. | |
projectclientid | no | integer1 | Limits the list to people who have access to projects that belong to the client IDs submitted. | |
search | no | string | Limits the list to people who match the search string. Searches firstname, lastname, client, username, notes and contact info. | |
active | no | boolean | Limits the list to people who are either active or inactive. | |
groupid | no | integer | Limits the list to people who are in the group of the ID submitted. | |
allprojects | no | boolean | Limits the list to people who should be added to all future projects. | |
restricttasks | no | boolean | Limits the list to people who are restricted to only tasks to which they own or have been assigned. | |
offset | no | integer | Return people starting from the nth person. | |
limit | no | integer | 10 | Sets a limit to the amount of people 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 /person/
To filter the list based on certain parameters:
GET /person/?limit={value}
Note: You can string together multiple filters.
Member
Allowed HTTP Methods | |
---|---|
Method | Group Access |
GET | Administrator, Manager, Resource |
DELETE | Administrator |
POST | Administrator |
PUT | Administrator |
Settable Fields for PUT and POST Requests | ||||
---|---|---|---|---|
Field Name | Required? | Expects | Default | Description |
clientid | no | integer | This ID of the client this person is associated with. | |
title | no | string (255) | ||
firstname | yes | string (65) | ||
lastname | no | string (85) | ||
allprojects | no | boolean | f | If 'Yes', this person will be added to the project team for all future projects. It does not grant access to existing projects. |
notes | no | html | A short description for this person. | |
private | yes | boolean | t | Whether this person's contact information is visible to resource- and executive-level users. |
active | yes | boolean | t | Whether the person is active or inactive. |
username | no | string (255) | For users that can log in, the username they will log in with. To remove a person's ability to log in, set this field to blank. | |
password | no | string (30) | For users that can log in, the password they will log in with. | |
no | string (255) | REQUIRED for adding a new person who can log in. Otherwise, edit a person's contact information using the personcontact resource. | ||
groupid | no | integer | REQUIRED for adding a person who can log in. |
string (xxx) indicates a string with a maximum length of xxx characters.
Examples
To retrieve one member resource:
GET /person/{id}/
Assuming no errors, the server will respond with 200 OK and the object requested.
To delete a particular member resource:
DELETE /person/{id}/
Assuming no errors, the server will respond with 200 OK.
To create a new member resource:
POST /person/
{ "firstname": value, "private": value, "active": 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 /person/{id}/
{ "notes": value, "active": 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.