Update an event subscription
PATCH/assistants/{assistantId}/eventSubscriptions/{eventSubscriptionId}
Base URL: https://api.tinkermode.com
Update the event subscription with the specified ID.
Authentication
Send an Authorization header of the form ModeCloud <AUTH_CODE>.
Must contain the key of a user or service account with permissions to update assistant instances, or a project API key with admin permission.
Path parameters
| Name | Type | Required | Constraints | Description |
|---|---|---|---|---|
assistantId | integer | Yes | The unique ID for a specific Assistant instance. | |
eventSubscriptionId | integer | Yes | The unique ID for a specific event subscription. |
Request body
Content type: application/json
| Property | Type | Required | Constraints | Description | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
actions | array<object> | Yes | The actions to take when the event is triggered. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
assistantId | integer | Yes | The unique identifier for the AI Assistant instance this event subscription belongs to. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
createdAt | string | No | read-only (server-generated); format: date-time | Timestamp when the event subscription was created. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
description | string | No | A description of the event subscription. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
disabled | boolean | No | Whether the event subscription is disabled. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
eventType | string | Yes | The type of event to subscribe to. The pair of (assistantId, eventType) must be unique. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
id | integer | No | read-only (server-generated) | The unique identifier for the event subscription. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
name | string | Yes | Display name of the event subscription. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
projectId | integer | Yes | The unique identifier for the project the event subscription belongs to. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
updatedAt | string | No | read-only (server-generated); format: date-time | Timestamp when the event subscription was last updated. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Responses
204 Successfully updated the specified event subscription.
401 Authorization is required to access this resource.
Content type: application/json
| Property | Type | Required | Constraints | Description |
|---|---|---|---|---|
data | object | No | read-only (server-generated) | Any relevant data related to error. |
reason | string | Yes | read-only (server-generated) | Reason of error. |
403 Request failed because of invalid data or denied permission.
Content type: application/json
| Property | Type | Required | Constraints | Description |
|---|---|---|---|---|
data | object | No | read-only (server-generated) | Any relevant data related to error. |
reason | string | Yes | read-only (server-generated) | Reason of error. |
404 The requested eventSubscription does not exist or is not accessible.
Content type: application/json
| Property | Type | Required | Constraints | Description |
|---|---|---|---|---|
data | object | No | read-only (server-generated) | Any relevant data related to error. |
reason | string | Yes | read-only (server-generated) | Reason of error. |
429 Request failed because of rate limit.
Content type: application/json
| Property | Type | Required | Constraints | Description |
|---|---|---|---|---|
data | object | No | read-only (server-generated) | Any relevant data related to error. |
reason | string | Yes | read-only (server-generated) | Reason of error. |
500 An unexpected error has occurred.
Content type: application/json
| Property | Type | Required | Constraints | Description |
|---|---|---|---|---|
data | object | No | read-only (server-generated) | Any relevant data related to error. |
reason | string | Yes | read-only (server-generated) | Reason of error. |
503 The service is temporarily unavailable.
Content type: application/json
| Property | Type | Required | Constraints | Description |
|---|---|---|---|---|
data | object | No | read-only (server-generated) | Any relevant data related to error. |
reason | string | Yes | read-only (server-generated) | Reason of error. |