Create organization
const url = 'https://localhost:10001/api/v1/organizations';const options = { method: 'POST', headers: {Authorization: '<Authorization>', 'Content-Type': 'application/json'}, body: '{"auth0Id":"example","description":"example","displayName":"example","idpOrgId":"example","idpProvider":"example","name":"example"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://localhost:10001/api/v1/organizations \ --header 'Authorization: <Authorization>' \ --header 'Content-Type: application/json' \ --data '{ "auth0Id": "example", "description": "example", "displayName": "example", "idpOrgId": "example", "idpProvider": "example", "name": "example" }'Create a new organization and add the creating user as organization owner
Authorizations
Section titled “Authorizations ”Request Body
Section titled “Request Body ”Organization payload
object
Deprecated: use idpOrgId
Generic IDP organization ID
IDP provider name (auth0, keycloak, etc)
Example generated
{ "auth0Id": "example", "description": "example", "displayName": "example", "idpOrgId": "example", "idpProvider": "example", "name": "example"}Responses
Section titled “ Responses ”Created organization
A company or top-level entity that owns projects and the policy library
object
Deprecated: use idpOrgId
Generic IDP organization ID
IDP provider name (auth0, keycloak, etc)
Urn:uuid form
Example generated
{ "auth0Id": "example", "description": "example", "displayName": "example", "idpOrgId": "example", "idpProvider": "example", "name": "example"}Bad request - Invalid request body
Error body returned by the governance endpoints; the message is human-readable and not a stable identifier
object
Example
{ "error": "Invalid request body"}Unauthorized - Authentication required
Error body returned by the governance endpoints; the message is human-readable and not a stable identifier
object
Example
{ "error": "Invalid request body"}Forbidden - Insufficient permissions
Error body returned by the governance endpoints; the message is human-readable and not a stable identifier
object
Example
{ "error": "Invalid request body"}Internal server error
Error body returned by the governance endpoints; the message is human-readable and not a stable identifier
object
Example
{ "error": "Invalid request body"}