Create a new Event Request
- application/json
Request Body required
Event Request type and payload with the associated signature
request object required
oneOf- MOD1
- MOD2
Create object
governance_id string requirednamespace string requiredpayload object required
oneOf- MOD1
- MOD2
Json objectJsonPatch objectschema_id string requiredState object
payload object required
oneOf- MOD1
- MOD2
Json objectJsonPatch objectsubject_id string requiredsignature object
Signature of a external event request
content object required
event_content_hash string requiredsigner string requiredtimestamp int64 requiredsignature string required- timestamp int64
Responses
- 202
- 400
- 401
- 500
Event Request Created
- application/json
- Schema
- Example (from schema)
- Example
Schema
request object
oneOf- MOD1
- MOD2
Create object
governance_id stringnamespace stringpayload object
oneOf- MOD1
- MOD2
Json stringJsonPatch stringschema_id stringState object
payload object
oneOf- MOD1
- MOD2
Json stringJsonPatch stringsubject_id string- request_id string
- sn int64
- subject_id string
- timestamp int64
{
"request": {
"Create": {
"governance_id": "string",
"namespace": "string",
"payload": {
"Json": "string"
},
"schema_id": "string"
}
},
"request_id": "string",
"sn": 0,
"subject_id": "string",
"timestamp": 0
}
{
"request": {
"Create": {
"governance_id": "",
"namespace": "",
"payload": {
"Json": "{\"members\":[{\"description\":\"Sede en España\",\"id\":\"Compañía1\",\"key\":\"EFXv0jBIr6BtoqFMR7G_JBSuozRc2jZnu5VGUH2gy6-w\",\"tags\":{}},{\"description\":\"Sede en Inglaterra\",\"id\":\"Compañía2\",\"key\":\"ECQnl-h1vEWmu-ZlPuweR3N1x6SUImyVdPrCLmnJJMyU\",\"tags\":{}}],\"schemas\":[{\"content\":{\"additionalProperties\":false,\"properties\":{\"localizacion\":{\"type\":\"string\"},\"temperatura\":{\"type\":\"integer\"}},\"required\":[\"temperatura\",\"localizacion\"],\"type\":\"object\"},\"id\":\"Prueba\",\"tags\":{}}]}"
},
"schema_id": ""
}
},
"request_id": "JpxalqMTQcDcLG3dwb8uvcrstJo6pmFEzUwhzi0nGPOA",
"sn": 0,
"subject_id": "J7BgD3dqZ8vO4WEH7-rpWIH-IhMqaSDnuJ3Jb8K6KvL0",
"timestamp": 1671705355
}
Bad Request
Unauthorized
Internal Server Error
Loading...