Returns the targets in a workspace, so that you can find the ID of the target whose values you want to upload. Each target's type and hierarchyType set the columns its CSV file needs. See POST /v2/targets/{targetId}/assignments.
If the workspace has no targets, the response holds an empty targets list.
Required authorization scope: 'api:targets:read'.
The ID of the workspace the targets belong to. Use the Workspaces API to look up workspace IDs.
Successful response
The Gong ID of this request. Provide it to Gong Support to troubleshoot a problem with the request.
The targets in the workspace.
A target in the workspace.
The Gong ID of the target. Up to 20 digits. To upload the target's values, send this ID in the path of POST /v2/targets/{targetId}/assignments.
The name of the target.
The description of the target.
The kind of value the target holds. Possible values: CURRENCY (an amount of money, such as a revenue quota), UNIT (a count, such as a number of deals).
For a UNIT target, the name of what the target counts, such as Deals, as the admin entered it in Gong.
The kind of owner each of the target's values is for. Possible values: TEAM (a user, or a manager's team), TERRITORY (a territory imported from Salesforce). The value sets the identifier column of the target's CSV file.
The date and time the target was created, in ISO-8601 format.
- The request doesn't include a workspace ID.
- A parameter has the wrong type or format. The error message names the parameter.
The Gong ID of this request. Provide it to Gong Support to troubleshoot a problem with the request.
Error messages.
- The API key or access token is missing or isn't valid.
- The integration uses OAuth, and its token doesn't have the scope this endpoint requires. The error message names the scope.
The Gong ID of this request. Provide it to Gong Support to troubleshoot a problem with the request.
Error messages.
Access denied
The Gong ID of this request. Provide it to Gong Support to troubleshoot a problem with the request.
Error messages.
- The company sent more requests than its rate limit allows. Wait the number of seconds in
Retry-After, then send the request again.
The Gong ID of this request. Provide it to Gong Support to troubleshoot a problem with the request.
Error messages.
- Gong couldn't complete the request because of an unexpected error. Try again. If the error continues, contact Gong Support and give them the
requestIdfrom the response.
The Gong ID of this request. Provide it to Gong Support to troubleshoot a problem with the request.
Error messages.