Administration
Create event
Create an event.
post/_fabric/{fabric}/_api/events
Request
- The document declares no server URL.
- Auth
- API key in header Authorization
- or HTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
fabricstring string required
The name of the fabric.
Request body
Example request
{
"action": "CREATE",
"attributes": {
"CollectionType": "DOCUMENT",
"HasStream": 1,
"IsLocal": 0,
"IsOrigin": 1
},
"description": "Test event",
"details": "Error message",
"entityName": "Test",
"entityType": "COLLECTION",
"status": "OK"
}Response
Successfully created event
Example response
{
"_id": "test/foo",
"_key": "foo",
"_rev": "_dPRuHxe--_"
}Changes
No recorded changes to this operation across all 1 revision of this API.