/organization/roles v1.0.0
Scroll down for code samples, example requests and responses. Select a language for code samples from the tabs above or the mobile navigation menu.
Base URLs:
Users
getOrganizationRoles
Code samples
const headers = {
Accept: "application/json",
};
fetch("https://goldleaf.app/api/v1/organization/roles", {
method: "GET",
headers: headers,
})
.then(function (res) {
return res.json();
})
.then(function (body) {
console.log(body);
});
GET /organization/roles
Lists available roles for organization members
This endpoint returns a list of available roles for members of the organization.
Example responses
Responses
| Status | Meaning | Description | Schema |
|---|---|---|---|
| 200 | OK | Successfully retrieved available roles | None |
| 401 | Unauthorized | Unauthorized, user is not authenticated | None |
| 403 | Forbidden | Forbidden, user does not have the necessary permissions | None |
