Activate revision of a global variable

put/globalVariables/{globalVariableId}/active

Activate a revision of the specified global variable by providing its revision ID in the request body.

Request Samples

1

Response Samples

1{
2 "creationTimeStamp": "2023-01-17T16:29:31.851Z",
3 "modifiedTimeStamp": "2023-01-17T16:29:31.856Z",
4 "createdBy": "userx",
5 "modifiedBy": "userx",
6 "id": "38b4d801-f744-45cf-8e97-12a109daf3af",
7 "activeVersionId": "8eb475bb-4a78-46ea-bb0b-a74206b3fc0e",
8 "majorRevision": 1,
9 "minorRevision": 1,
10 "name": "gv_string_hmeq_value",
11 "dataType": "string",
12 "defaultValue": "exampleValue",
13 "hidden": false,
14 "status": "developing",
15 "locked": false,
16 "links": [
17 {
18 "method": "GET",
19 "rel": "self",
20 "href": "/referenceData/globalVariables/38b4d801-f744-45cf-8e97-12a109daf3af",
21 "uri": "/referenceData/globalVariables/38b4d801-f744-45cf-8e97-12a109daf3af",
22 "responseType": "application/vnd.sas.data.reference.global.variable"
23 },
24 {
25 "method": "PUT",
26 "rel": "update",
27 "href": "/referenceData/globalVariables/38b4d801-f744-45cf-8e97-12a109daf3af",
28 "uri": "/referenceData/globalVariables/38b4d801-f744-45cf-8e97-12a109daf3af",
29 "type": "application/vnd.sas.data.reference.global.variable",
30 "responseType": "application/vnd.sas.data.reference.global.variable"
31 },
32 {
33 "method": "DELETE",
34 "rel": "delete",
35 "href": "/referenceData/globalVariables/38b4d801-f744-45cf-8e97-12a109daf3af",
36 "uri": "/referenceData/globalVariables/38b4d801-f744-45cf-8e97-12a109daf3af"
37 },
38 {
39 "method": "GET",
40 "rel": "revisions",
41 "href": "/referenceData/globalVariables/38b4d801-f744-45cf-8e97-12a109daf3af/revisions",
42 "uri": "/referenceData/globalVariables/38b4d801-f744-45cf-8e97-12a109daf3af/revisions",
43 "responseType": "application/vnd.sas.collection",
44 "itemType": "application/vnd.sas.data.reference.global.variable"
45 },
46 {
47 "method": "GET",
48 "rel": "currentRevision",
49 "href": "/referenceData/globalVariables/38b4d801-f744-45cf-8e97-12a109daf3af",
50 "uri": "/referenceData/globalVariables/38b4d801-f744-45cf-8e97-12a109daf3af",
51 "responseType": "application/vnd.sas.data.reference.global.variable"
52 }
53 ]
54}

Path Parameters

NameTypeRequiredDescription
globalVariableId
string
true

The identifier of a global variable.

Header Parameters

NameTypeRequiredDescription
If-Match
string
true

The ETag value that was returned from a GET, or POST.

Request Body

The global variable revision to activate

Responses

StatusMeaningDescription
200OK

The request succeeded.

HeadersSchema
400Bad Request

The request was invalid.

404Not Found

No global variable revision exists at the requested path.

Schema
412Precondition Failed

The If-Match request header did not match the resource's entity tag.

Schema
428Precondition Required

The request headers did not include a If-Match precondition.

Schema