Skip to navigation

Put an action

Sets the whole action of one event name: it creates the action, or replaces the name and the fields of the one it has. With expectedUpdatedAt, the put is refused with conflict when the action changed since you read it. The Paid app’s display page for the event reads and writes the same action. {eventName} takes the event name of the action.

Authentication

AuthorizationBearer
API Key authentication using Bearer token

Path parameters

eventNamestringRequired1-255 characters
The event name of the action.

Headers

Paid-BetaenumRequired

This endpoint is in the actions=v1 beta. Send this header to use it.

Allowed values:

Request

Body
fieldslist of objectsRequired
The event data fields to show, in the order to show them. At most 100 fields. At most one is the title field, a hidden field cannot be the title, and a field that is shown needs a title field to exist.
namestringRequired>=1 character

How a reader names the event, such as Meeting booked. It replaces the event name wherever the event is shown.

expectedUpdatedAtdatetime or nullOptional

The updatedAt of the action that you read. When the action changed since then, the put is refused with conflict. Send null when you read no action: the put is refused if one exists. Leave it out to set the action whatever it is now.

Response

200
idstring
The action's ID.
objectenum

The type of object. Always action.

Allowed values:
createdAtdatetime
When the object was created.
eventNamestring

The event name this action describes, such as meeting_booked. One action per event name: it is the action’s key, and it never changes.

fieldslist of objects
The event data fields to show, in the order to show them. At most 100 fields. At most one is the title field, a hidden field cannot be the title, and a field that is shown needs a title field to exist.
livemodeboolean

true for an object on a live account, false on a test account.

namestring

How a reader names the event, such as Meeting booked. It replaces the event name wherever the event is shown.

updatedAtdatetime
When the object was last changed.

Errors

400
Bad Request Error
401
Unauthorized Error
403
Forbidden Error
409
Conflict Error
429
Too Many Requests Error
500
Internal Server Error