Update a reference list

put/admin/lists/{referenceListId}
Internal-Use Only

Updates a reference list by ID.

Request Samples

1

Response Samples

1{
2 "id": 100606,
3 "createdBy": "sasboot",
4 "createdAt": "2023-06-23T20:46:52.571Z",
5 "lastUpdatedBy": "sasboot",
6 "lastUpdatedAt": "2023-06-23T20:46:52.571Z",
7 "label": "Dispresn Insurance Domain",
8 "localizedLabels": [
9 {
10 "id": 101663,
11 "createdBy": "sasboot",
12 "createdAt": "2023-06-23T20:46:52.571Z",
13 "lastUpdatedBy": "sasboot",
14 "lastUpdatedAt": "2023-06-23T20:46:52.571Z",
15 "label": "Dispresn Insurance Domain",
16 "version": 0,
17 "localeCd": "en-US"
18 }
19 ],
20 "name": "DispResn_insurance_domain",
21 "archived": false,
22 "maxCodeLength": 20,
23 "alphabeticalSort": false,
24 "hierarchyLevel": 0,
25 "referenceListType": "LIST",
26 "usedByField": false,
27 "solutionName": "sas_visual_investigator_default",
28 "solutionLabel": "SAS Visual Investigator"
29}

Path Parameters

NameTypeRequiredDescription
referenceListId
string
true

The ID of the reference list to update.

Header Parameters

NameTypeRequiredDescription
If-Match
string
false

The ETag of the representation in the request. If this header value is provided, it must match the ETag of the current version of the resource on the server. Otherwise, the server responds with a 412 error.

Request Body

The reference list to be updated.

Represents a list of choices that the user can select as the value for a field. Common examples might include "Size" (small, medium, large) or "Color" (red, green, blue). In the first example, "Size" is the list and (small, medium, large) are items of that list.

NameTypeRequiredDescription
name
string
true

The name of the reference list. The name is limited to 50 characters.

archived
boolean
true

Indicates whether the reference list is archived.

maxCodeLength
integer
true

The maximum length of the string that is used as the code for list items.

alphabeticalSort
boolean
true

Indicates whether the reference list is sorted alphabetically.

items
array [Reference List Item]
false

The collection of reference list items.

id
integer
false

The primary key that uniquely identifies this metadata object.

createdBy
string
false

The user ID that created this metadata object.

createdAt
string<date-time>
false

The timestamp that indicates when this metadata object was created.

lastUpdatedBy
string
false

The user ID that most recently modified this metadata object.

lastUpdatedAt
string<date-time>
false

The timestamp that indicates when this metadata object was last modified.

label
string
false

The locale neutral label for this metadata object.

description
string
false

The locale neutral description for this metadata object.

localizedLabels
array [Localized Label]
false

The localized labels that are associated with this metadata object.

localizedDescriptions
array [Localized Description]
false

The localized descriptions that are associated with this metadata object.

Responses

StatusMeaningDescription
200OKThe request succeeded. HeadersSchema
400Bad RequestThe request was invalid.Schema
412Precondition FailedThe reference list in the request body was out of date.Schema
428Precondition RequiredThe reference list in the request body did not contain a version.Schema