Skip to main content
(experimental) Updates the snippet. Creates a new one if snippet with provided ID does not exist

Authorizations

Authorization
string
header
required

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

Path Parameters

snippetId
string
required

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 updated

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