Administration

Create event

Create an event.

post/_fabric/{fabric}/_api/events

Request

Path parameters

fabricstring string required

The name of the fabric.

Request body

actionstring

The activity of the event (CREATE/UPDATE/DELETE/EXECUTE/LOGIN).

attributesEventAttributes

Additional event attributes. If specified, attributes should be a JSON array containing key-value attributes

descriptionstring

Event description.

detailsstring

Additional activity info.

entityNamestring required

The entity name of the event.

entityTypestring

The entity type of the event (COLLECTION/GRAPH/CEP/AUTH/STREAM/GEOFABRIC).

statusstring

The activity status (OK/WARN/ERROR).

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

_idstring

ID of the event.

_keystring

_key details of event.

_revstring

_rev details of event.

Example response

{
  "_id": "test/foo",
  "_key": "foo",
  "_rev": "_dPRuHxe--_"
}

Changes

No recorded changes to this operation across all 1 revision of this API.