Skip to main content

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/NotFound error if the requested resource is not found.
  • Returns a 400/BadRequest error if the request body is invalid.
  • Returns a 400/BadRequest with ERROR_REASON_EXISTS error if the new owner is already set.
  • Returns a 400/BadRequest with ERROR_REASON_USER_NOT_IN_ORG error if the new owner is not a member of the organization.

Request

Path Parameters

    id stringrequired

    Required. The unique id of the sub-organization.

Header Parameters

    x-bv-org-id stringrequired

    To invoke this API using api_token, you need to set the x-bv-org-id header to specify the organization for which you want to perform the action.

Body

required
    new_owner_email stringrequired

    Required. The new owner email to switch of the sub-organization.

Responses

A successful response.

Schema

    object

Loading...