Skip to main content

Update organization

The endpoint provides functionality for organization modification.

HTTP request

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

Parameters

ParameterInTypeRequired / OptionalDescription
instanceIdpathstringRequiredThe ID of your Identity Cloud instance
organizationIdpathstringRequiredThe ID of the organization
includeUserCountquerybooleanOptionalIf the value is true the number of users assigned to the organization is included in the response Default false

Request body

ParameterTypeRequired / OptionalDescription
domainstringOptionalThe domain of the organization
namestringOptionalThe name of the organization
versionintegerOptionalThe version of the organization data, used for optimistic locking
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

Modifying an organization's name

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


HTTP response

On success

HTTP/1.1 200 is returned if the organization is successfully modified.

The response contains all attributes of the organization. The version and lastModified parameters are updated automatically.

Example response

{
"organizationId": "4e71988b-7302-4133-adf8-887499357ad4",
"created": "2023-06-08T10:17:29Z",
"domain": "your-organization.org",
"name": "Your Organization",
"organizationState": "active",
"lastModified": "2023-06-09T10:17:29Z",
"version": 1,
"userCount": 15,
"overrideLoginProvider": "none",
"overrideSignup": "none"
}

On failure

HTTP/1.1 404 is returned if no organization is found with the given organizationId, with a detailed message.

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

HTTP/1.1 409 is returned if update fails with conflict.

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

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