Update a reference list

put/admin/lists/{referenceListId}

Updates a reference list by ID.

Request Samples

1

Response Samples

1{
2 "id": "string",
3 "createdBy": "string",
4 "createdAt": "2019-08-24T14:15:22Z",
5 "lastUpdatedBy": "string",
6 "lastUpdatedAt": "2019-08-24T14:15:22Z",
7 "label": "string",
8 "description": "string",
9 "localizedLabels": [
10 {
11 "version": 0,
12 "locale": "en-US",
13 "label": "string"
14 }
15 ],
16 "localizedDescriptions": [
17 {
18 "version": 0,
19 "locale": "en-US",
20 "description": "string"
21 }
22 ],
23 "name": "string",
24 "archived": true,
25 "maxCodeLength": "string",
26 "alphabeticalSort": true,
27 "items": [
28 {
29 "code": "string",
30 "archived": true,
31 "displayIndex": 0
32 }
33 ]
34}

Path Parameters

NameTypeRequiredDescription
referenceListId
string
true

The ID of the reference list to update.

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
false

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

archived
boolean
false

Indicates whether the reference list is archived.

maxCodeLength
string
false

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

alphabeticalSort
boolean
false

Indicates whether the reference list is sorted alphabetically.

items
array [Reference List Item]
false

The collection of reference list items.

id
string
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
200OK

The request succeeded.

HeadersSchema
400Bad Request

The request was invalid.

Schema
412Precondition Failed

The reference list in the request body was out of date.

Schema
428Precondition Required

The reference list in the request body did not contain a version.

Schema