Delete a node inside an organization
/api/v1/organizations/{id}/nodes/{nodeId}Soft-deletes the node and everything beneath it, removes every role assignment made there, revokes the pending invitations granting there and unmaps the directory groups mapped there, as DELETE /nodes/{id} does. The organization node is deleted through DELETE /organizations/{id} and answers 400 organization.use_organizations_api here. Requires the developer's hierarchy.manage, or canopy:structure.manage at the node's parent or above it, so an office's admin deletes what is beneath the office but not the office. Preview it first with POST .../delete/preview and send the version it answers as If-Match: a stale one answers 409. Emits node.deleted.
Authentication
Authorization Option A JWT access token. Never send alongside X-API-Key: a request carrying both is refused.
X-API-Key Option B API key for management-tier access. Never send alongside an Authorization header: a request carrying both is refused.
Path Parameters
idstring Required nodeIdstring Required Headers
If-MatchOptimistic-lock version of the resource. Send the `version` field returned on read; the server rejects with 409 if the row has changed since.
Responses
Node deleted
application/json
error *ApiErrorBodyDto
application/json
error *ApiErrorBodyDto
application/json
error *ApiErrorBodyDto
application/json
error *ApiErrorBodyDto
application/json
error *ApiErrorBodyDto
curl -X DELETE "https://auth.canopy-io.com/api/v1/organizations/value/nodes/value" \ -H "If-Match: "3"" \ -H "X-API-Key: $CANOPY_API_KEY"
HTTP/1.1 204 Node deleted (empty body)
Tell us how we can improve this guide.