State Machine Service
Events
Post events for a particular entity
1min
POST
HEADER PARAMETERS
X-COREOS-REQUEST-ID
string
*Unique requestId
X-COREOS-TID
string
*Tenant id
X-COREOS-ACCESS
string
*core-os access token
X-COREOS-USERINFO
string
core-os user info token
BODY PARAMETERS
body
EventCreateRequest
*Create event
description
string
*Short description of the event. Max length 64 characters.
eventType
EventType
Specifies event is transitional or not.
reasonCodes
string[]
Example: ["R-nnnn"]
List of valid reason codes that can raise this event code
entities
string[]
*List of valid entities where this event can be applied
isEnabled
boolean
True - Event Code is valid & usable. False - Event Code is not usable
dataValidations
EventDataItem[]
Data expected along with the event and their respective validations, if any.
eventCode
string
Code of the event.
RESPONSES
200
OK
SuccessResponse
[All Of:ErrorResponseobject]error
Error
*Error Information
request
Request
*data
object
400
Bad request - The server is unable to process the request due to something that is perceived to be a client error.
ErrorResponse
error
Error
*Error Information
request
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.
ErrorResponse
error
Error
*Error Information
request
Request
*503
Server error - The server is not ready to handle the request. This could be due to maintenance downtime or system resource constraints.
ErrorResponse
error
Error
*Error Information
request
Request
*

Updated 21 Sep 2023
Did this page help you?