Execute API (v4)

Execute multiple calculations from a Spark service. Supports synchronous batching enabling multiple requests to be submitted at the same time. See the documentationarrow-up-right for more details. This endpoint should not be used for very large number of input records because there is an execution time limit of 55 s and an error will be returned. For very large numbers of input records, we recommend using applications that utilize the Batch APIsarrow-up-right.

Generic execute endpoint

post

The v4 specification of the Execute API supports synchronous batching enabling multiple requests to be submitted at the same time. If using an API key, the API key group must contain user groups that are also assigned to Spark.SyncBatch.json or Spark.AllEncompassingProxy.json.

Authorizations
AuthorizationstringRequired

Bearer token can be accessed from the user menu.

Path parameters
tenantstringRequired

Tenant is part of your login URL and also available in the user menu.

Example: mytenantname
Body
servicestring · nullableOptional

URI or service_id of the service being called.

Example: stocks/NVDA
version_idone ofOptional

version_id of the requested service version. This will be resolved by Spark the quickest.

Example: 8183f03a-57ca-4889-adae-0630be54bd87
nullOptional
or
string · uuidOptional
version_by_timestampany of · nullableOptional

Timestamp to resolve the service version. Use Timestamp converter to convert dates to ISO 8601. When call to a service is made using the service_uri or service_id this is used to determine the latest version of a service which have effective start and effective end dates that bound transaction_date. If omitted, the current date and time is used. If the transaction_date does not fall within the effective start and effective end dates of any versions, then the response will be an error. When calling a specific version using version or version_id this field has no effect.

Example: 2022-10-30
nullOptional
or
string · dateOptional
or
string · date-timeOptional
subservicestring · nullableOptional

Comma separated string of subservice names. When this is not specified or set as #Default#, outputs not related to subservices are shown.

Example: subservice1 will only show the the outputs from subservice1.
source_systemstring · nullableOptional

Tag API call. Can be queried in API Call History.

Example: mycicd
correlation_idstring · nullableOptional

Tag API call. Can be queried in API Call History.

Example: 456
call_purposestring · nullableOptional

Tag API call. Can be queried in API Call History.

Example: admin system p
compiler_typenull,string · enum · nullableOptional

Calculation engine for the request. By default this uses the setting defined in Service Documentation Default service type.

Example: NeuronPossible values:
manual_nowinteger · nullableOptional

Default behavior for Excel NOW() and TODAY() functions are to return the value based upon server time. If a Unix epoch time is provided, then that will be used to derive the current time and date instead.

Example: 1650593119
Responses
chevron-right
200

OK

application/json
post
/{tenant}/api/v4/execute
200

OK

Public API Generic execute endpoint

post

The v4 specification of the Execute API supports synchronous batching enabling multiple requests to be submitted at the same time. If using an API key, the API key group must contain user groups that are also assigned to Spark.SyncBatch.json or Spark.AllEncompassingProxy.json.

Authorizations
AuthorizationstringRequired

Bearer token can be accessed from the user menu.

Path parameters
tenantstringRequired

Tenant is part of your login URL and also available in the user menu.

Example: mytenantname
Body
servicestring · nullableOptional

URI or service_id of the service being called.

Example: stocks/NVDA
version_idone ofOptional

version_id of the requested service version. This will be resolved by Spark the quickest.

Example: 8183f03a-57ca-4889-adae-0630be54bd87
nullOptional
or
string · uuidOptional
version_by_timestampany of · nullableOptional

Timestamp to resolve the service version. Use Timestamp converter to convert dates to ISO 8601. When call to a service is made using the service_uri or service_id this is used to determine the latest version of a service which have effective start and effective end dates that bound transaction_date. If omitted, the current date and time is used. If the transaction_date does not fall within the effective start and effective end dates of any versions, then the response will be an error. When calling a specific version using version or version_id this field has no effect.

Example: 2022-10-30
nullOptional
or
string · dateOptional
or
string · date-timeOptional
subservicestring · nullableOptional

Comma separated string of subservice names. When this is not specified or set as #Default#, outputs not related to subservices are shown.

Example: subservice1 will only show the the outputs from subservice1.
source_systemstring · nullableOptional

Tag API call. Can be queried in API Call History.

Example: mycicd
correlation_idstring · nullableOptional

Tag API call. Can be queried in API Call History.

Example: 456
call_purposestring · nullableOptional

Tag API call. Can be queried in API Call History.

Example: admin system p
compiler_typenull,string · enum · nullableOptional

Calculation engine for the request. By default this uses the setting defined in Service Documentation Default service type.

Example: NeuronPossible values:
manual_nowinteger · nullableOptional

Default behavior for Excel NOW() and TODAY() functions are to return the value based upon server time. If a Unix epoch time is provided, then that will be used to derive the current time and date instead.

Example: 1650593119
Responses
chevron-right
200

OK

application/json
post
/{tenant}/api/v4/public/execute
200

OK

Last updated