Switch owner in sub-organization
POST/bv/org/v1/sub-orgs/:id:switch-owner
Switches the owner of a specific sub-organization within the main organization using the provided access token.
Required field(s):
id
- Returns a
404/NotFounderror if the requested resource is not found. - Returns a
400/BadRequesterror if the request body is invalid. - Returns a
400/BadRequestwithERROR_REASON_EXISTSerror if the new owner is already set. - Returns a
400/BadRequestwithERROR_REASON_USER_NOT_IN_ORGerror if the new owner is not a member of the organization.
Request
Responses
- 200
- 400
- 401
- 403
- 500
- default
A successful response.
A unauthenticated response.
The header authorization was missing or unidentified.
A forbidden response.
It means that the provided authorization did not have enough permission to access the resource or the API.
A server error response. There are more HTTP status code mappings listed on here.
An unexpected error response.