Participant Service
Participant Type - State Machi...
Create events for a participant-type
1min
POST
https://{tenantSubdomain}/core/api/v2/participants/config/state-machine/events
This API is for create events based on given details.
Header Parameters
X-COREOS-REQUEST-ID
string
*
X-COREOS-TID
string
*
X-COREOS-ACCESS
string
*
X-COREOS-USERINFO
string
Body Parameters
body
EventCreateRequest
*
Description
Create new State Machine Event.
description
string
*
eventType
EventType
reasonCodes
string[]
participantTypeNames
string[]
isEnabled
boolean
dataValidations
EventDataItem[]
eventCode
string
Responses
201
OK - The request Succeeded.
SuccessResponseId
data
IdResponse
request
Request
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
*
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
*
request
Request
*
404
Not found - The server can not find the requested resource.
ErrorResponse
error
Error
*
request
Request
*
Curl
JS
Ruby
Python
1curl --location --globoff 'https://{tenantSubdomain}/core/api/v2/participants/config/state-machine/events' \
2--header 'Accept: application/json' \
3--header 'Content-Type: application/json' \
4--data '{"body":{"description":"string","isEnabled":false}}'
Responses
201
400
401
404
1// OK - The request Succeeded.
2{
3 "data": {
4 "id": ""
5 },
6 "request": {
7 "uri": "",
8 "method": "",
9 "queryString": "",
10 "body": {}
11 }
12}
Updated 31 May 2024
Did this page help you?