Skip to main content
Version: v5.0

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",
"usergroups.limit": "30"
}

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
Body
ParameterTypeDescriptionRequired
applications.limitNumberMax Number of applications allowed in the organizations.Optional
workspaces.limitNumberMax Number of workspaces allowed in the organizations.Optional
usergroups.limitNumberMax Number of usergroups allowed in the organizations.Optional

Code example

{
"applications.limit": 1,
"workspaces1.limit": 2,
"usergrouos.limit":30
}

Response

Response codes

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

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
Body
ParameterTypeDescriptionRequired
applications.limitNumberMax Number of applications allowed in the organizations.Optional
workspaces.limitNumberMax Number of workspaces allowed in the organizations.Optional
usergroups.limitNumberMax Number of usergroups allowed in the organizations.Optional

Code example

{
"applications.limit": 1,
"workspaces1.limit": 2
}

Response

Response codes

CodeDescription
200Success
404Not Found
{
"applications.limit": 1,
"workspaces.limit": 2
}

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"
}
]