Skip to main content

Create organization

The endpoint provides functionality to create an organization.

HTTP request

POST https://$instanceId.id.nevis.cloud/nevis/api/v1/organizations

Parameters

ParameterInTypeRequired / OptionalDescription
instanceIdpathstringrequiredThe ID of your Identity Cloud instance

Request body

An organization can be created by only providing the domain and name.

ParameterTypeRequired / OptionalDescription
domainstringRequiredThe domain of the organization
namestringRequiredThe name of the organization
overrideLoginProviderenumOptionalTypes of the login provider Values: none, google, microsoft, Default: none
overrideSignupenumOptionalTypes of the signup override Values: none, disabled, default, custom, Default: none
customSignupUrlenumOptionalUrl of the organization if the overrideSignup is custom

Example request

You need to provide the required domain and name.

domain=your-organization.org
name=Your organization
curl --request POST "https://$instanceId.id.nevis.cloud/nevis/api/v1/organizations" \
--header "Authorization: Bearer $accessKey" \
--header "Content-Type: application/json" \
--data "{ \"domain\" : \"$domain\", \"name\" : \"$name\" }"

HTTP response

On success

HTTP/1.1 201 is returned if the organization is successfully created.

The response has the following additional header Location, containing the organizationId of the created organization:

https://$instanceId.id.nevis.cloud/nevis/api/v1/organizations/$organizationId

The organizationId is a generated UUID.

On failure

HTTP/1.1 401 is returned if the authorization fails due to an invalid access key.

HTTP/1.1 422 is returned if invalid request content is given.

HTTP/1.1 500 is returned if an unexpected error occurs.