Créer une action personnalisée

Créer une action personnalisée appartenant à une équipe

Authentification

AuthorizationBearer

Authentification bearer de la forme Bearer <token>, où token est votre jeton d’authentification.

Paramètres de chemin

team_idstringRequisformat: "uuid"

Requête

Action to create or update
descriptionstringRequis
Description of the custom Action
eventstringRequis
Arbitrary event name to include in custom Action webhook payloads
namestringRequis
Name of the custom Action
urlstringRequis
HTTPS endpoint to deliver Action events to
allow_collaboratorsbooleanOptionnelPar défaut false
includestringOptionnel
Any associations to include in the response

Réponse

Action success response
activebooleanOptionnel
allow_collaboratorsbooleanOptionnel
creator_idstringOptionnelformat: "uuid"
deleted_atstringOptionnelformat: "date-time"
descriptionstringOptionnel
eventstringOptionnel
idstringOptionnelformat: "uuid"
imagestringOptionnel
inserted_atstringOptionnelformat: "date-time"
namestringOptionnel
teamobjectOptionnel
team_idstringOptionnelformat: "uuid"
updated_atstringOptionnelformat: "date-time"
upload_urlstringOptionnel
urlstringOptionnel
webhookobjectOptionnel

Erreurs

401
Unauthorized Error
404
Not Found Error