-
Notifications
You must be signed in to change notification settings - Fork 3
Targets API
Richard Thombs edited this page Jan 11, 2015
·
25 revisions
The Project Target API provides access to the Target Management functionality of TeamHaven.
- Get an existing Target
- Create a new Target
- Update an existing Target
- Delete an existing Target
- Target search
- Assign a User to a Target
- Remove a Target assignment
- Get the User assigned to a Target
GET /api/projects/:p/targets/:t[?schema=true]
Get a Target belonging to the specified Project. If schema=true, then the Project Target's Attribute Schema is included in the response.
GET /api/projects/:p/targets
GET /api/projects/:p/targets/:t/defaultuser
Gets the User assigned to the specified target.
DELETE /api/projects/:p/targets/:t/defaultuser
Deletes the Target's user assignment and returns it to Unassigned status.
POST /api/projects/:p/targets/:t/defaultuser
Assigns the Target to the specified User. The request body must contain the UserID of the user to assign.