Delete multiple objects based on a list of URIs

post/deletions
Internal-Use Only

Delete multiple objects based on a list of URIs. This endpoint currently only supports deleting agents, instances, and locks; type definitions and search index definitions are not supported.

Request Samples

1

Response Samples

1{
2 "/catalog/bots/af349db0-0691-4510-bd01-122417810f7b": {},
3 "/catalog/instances/49ea0241-251d-4268-ad95-8f30c0ce1e72": {}
4}

Header Parameters

NameTypeRequiredDescription
Content-Type
string
true

The representation in the request body.

Allowed values:
application/vnd.sas.selection+jsonapplication/json
Default:
application/vnd.sas.selection+json
Accept
string
false

The desired representation for the response.

Allowed value:
application/json
Default:
application/json

Request Body

Identifies a set of resources.

NameTypeRequiredDescription
version
integer
true

The schema version number of this media type. This representation is version 1.

template
string
false

A URI template in which the {id} parameter can be replaced with a value from the "resources" array in order to yield the URI of the identified resource.

type
string
false

Specifies whether the resources array contains IDs, URIs, or both.

Allowed values:
idurimixed
resources
array [string]
true

An array of resource IDs or URIs

links
array [Link]
false

An array of links to related resources and actions.

Responses

StatusMeaningDescription
200OKThe request succeeded, and the content's `resources` were empty or at least one of the `resources` was deleted successfully. The response body is a mapping from each value in the `resources` of the content to an empty object if that deletion succeeded, or the error for that deletion if that deletion failed. If at least one deletion succeeded, errors for individual deletions do not result in an error status for the whole response.HeadersSchema
400Bad RequestBad request; either the request is not well-formed, or all individual operations failed. In the latter case, the response body is an object containing the errors as described above for a successful request; the response code is 400 if all operation status codes are not the same, or the shared status code if they are the same. Schema
401UnauthorizedNot authenticated.Schema
403ForbiddenThe user does not have permission to complete this request.Schema
404Not FoundThe specified resource was not found.Schema
415Unsupported Media TypeUnsupported Media Type. Include a Content-Type header with a supported value in the request.Schema
500Internal Server ErrorThe Catalog service encountered an error.Schema