Clear a user's manager (make them a top-level / root node).
DELETE
/admin/org-chart/users/{userId}/manager
const url = 'https://api.gospl.example/v1/admin/org-chart/users/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/manager';const options = {method: 'DELETE', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request DELETE \ --url https://api.gospl.example/v1/admin/org-chart/users/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/manager \ --header 'Authorization: Bearer <token>'Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ” userId
required
string format: uuid
Responses
Section titled “ Responses ”Cleared; user is now a root node.
Missing/invalid credentials.
Media type application/json
object
code
required
string
message
required
string
Example generated
{ "code": "example", "message": "example"}Not an admin, or cross-tenant.
Media type application/json
object
code
required
string
message
required
string
Example generated
{ "code": "example", "message": "example"}User not found within the caller’s tenant.
Media type application/json
object
code
required
string
message
required
string
Example generated
{ "code": "example", "message": "example"}