API Docs / Operations / My Practices / Remove My Practice Organisation

Remove My Practice Organisation

DELETE /me/practices/{practice}/organisations/{tenant}

Takes the organisation out of the practice. The practice members named in keep (user codes) keep access as members of the organisation itself, at their current level; every other practice member loses it. Its own members are untouched. Its HMRC settings stop using the practice's credentials (it needs its own before it can submit), and pending invitations to the practice sent from it are withdrawn. To hand it to the client, transfer ownership too (PUT /tenants/{tenant}/owner). 400 when someone to keep is not a member of the practice; 404 when the practice does not run the organisation; 409 for a practice managed in Sodium.

Parameters

NameTypeDescription
tenant* path string

The tenant code (the organisation's URL stub)

The tenant code (the organisation's URL stub)

keep query array
practice* path string (uuid)

Responses

204 No Content
400 Bad Request
application/problem+json
401 Unauthorized – Invalid or missing API key
404 Not Found
application/problem+json
409 Conflict
application/problem+json