Update a reference list
Updates a reference list by ID.
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": 032 }33 ]34}
| Name | Type | Required | Description |
|---|---|---|---|
referenceListId | string | true | The ID of the reference list to update. |
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.
| Name | Type | Required | Description |
|---|---|---|---|
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. |
| Status | Meaning | Description | ||
|---|---|---|---|---|
| 200 | OK | The request succeeded. | Headers | Schema |
| 400 | Bad Request | The request was invalid. | Schema | |
| 412 | Precondition Failed | The reference list in the request body was out of date. | Schema | |
| 428 | Precondition Required | The reference list in the request body did not contain a version. | Schema |