Static
createThe schema requires a name, an application domain, a schema type and a content type. *
Optional
xOptional context id the request is running. *
Static
createCreate a schema version
Creates a schema version
Token Permissions: [ schema:update:*
]
SchemaVersionResponse Created a schema version. The newly saved schema version is returned in the response body.
ApiError
schema version details *
Optional
xOptional context id the request is running. *
Static
deleteDelete a schema
Use this API to delete a schema. The schema must not be in use by any events else it cannot be deleted.
Token Permissions: [ schema:delete:*
]
void
ApiError
The ID of the schema. *
Optional
xOptional context id the request is running. *
Static
deleteDelete a schema version
Use this API to delete a schema version.
Token Permissions: [ schema:update:*
]
void
ApiError
The ID of the schema version. *
Optional
xOptional context id the request is running. *
Static
getGet a schema
Use this API to get a single schema by its ID.
Token Permissions: [ schema:get:*
]
SchemaResponse The schema.
ApiError
The ID of the schema. *
Optional
xOptional context id the request is running. *
Static
getGet a schema version
Use this API to get a single schema version by its ID.
Token Permissions: [ schema:get:*
]
SchemaVersionResponse The schema version.
ApiError
The ID of the schema version. *
Optional
xOptional context id the request is running. *
Static
getGet a list of schema versions
Use this API to get a list of schema versions that match the given parameters.
Token Permissions: [ event_designer:access
]
SchemaVersionsResponse Get a list of schema versions and the accompanying metadata.
ApiError
Optional
customReturns the entities that match the custom attribute filter.
To filter by custom attribute name and value, use the format: customAttributes=<custom-attribute-name>==<custom-attribute-value>
.
To filter by custom attribute name, use the format: customAttributes=<custom-attribute-name>
.
The filter supports the AND
operator for multiple custom attribute definitions (not multiple values for a given definition). Use ;
(semicolon
) to separate multiple queries with AND
operation.
Note: the filter supports custom attribute values containing only the characters [a-zA-Z0-9_\-\. ]
. *
Optional
ids?: string[]Match only schema versions with the given IDs, separated by commas. *
Optional
pageThe page number to get. *
Optional
pageThe number of schema versions to get per page. *
Optional
schemaMatch only schema versions of these schema IDs, separated by commas. *
Optional
xOptional context id the request is running. *
Static
getGet a list of schemas
Use this API to get a list of schemas that match the given parameters.
Token Permissions: [ event_designer:access
]
SchemasResponse Get a list of schemas and the accompanying metadata.
ApiError
Optional
applicationMatch only schemas in the given application domain. *
Optional
applicationMatch only schemas in the given application domain ids. *
Optional
customReturns the entities that match the custom attribute filter.
To filter by custom attribute name and value, use the format: customAttributes=<custom-attribute-name>==<custom-attribute-value>
.
To filter by custom attribute name, use the format: customAttributes=<custom-attribute-name>
.
The filter supports the AND
operator for multiple custom attribute definitions (not multiple values for a given definition). Use ;
(semicolon
) to separate multiple queries with AND
operation.
Note: the filter supports custom attribute values containing only the characters [a-zA-Z0-9_\-\. ]
. *
Optional
ids?: string[]Match only schemas with the given IDs separated by commas. *
Optional
name?: stringName of the schema to match on. *
Optional
pageThe page number to get. *
Optional
pageThe number of schemas to get per page. *
Optional
schemaMatch only schemas with the given schema type *
Optional
shared?: booleanMatch only with shared or unshared schemas. *
Optional
sort?: stringSort based on the provided parameters.
The value can be either a standalone field name (?sort=<field>
) or a field and direction, delimited by a colon (?sort=<field>:<asc|desc>
). If the direction is not specified, the default is ascending. *
Optional
xOptional context id the request is running. *
Static
updateUpdate a schema
Update a schema.
Token Permissions: [ schema:update:*
]
SchemaResponse Updated a schema. The newly saved schema is returned in the response body.
ApiError
The ID of the schema. *
The schema requires a name, an application domain, a schema type and a content type. *
Optional
xOptional context id the request is running. *
Static
updateUpdate a schema version
Use this API to update a schema version.
Token Permissions: [ schema:update:*
]
SchemaVersionResponse The schema version.
ApiError
The ID of the schema version. *
Optional
xOptional context id the request is running. *
Static
updateUpdate the state of a schema version
Use this API to update the state of a schema version.
Token Permissions: [ schema:update_state:*
]
StateChangeRequestResponse The updated state of the schema version.
ApiError
The ID of the schema version. *
The state change object. *
Optional
xOptional context id the request is running. *
Create a schema To model your event-driven architecture, schemas are a fundamental building block for modelling the payloads of the events flowing through your system. Use this API to create schemas that can later be referenced by events.
Token Permissions: [
schema:create:*
]Returns
SchemaResponse Created a schema. The newly saved schema is returned in the response body.
Throws
ApiError