Organizations API

Remove Manager from the Organization by Username

POST v2/organizations/:guid/managers/remove

Request

Route

POST v2/organizations/937e0d78-46e4-4f6f-a348-f96240ee4420/managers/remove

Parameters

Name Description Valid Values Example Values
guid The guid of the Organization

Body

Name Description Default Valid Values Example Values
username The user's name
origin The UAA origin
  • ldap
  • uaa
{
  "username": "[email protected]",
  "origin": "ldap"
}

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTIxNSIsImVtYWlsIjoiZW1haWwtMTYwQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NjYwMDg4OTR9.x7bR9ajJdrQFK96z6P9t6lc0RfwRDnzJGGYjYhoRHew
Host: example.org
Content-Type: application/json
Cookie: 

cURL

curl "https://api.[your-domain.com]v2/organizations/937e0d78-46e4-4f6f-a348-f96240ee4420/managers/remove" -d '{
    "username": "[email protected]",
    "origin": "ldap"
  }' -X POST \
    -H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTIxNSIsImVtYWlsIjoiZW1haWwtMTYwQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NjYwMDg4OTR9.x7bR9ajJdrQFK96z6P9t6lc0RfwRDnzJGGYjYhoRHew" \
    -H "Host: example.org" \
    -H "Content-Type: application/json" \
    -H "Cookie: "

Response

Status

204 No Content

Headers

X-VCAP-Request-ID: 2c993305-6c73-4d99-aed2-9355f86ff8ff
X-Content-Type-Options: nosniff