Delete legal content for a type
curl --request DELETE \
--url https://{host}/v2/workspaces/slug:ai-governance-v2/webhooks/v1/legal/{type} \
--header 'Authorization: Bearer <token>'const options = {method: 'DELETE', headers: {Authorization: 'Bearer <token>'}};
fetch('https://{host}/v2/workspaces/slug:ai-governance-v2/webhooks/v1/legal/{type}', 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/legal/{type}"
headers = {"Authorization": "Bearer <token>"}
response = requests.delete(url, headers=headers)
print(response.text){
"type": "<string>",
"orgSlug": "<string>",
"deleted": true
}{
"error": "<string>",
"message": "<string>",
"details": {}
}{
"error": "<string>",
"message": "<string>",
"details": {}
}{
"error": "<string>",
"message": "<string>",
"details": {}
}{
"error": "<string>",
"message": "<string>",
"details": {}
}Legal
Delete legal content for a type
Removes the legal document for the given type and the caller’s
organization. Requires the announcements:write permission
(this endpoint reuses the announcements auth resource).
Rate-limited to 50 calls per minute.
DELETE
/
v1
/
legal
/
{type}
Delete legal content for a type
curl --request DELETE \
--url https://{host}/v2/workspaces/slug:ai-governance-v2/webhooks/v1/legal/{type} \
--header 'Authorization: Bearer <token>'const options = {method: 'DELETE', headers: {Authorization: 'Bearer <token>'}};
fetch('https://{host}/v2/workspaces/slug:ai-governance-v2/webhooks/v1/legal/{type}', 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/legal/{type}"
headers = {"Authorization": "Bearer <token>"}
response = requests.delete(url, headers=headers)
print(response.text){
"type": "<string>",
"orgSlug": "<string>",
"deleted": true
}{
"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
Legal document type slug (e.g. cgu, privacy-policy,
secure-chat).
Maximum string length:
64Pattern:
^[a-z0-9-]+$Was this page helpful?