Create organization
POST
/api/v1/organizations
const url = 'https://localhost:10001/api/v1/organizations';const options = { method: 'POST', headers: {Authorization: '<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: <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
auth0Id
Deprecated: use IDPOrgID
string
createdAt
string
description
string
displayName
string
id
integer
idpOrgId
Generic IDP organization ID
string
idpProvider
IDP provider name (auth0, keycloak, etc)
string
name
string
updatedAt
string
uuid
string
Example 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 ”Created organization
Media type application/json
object
auth0Id
Deprecated: use IDPOrgID
string
createdAt
string
description
string
displayName
string
id
integer
idpOrgId
Generic IDP organization ID
string
idpProvider
IDP provider name (auth0, keycloak, etc)
string
name
string
updatedAt
string
uuid
string
Example generated
{ "auth0Id": "example", "createdAt": "example", "description": "example", "displayName": "example", "id": 1, "idpOrgId": "example", "idpProvider": "example", "name": "example", "updatedAt": "example", "uuid": "example"}Bad request - Invalid request body
Media type application/json
object
key
additional properties
string
Example generated
{ "additionalProperty": "example"}Unauthorized - Authentication required
Media type application/json
object
key
additional properties
string
Example generated
{ "additionalProperty": "example"}Forbidden - Insufficient permissions
Media type application/json
object
key
additional properties
string
Example generated
{ "additionalProperty": "example"}Internal server error
Media type application/json
object
key
additional properties
string
Example generated
{ "additionalProperty": "example"}