Create organization
POST /api/v1/organizations Select code sample Fetch cURL
List all organizations Next
Get organization by ID
const url = 'https://localhost:10001/api/v1/organizations';const options = { method: 'POST', headers: {Authorization: '
', 'Content-Type': 'application/json'}, body: '{"auth0Id":"example","createdAt":"example","description":"example","displayName":"example","id":1,"idpOrgId":"example","idpProvider":"example","name":"example","updatedAt":"example","uuid":"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:
' \ --header 'Content-Type: application/json' \ --data '{ "auth0Id": "example", "createdAt": "example", "description": "example", "displayName": "example", "id": 1, "idpOrgId": "example", "idpProvider": "example", "name": "example", "updatedAt": "example", "uuid": "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
Media type application/json object auth0IdDeprecated: use IDPOrgID
string createdAt string description string displayName string id integer idpOrgIdGeneric IDP organization ID
string idpProviderIDP provider name (auth0, keycloak, etc)
string name string updatedAt string uuid stringExample generated
{ "auth0Id": "example", "createdAt": "example", "description": "example", "displayName": "example", "id": 1, "idpOrgId": "example", "idpProvider": "example", "name": "example", "updatedAt": "example", "uuid": "example"}
Responses
Section titled “ Responses ”201
Section titled “201 ”Created organization
Media type application/json object auth0IdDeprecated: use IDPOrgID
string createdAt string description string displayName string id integer idpOrgIdGeneric IDP organization ID
string idpProviderIDP provider name (auth0, keycloak, etc)
string name string updatedAt string uuid stringExample generated
{ "auth0Id": "example", "createdAt": "example", "description": "example", "displayName": "example", "id": 1, "idpOrgId": "example", "idpProvider": "example", "name": "example", "updatedAt": "example", "uuid": "example"}
400
Section titled “400 ”Bad request - Invalid request body
Media type application/json object key additional properties stringExample generated
{ "additionalProperty": "example"}
401
Section titled “401 ”Unauthorized - Authentication required
Media type application/json object key additional properties stringExample generated
{ "additionalProperty": "example"}
403
Section titled “403 ”Forbidden - Insufficient permissions
Media type application/json object key additional properties stringExample generated
{ "additionalProperty": "example"}
500
Section titled “500 ”Internal server error
Media type application/json object key additional properties stringExample generated
{ "additionalProperty": "example"}
Previous List all organizations Next
Get organization by ID