Skip to main content
Version: v4.6

Organization configurations

Overview

This set of API calls support the configuration of an organization.

The available API calls are:

Get OrganizationConfigs for an Organization

This API call retrieves all the configurations for a given organization.

Endpoint

GET /passportsvc/api/v1/organizations/{orgId}/configs

Request

Path parameters

ParameterTypeDescriptionRequired
orgIdStringThe organization's ID.Required

Response

Response codes

CodeDescription
200Success
404Not Found

Body

{
"applications.limit": "5",
"workspaces.limit": "3"
}

Create or Replace OrganizationConfigs for an Organization

This API call replaces all configurations for a given organization. If the configuration does not exist, it will create one. Returns a 400 Bad Request error for an unknown configuration.

Endpoint

PUT /passportsvc/api/v1/organizations/{orgId}/configs

Request

Path parameters

ParameterTypeDescriptionRequired
orgIdStringThe organization's ID.Required

Response

Response codes

CodeDescription
200Created
404Not Found
{
"applications.limit": "5",
"workspaces.limit": "3"
}

Update OrganizationConfigs for an Organization

This API call updates only the given configuration for an organization. If the configuration does not exist, it will create one. Returns a 400 Bad Request error for an unknown configuration.

Endpoint

PATCH /passportsvc/api/v1/organizations/{orgId}/configs

Request

Path parameters

ParameterTypeDescriptionRequired
orgIdStringThe organization's ID.Required

Response

Response codes

CodeDescription
200Success
404Not Found
{
"applications.limit": "3",
"workspaces.limit": "5"
}

Delete OrganizationConfigs for an Organization

This API call clears all configurations for a given organization.

Endpoint

DELETE /passportsvc/api/v1/organizations/{orgId}/configs

Request

Path parameters

ParameterTypeDescriptionRequired
orgIdStringThe organization's ID.Required

Response

Response codes

CodeDescription
204No Content
404Not Found

Get Available OrganizationConfigs

This API call retrieves a list of all the configuration parameters available for organizations. Returns a static response, used to provide help information.

Endpoint

GET /passportsvc/api/v1/organizations/configs

Request

Path parameters

None.

Response

Response codes

CodeDescription
200Success

Body

[
{
"key": "applications.limit",
"displayText": "Max number of applications allowed"
},
{
"key": "workspaces.limit",
"displayText": "Max number of workspaces allowed"
}
]