Uh oh!
There was an error while loading. Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork 3
Projects API
Richard Thombs edited this page Feb 24, 2017
·
19 revisions
The Projects API gives access to TeamHaven's Project Management functionality.
GET /api/projects
Returns a Paged Result containing the list of Projects available to the User.
GET /api/projects/:id
{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,CheckinMode: 1,CheckinsRequireLocationServices: true,// Prevent the user from checking in if they have switched off Location ServicesAllowApproximateCheckins: true,// Can the user check-in if their location is only approximate?AllowUnknownCheckins: true,// Can the user check-in if their location is not known?CheckinDistanceLimit: 250,// How far away can the user be from the store to check-in? (Set to null to disable)EnforceAccurateDistanceLimit: true,// Prevent users too far away from checking in if their distance is accurateEnforceApproximateDistanceLimit: false,// Prevent users too far away from checking in if their distance is approximateDefaultCountry: 'GB',IncludedInPayroll: true}PUT /api/projects/:id
POST /api/projects
PUT /api/projects/:id/archive
DELETE /api/projects/:id/archive
{Name: "My project",Description: "This is a demo project",Reference: "ABC123",}GET /api/projects/:id/theme
{AccentBackgroundColor: '#0081c6',AccentForegroundColor: '#ffffff',AccentBorderColor: '#008186',BoxBackgroundColor: '#ffffff'}PUT /api/projects/:id/theme
DELETE /api/projects/:id/theme
Resets the Project's theme so that the Account's theme is used instead.
GET /api/projects/:id/payrates
PUT /api/projects/:id/payrates
GET /api/projects/:id/users
Returns the list of Users who have access to the Project.
POST /api/projects/:id/users
This replaces the current set of Users with access with the list provided.
TODONote: This API does not affect Collectors, as their access is governed by whether they have been assigned to Calls or Targets in the Project.