Search documentation
karat

+

K

User Documentation ↗
Version 2.0

Load High Priority Target List

GET/api/v2/targetWorkbench/highPriorityTargetLists/{highPriorityTargetListRid}/load

Load a High Priority Target List by RID.

Third-party applications using this endpoint via OAuth2 must request the following operation scope: api:target-read.

Path parameters

highPriorityTargetListRid
string

The unique identifier for a High Priority Target List

Response body

LoadHighPriorityTargetListResponse
object

Success response with the requested Target Board.

Hide child attributes

Hide child attributes

highPriorityTargetList
object

The High Priority Target List object.

Show child attributes

Show child attributes

baseRevisionId
integer

The current version of the retrieved HighPriorityTargetList. Any modifying operations should be accompanied by this version to avoid concurrent operations made since this version. If there are any conflicting edits that result in changes to these operations when they are applied, it will be noted in the response.

Examples

Request

Copied!
1 2 3 curl \ \t-H "Authorization: Bearer $TOKEN" \ "https://$HOSTNAME/api/v2/targetWorkbench/highPriorityTargetLists/ri.gotham-artifact.0-0.hptl.example/load"

Response

Copied!
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 { "highPriorityTargetList": { "areaGeo": { "points": [ { "elevation": 0, "latitude": 0, "longitude": 0 } ] }, "areaObjectId": "ri.gotham.123-456.object-internal.example", "rid": "ri.gotham-artifact.0-0.hptl.example", "targets": [ { "targetSubtypes": [ "Red Car" ], "when": "ACQUIRED" } ] }, "baseRevisionId": 1 }

Error responses

Error Name
HighPriorityTargetListNotFoundError CodeINVALID_ARGUMENT
Status Code400
DescriptionCannot find High Priority Target List from provided RID
ParametershighPriorityTargetListRid
LoadHighPriorityTargetListPermissionDeniedError CodePERMISSION_DENIED
Status Code403
DescriptionCould not load the HighPriorityTargetList.
ParametershighPriorityTargetListRid