Skip to main content
(experimental) Creates a new snippet

Authorizations

Authorization
string
header
required

HTTP Basic authentication using global administrator credentials (username and password).

Body

application/vnd.composer.v3+json
type
enum<string>
required

Snippet type

Available options:
FILTER,
TEXT
Example:

"TEXT"

data
object

Data can contain any object with arbitrary number of fields inside

Example:

Response

The snippet was created

type
enum<string>
required

Snippet type

Available options:
FILTER,
TEXT
Example:

"TEXT"

id
string
read-only

Unique identifier of the snippet

Example:

"59ba04795b542f60838ce0ea"

data
object

Data can contain any object with arbitrary number of fields inside

Example:
auditable
object
read-only

Contains information about users and time of creating and updating this object