Skip to main content
When you create Fields in Risk Cloud, you can name them, label them, add selectable options, and configure many other options. This guide walks through how to do the following via the Field API:
  1. Get a Field.
  2. Update a Field.
    1. Update the Field label.
    2. Update the Field’s select values.
    3. 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 PATCH calls needs a role with the Build entitlement.

1. Get Field

Retrieve the field you want to update:
Path parameter Query parameter

Response

Returns a Field object to be used in the following PATCH request.
Finding the Field IDYou can retrieve the Field ID by editing the field on the Step Builder page, or by calling GET /api/v1/fields to list all fields.

2. Update Field

Path parameter 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

Request
After the PATCH 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

Request
After the PATCH 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

Request
To add a select value, copy an existing entry in currentValues 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.