Skip to main content
Version: v4.5

Overview

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

The available API calls are:

Get ApplicationConfigs for an application#

This API call retrieves all the configurations for an application.

Endpoint#

GET /passportsvc/api/v1/apps/{appId}/configs 

Request#

Path parameters#

ParameterTypeDescriptionRequired
appIdStringThe application's ID.Required

Response#

Response codes#

CodeDescription
200Success
404Not Found

Body#

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

Create or Replace ApplicationConfigs for an application#

This API call replaces all configurations. 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/apps/{appId}/configs 

Request#

Path parameters#

ParameterTypeDescriptionRequired
appIdStringThe application's ID.Required

Response#

Response codes#

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

Update ApplicationConfigs for an application#

This API call updates only the given configuration. 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/apps/{appId}/configs 

Request#

Path parameters#

ParameterTypeDescriptionRequired
appIdStringThe application's ID.Required

Response#

Response codes#

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

Delete ApplicationConfigs for an application#

This API call clears all configurations for an application.

Endpoint#

DELETE /passportsvc/api/v1/apps/{appId}/configs 

Request#

Path parameters#

ParameterTypeDescriptionRequired
appIdStringThe application's ID.Required

Response#

Response codes#

CodeDescription
204No Content
404Not Found

Get Available ApplicationConfigs#

Endpoint#

GET /passportsvc/api/v1/apps/configs 

Request#

Path parameters#

Response#

Response codes#

CodeDescription
200Success

Body#

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