Skip to main content
PATCH
/
v2
/
workspaces
/
{workspaceId}
/
webhooks
/
{automationSlug}
*
Automation Webhook (PATCH)
curl --request PATCH \
  --url 'https://api.studio.prisme.ai/v2/workspaces/{workspaceId}/webhooks/{automationSlug}*' \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '"<unknown>"'
const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify('<unknown>')
};

fetch('https://api.studio.prisme.ai/v2/workspaces/{workspaceId}/webhooks/{automationSlug}*', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));
import requests

url = "https://api.studio.prisme.ai/v2/workspaces/{workspaceId}/webhooks/{automationSlug}*"

payload = "<unknown>"
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}

response = requests.patch(url, json=payload, headers=headers)

print(response.text)
{
  "error": "ObjectNotFound",
  "message": "<string>",
  "details": "<unknown>"
}
{
"error": "ForbiddenError",
"message": "Forbidden"
}
{
"error": "ObjectNotFound",
"message": "<string>"
}

Authorizations

Authorization
string
header
required

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

Path Parameters

workspaceId
string
required

Workspace ID, or slug prefixed with "slug:" (e.g. slug:my-workspace)

automationSlug
string
required

Automation slug we will trigger. Can contain a slash in order to make subpath.

Query Parameters

query
object

Body

Entire body will be passed as a payload to the triggered automation

Response

Success Response