-
Notifications
You must be signed in to change notification settings - Fork 3
Projects API
richardthombs edited this page Oct 18, 2014
·
19 revisions
The Projects API gives access to TeamHaven's Project Management functionality.
GET /api/projects
Enumerates a list of the Projects which the user has access to. Only active projects which have not been archived are returned.
GET /api/projects/:id
Retrieves the Project with the specified Project ID.
POST /api/projects
{
Name: "My project",
Description: "This is a demo project",
Reference: "ABC123",
}TODO
GET /api/projects/:id/settings
{
Name: 'My project',
Description: 'This is a demo project',
Reference: 'ABC123',
ContactUserID: 12,
PreviewMargin: 7,
CriticalMargin: 3,
ExpiryMargin: 3,
CollectorCanUpdateCalls: true,
CollectorCanCreateCalls: true,
MobileGroupingAttributeID: 12,
RetainCompletedCalls: true,
CheckinsEnabled: true,
DefaultCountry: 'GB'
}PUT /api/projects/:id/settings
The request can contain all or part of the same JSON structure as the GET response. If an element is not specified, then it is not changed.