Policy handbooks

Delete a policy handbook

Removes a policy handbook. Set enabled to false with the update endpoint instead when you want it to stop steering chats but keep the text.

DELETE
https://api.portal.magicdoor.com/company-app/policy-handbooks/{policyHandbookId}

Authorization

Authorizationstringrequired
Bearer token — Send your API token in the Authorization header as Bearer <token>. Requests without a valid token are rejected with 401 Unauthorized.

Path parameters

policyHandbookIdstringrequired

The policy handbook to act on. A Snowflake id sent as a decimal string.

example: 1830472847398422022

Response

200 · The handbook was deleted. No body is returned.

401 · The access token is missing, expired, or not valid for this company.

404 · No policy handbook with that id exists in the caller's company.