Targets
This document uses the REST API. For more details, see the Authentication for API page.
Get targets by org ID
Get a list of an organization's targets.
GEThttps://api.snyk.io/rest/orgs/{org_id}/targets
Path parameters
org_id*string (uuid)
The id of the org to return a list of targets
Query parameters
Response
A list of targets is returned for the targeted org
Headers
Body
data*array of PublicTarget (object)
jsonapi*JsonApi (object)
links*Links (object)
metaobject
Request
Response
Get target by target ID
Get a specified target for an organization.
GEThttps://api.snyk.io/rest/orgs/{org_id}/targets/{target_id}
Path parameters
org_id*string (uuid)
The id of the org to return the target from
target_id*string (uuid)
The id of the target to return
Query parameters
Response
A single target is returned if it is found in the specified org
Headers
Body
data*PublicTarget (object)
jsonapi*JsonApi (object)
linksLinks (object)
Request
Response