Update an announcement
curl --request PATCH \
--url https://{host}/v2/workspaces/slug:ai-governance-v2/webhooks/v1/announcements/{announcementId} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"title": "<string>",
"summary": "<string>",
"content": "<string>",
"icon": "<string>",
"link": "<string>",
"targets": {},
"expires_at": "2023-11-07T05:31:56Z"
}
'const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
title: '<string>',
summary: '<string>',
content: '<string>',
icon: '<string>',
link: '<string>',
targets: {},
expires_at: '2023-11-07T05:31:56Z'
})
};
fetch('https://{host}/v2/workspaces/slug:ai-governance-v2/webhooks/v1/announcements/{announcementId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://{host}/v2/workspaces/slug:ai-governance-v2/webhooks/v1/announcements/{announcementId}"
payload = {
"title": "<string>",
"summary": "<string>",
"content": "<string>",
"icon": "<string>",
"link": "<string>",
"targets": {},
"expires_at": "2023-11-07T05:31:56Z"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text){
"id": "<string>",
"updated": true
}{
"error": "<string>",
"message": "<string>",
"details": {}
}{
"error": "<string>",
"message": "<string>",
"details": {}
}{
"error": "<string>",
"message": "<string>",
"details": {}
}{
"error": "<string>",
"message": "<string>",
"details": {}
}{
"error": "<string>",
"message": "<string>",
"details": {}
}{
"error": "<string>",
"message": "<string>",
"details": {}
}Announcements
Update an announcement
Partially updates an announcement. Only provided fields are
applied. When transitioning from draft to active, emits a
notifications.new event. Requires announcements:write
permission. Rate-limited to 50 calls per minute.
PATCH
/
v1
/
announcements
/
{announcementId}
Update an announcement
curl --request PATCH \
--url https://{host}/v2/workspaces/slug:ai-governance-v2/webhooks/v1/announcements/{announcementId} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"title": "<string>",
"summary": "<string>",
"content": "<string>",
"icon": "<string>",
"link": "<string>",
"targets": {},
"expires_at": "2023-11-07T05:31:56Z"
}
'const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
title: '<string>',
summary: '<string>',
content: '<string>',
icon: '<string>',
link: '<string>',
targets: {},
expires_at: '2023-11-07T05:31:56Z'
})
};
fetch('https://{host}/v2/workspaces/slug:ai-governance-v2/webhooks/v1/announcements/{announcementId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://{host}/v2/workspaces/slug:ai-governance-v2/webhooks/v1/announcements/{announcementId}"
payload = {
"title": "<string>",
"summary": "<string>",
"content": "<string>",
"icon": "<string>",
"link": "<string>",
"targets": {},
"expires_at": "2023-11-07T05:31:56Z"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text){
"id": "<string>",
"updated": true
}{
"error": "<string>",
"message": "<string>",
"details": {}
}{
"error": "<string>",
"message": "<string>",
"details": {}
}{
"error": "<string>",
"message": "<string>",
"details": {}
}{
"error": "<string>",
"message": "<string>",
"details": {}
}{
"error": "<string>",
"message": "<string>",
"details": {}
}{
"error": "<string>",
"message": "<string>",
"details": {}
}Authorizations
BearerAuthOrgApiKeyAuth
User-bound credential carrying an identity: either a session JWT
or a user access token (at:*) generated from the user settings UI.
Send as Authorization: Bearer <token>.
Org API keys (iak_*) are not accepted here - they carry
no user identity. Use the x-prismeai-api-key header instead
(see OrgApiKeyAuth).
Path Parameters
Announcement identifier.
Maximum string length:
64Pattern:
^[a-zA-Z0-9_-]+$Body
application/json
Maximum string length:
500Maximum string length:
2000Maximum string length:
50000Maximum string length:
256Maximum string length:
2048Audience targeting object - re-validated when provided.
Available options:
draft, active, archived Maximum string length:
32Maximum string length:
64Was this page helpful?