- Get a Field.
- Update a Field.
- Update the Field label.
- Update the Field’s select values.
- Add or remove the Field’s select values.
Prerequisites
- Obtain your API Access Token or pull the Risk Cloud Postman Collection (see the Postman guide) to get started.
- The user whose token is used for
PATCHcalls needs a role with theBuildentitlement.
1. Get Field
Retrieve the field you want to update:
Query parameter
Response
Returns aField object to be used in the following PATCH request.
2. Update Field
This endpoint covers three related use cases: updating the field label, updating the field’s
select values, and adding or removing select values.
Case 1: Update Field label
RequestPATCH call updates Select Label to Select Label NEW, the field label on the record
reflects the new value.
Response
Returns the updated Field object.
Case 2: Update Field select values
RequestPATCH call renames Option 2 (value 2) to Option 3 (value 3), the field’s select
values reflect the update.
Response
Returns the updated Field object.
Case 3: Add or remove Field select values
RequestcurrentValues and update its textValue,
numericValue, and priority. To remove a select value, delete its entry from the array
entirely — for example, this request removes Option 1 and adds a new Option 2.
Response
Returns the updated Field object.