State Machine Service
Instance State

Populate the instance with the default state

1min
POST
https://{tenantSubDomain}.fxtrt.io/core/api/v1/state-machine/{entityCode}/instance

This API will create an instance of the particular entity type with the default state machine configuration.

ParamterDescriptionTypeValidation
instanceId*Unique Id of the instance that needs to be onboarded with the state machine configuration.stringminLength: 1 maxLength: 64
stateThe default state of the instance to which it should be onboarded to. If not provided, then instance will be onboarded to default state mentioned in the state machine configuration.stringminLength: 3 maxLength: 64
callbackRepresents callback url, which can be called to notify the status of API request.stringpattern: A valid URL.
*This is required.

HTTP Status Code Summary

CodeDescription
200 - OKEverything worked as expected.
| **400 - Bad Request** | The request was unacceptable, often due to missing a required parameter. |
| **401 - Unauthorized** | No valid API key provided. |
| **503 - Server Errors** | Something went wrong on our end. (These are rare.) |
Path Parameters
entityCode
*
Header Parameters
X-COREOS-REQUEST-ID
*
X-COREOS-TID
*
X-COREOS-ACCESS
*
X-COREOS-USERINFO
Body Parameters
body
*
Description
Onboard an instance of the entity type with default state
instanceId
*
state
callback
Responses
200
OK
All Of
ErrorResponse +
error
*
request
*
data
All Of
Instance +
400
Bad request - The server is unable to process the request due to something that is perceived to be a client error.
error
*
request
*
401
Unauthorized - The client's identity is unknown to the server. Verify that you are accessing the correct tenant and that your client ID and client secret are valid on that Tenant.
error
*
request
*
503
Server error - The server is not ready to handle the request. This could be due to maintenance downtime or system resource constraints.
error
*
request
*
Curl
JS
Ruby
Python
Responses
200
400
401
503