Update the state of multiple jobs

put/jobs/@selection/state
Internal-Use Only

Updates the state of multiple jobs. The new state must be set as the value-query parameter. The request body identifies the jobs to update. The selection type must be URI and the resources are an array of URIs that identify the jobs. The items in the response MUST match 1-to-1 with the items in the request. If the update is successful, the item in the response is an application/vnd.sas.summary object. If the update failed for a particular job, the corresponding item in the response is an application/vnd.sas.error object.

Request Samples

1

Response Samples

1{
2 "links": [],
3 "name": "items",
4 "items": [
5 {
6 "id": "1c2b0fea-d0f9-4073-a79c-61cf779bb97d",
7 "type": "application/vnd.sas.job.execution.job",
8 "name": "Balance updates",
9 "version": 2
10 },
11 {
12 "id": "018c5b29-c2d2-4180-b205-b5f8da1b3886",
13 "type": "application/vnd.sas.job.execution.job",
14 "name": "Update Monthly data",
15 "version": 2
16 }
17 ],
18 "version": 2
19}

Query Parameters

NameTypeRequiredDescription
value
string
false

The value of the state.

Request Body

The resource-selection URIs that identify the jobs whose states must be updated.

The representation of a selection of zero or more resources.

NameTypeRequiredDescription
name
string
false

The ID of the selection.

type
string
false

Specifies whether the resources array contains IDs, URIs, or both. If "id", the array contains resource identifiers only. This is the default if "type" is omitted. If "uri", the array contains resource URIs. If "mixed", the array contains a mixture of identifiers and URIs.

Allowed values:
idurimixed
template
string<uri>
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.

resources
array [string]
true

The selected resources as an array of resource IDs or URIs.

links
array [Link]
false

The links that apply to the selection.

version
integer
true

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

Responses

StatusMeaningDescription
200OKThe request succeeded. The items in the response MUST match 1-to-1 with the items in the request. If the update is successful, the item in the response is an application/vnd.sas.summary object. If the update failed for a particular job, the corresponding item in the response is an application/vnd.sas.error object.Schema
400Bad RequestThe request was not valid. An invalid request occurs in the following scenarios: <ul> <li>An invalid state value was provided (error code 31506).</li> <li>The state was not specified in the value-query parameter or in the body of the request (error code 31505). </li> <li>An empty or missing body.</li><li>An invalid resource-selection type in the body. The supported type is URI.<li> </ul> Schema