Skip to main content
POST
/
v2.0
/
optionsresolver
Resolves the options for a field.
curl --request POST \
  --url https://api-trial.cognigy.ai/new/v2.0/optionsresolver \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --header 'X-API-Key: <api-key>' \
  --data '{
  "fieldKey": "<string>",
  "extension": "<string>",
  "nodeType": "<string>",
  "dependencies": {},
  "projectId": "<string>"
}'
{
  "options": [
    {
      "label": "<string>",
      "value": "<string>"
    }
  ]
}

Authorizations

X-API-Key
string
header
required

Supply the API Key in the HTTP-Header

Authorization
string
header
required

The access token received from the authorization server in the OAuth 2.0 flow.

api_key
string
query
required

Supply the API Key in the Url-Query

Headers

Accept
enum<string>

The default media type is application/hal+json. Use application/json for pure data results.

Available options:
application/json,
application/hal+json,
application/xml,
text/xml,
text/csv

Body

application/json
fieldKey
string

The field key for which the options are to be resolved.

extension
string

The extension name.

nodeType
string

The node type which holds the options resolver field.

dependencies
object

The dependency fields for the options resolver field.

projectId
string

The project ID.

Response

Returns the resolved options for a field.

options
object[]
I