Scenarios > Custom properties data

The following endpoints allow you to manage custom scenario properties data.

To use custom properties, you have to:

  1. Create a custom properties structure.

  2. Create custom properties structure items.

  3. Fill the items with data.

Read more about custom properties in the custom properties feature documentationarrow-up-right.

Get custom properties data

get
/scenarios/{scenarioId}/custom-properties

Gets custom properties data of the specified scenario.

chevron-right
lockRequired scopes
This endpoint requires the following scopes:
Authorizations
AuthorizationstringRequired

Authorize the API call with your API token in the Authorization header with the value: Token your-api-token.

If you don't have an API token yet, please refer to the "Authentication" section to learn how to create one.

Path parameters
scenarioIdintegerRequired

The ID of the scenario.

Example: 22
Responses
chevron-right
200

Successful response

application/json
get
/scenarios/{scenarioId}/custom-properties
200

Successful response

Fill in custom properties data

post
/scenarios/{scenarioId}/custom-properties

Fills in custom properties data for the specified scenario. The scenario has to have no custom properties data.

The data you fill in has to conform to the current custom scenario properties structure. You have to specify a value for every required item, otherwise you get an error.

To update existing data, use the following API calls:

  • Update custom properties data

  • Set custom properties data

chevron-right
lockRequired scopes
This endpoint requires the following scopes:
Authorizations
AuthorizationstringRequired

Authorize the API call with your API token in the Authorization header with the value: Token your-api-token.

If you don't have an API token yet, please refer to the "Authentication" section to learn how to create one.

Path parameters
scenarioIdintegerRequired

The ID of the scenario.

Example: 80
Body
objectOptional
Responses
chevron-right
200

Successful response

application/json
post
/scenarios/{scenarioId}/custom-properties
200

Successful response

Set custom properties

put
/scenarios/{scenarioId}/custom-properties

Sets custom properties data for the specified scenario. Make replaces the original data with the data you send in the request body.

You have to specify a value for every required custom properties structure item, otherwise you get an error.

The scenario has to have custom property data already. The new data set has to conform to the current custom scenario properties structure. If the initial data is empty, then the API call returns an error.

To fill in first values to the custom properties, use the API call to fill in custom properties data.

chevron-right
lockRequired scopes
This endpoint requires the following scopes:
Authorizations
AuthorizationstringRequired

Authorize the API call with your API token in the Authorization header with the value: Token your-api-token.

If you don't have an API token yet, please refer to the "Authentication" section to learn how to create one.

Path parameters
scenarioIdintegerRequired

The ID of the scenario.

Example: 80
Body
objectOptional
Responses
chevron-right
200

Successful response

application/json
put
/scenarios/{scenarioId}/custom-properties
200

Successful response

Delete custom properties data

delete
/scenarios/{scenarioId}/custom-properties

Deletes custom properties data. Deleting custom properties data is irreversible. Use the confirmed parameter to confirm deleting the data, otherwise you get an error and the data are not deleted.

chevron-right
lockRequired scopes
This endpoint requires the following scopes:
Authorizations
AuthorizationstringRequired

Authorize the API call with your API token in the Authorization header with the value: Token your-api-token.

If you don't have an API token yet, please refer to the "Authentication" section to learn how to create one.

Path parameters
scenarioIdintegerRequired

The ID of the scenario.

Example: 28
Query parameters
confirmedbooleanOptionalExample: true
Responses
chevron-right
200

Successful response

application/json
delete
/scenarios/{scenarioId}/custom-properties
200

Successful response

Update custom properties data

patch
/scenarios/{scenarioId}/custom-properties

Updates custom properties data of the specified scenario. Make updates only the custom properties data you specify in the request body.

The custom property has to contain data already. The update data have to conform to the current custom scenario properties structure. If the initial value is empty, then the API call returns an error.

To fill in first values to the custom properties, use the API call to fill in custom properties data.

chevron-right
lockRequired scopes
This endpoint requires the following scopes:
Authorizations
AuthorizationstringRequired

Authorize the API call with your API token in the Authorization header with the value: Token your-api-token.

If you don't have an API token yet, please refer to the "Authentication" section to learn how to create one.

Path parameters
scenarioIdintegerRequired

The ID of the scenario.

Example: 80
Body
objectOptional
Responses
chevron-right
200

Successful response

application/json
patch
/scenarios/{scenarioId}/custom-properties
200

Successful response

Last updated