Intervals API Resource:

projectteam

The base URL for this resource is located at
https://api.myintervals.com/projectteam/

This resource is used to retrieve a list of people assigned to a project, or to add or remove people on a project. This resource applies only to non administrator users: Manager, Resource, and Executive.

Collection

Allowed HTTP Methods
MethodGroup Access
GETAdministrator, Manager, Resource, Executive
Allowed Filters
Filter NameRequired?ExpectsDefaultDescription
projectid yes integer Limits the list to people belonging to this project.

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 filter the list based on certain parameters:

GET /projectteam/?projectid={value}

Note: You can string together multiple filters.

Member

Allowed HTTP Methods
MethodGroup Access
DELETEAdministrator
POSTAdministrator
PUTAdministrator
GETAdministrator
Settable Fields for PUT and POST Requests
Field NameRequired?ExpectsDefaultDescription
projectid yes integer Limits the list to people belonging to this project.

string (xxx) indicates a string with a maximum length of xxx characters.

Response Fields

The fields below are returned in GET responses. Boolean values are "t" / "f" strings. Numeric IDs and floats are returned as strings. Nullable fields may be JSON null.

Response Fields
Field NameNullableDescription
projectid no Project whose team is listed
personid no All person IDs assigned to the project (order is not guaranteed; JSON may use strings or numbers per element)

When retrieving a collection (GET /projectteam/), the response envelope includes: personid (authenticated user's ID), status ("OK"), code (200), listcount (total matching records before limit/offset), and projectteam (array of result objects). Defaults, no cap on limit, and how to paginate using listcount are described in the API Introduction (Pagination).

Examples

To remove one person from a project, you may send an object keyed by personid, and its value corresponding to a personid of: Manager, Resource, and Executive user level. Sending an administrator level user will have no effect on their ability to view a project.

DELETE /projectteam/{projectid}/
{
    "personid": "123"
}

To remove more than one person: send an array of objects:

DELETE /projectteam/{projectid}/
[
    {"personid": "123"},
    {"personid": "456"},
]

To add one person with access to viewing secure project notes:

POST /projectteam/{projectid}/
{
    "personid": "123", "securenotes": "t"
}

To add more than one person send an array of objects:

POST /projectteam/{projectid}/
[
    {"personid": "123", "securenotes": "t"},
    {"personid": "456", "securenotes": "f"}
]

securenotes determines whether user has access to viewing secure project notes and does not apply to the executive user level.

Start tracking time today

Join 5,000+ companies spending their time wisely with Intervals.

Try Intervals free