Skip to main content
PATCH
Update an Event Contract

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

contractId
string
required

Body

application/json

The input for updating a Contract

name
string

The contract's name

slug
string

The contract's slug. If not specified, one will be generated.

description
string

The contract's description

onUndeclaredSchema
enum<string>

What happens to events that aren't defined in the contract. One of ALLOW_EVENT or BLOCK_EVENT. Optional, defaults to ALLOW_EVENT.

Available options:
ALLOW_EVENT,
BLOCK_EVENT
events
object[]

The definitions for the events in the contract.

Response

Ok

The input for updating a Contract

name
string

The contract's name

slug
string

The contract's slug. If not specified, one will be generated.

description
string

The contract's description

onUndeclaredSchema
enum<string>

What happens to events that aren't defined in the contract. One of ALLOW_EVENT or BLOCK_EVENT. Optional, defaults to ALLOW_EVENT.

Available options:
ALLOW_EVENT,
BLOCK_EVENT
events
object[]

The definitions for the events in the contract.