Create, Update, and Delete IdentityProvider configuration data.
IdentityResource Object Reference
Request
Method: POST
URI: /api/configuration/editor
Headers
Name | Type | Description |
---|---|---|
X-SurePassID-Api-Key | string | An API Key with 'Editor' role. |
Post Data
There are three objects that can be included as needed Create
, Update
and Delete
. The Create
and Update
obects can contain the Clients
, IdentityResources
, and ApiResources
lists as needed. The Delete
object can contain ClientIdList
, IdentityResourceNameList
, and ApiResourceNameList
string arrays as needed.
The Update object uses the Client.ClientId
, IdentityResource.Name
, and ApiResource.Name
proerties as keys to determine which object to performe the update operation on. Those proerty values cannot be updated.
Name | Type | Description |
---|---|---|
Create | object | Can contain the |
Update | object | Can contain the |
Delete | object | Can contain |
ClientIdList | array of strings | As an optional Child of the |
IdentityResourceNameList | array of strings | As an optional Child of the |
ApiResourceNameList | array of strings | As an optional Child of the |
Post Data Example
{ "Create": { "Clients": [ <ARRAY OF CLIENT OBJECTS TO CREATE> ], "IdentityResources": [ <ARRAY OF IDENTITY RESOURCE OBJECTS TO CREATE> ], "ApiResources": [ <ARRAY OF API RESOURCE OBJECTS TO CREATE> ] }, "Update": { "Clients": [ <ARRAY OF CLIENT OBJECTS TO UPDATE> ], "IdentityResources": [ <ARRAY OF IDENTITY RESOURCE OBJECTS TO UPDATE> ], "ApiResources": [ <ARRAY OF API RESOURCE OBJECTS TO UPDATE> ] }, "Delete": { "ClientIdList": [ "client-id" ], "IdentityResourceNameList": [ "identity-resource-name" ], "ApiResourceNameList": [ "api-resource-name" ] } }
Response
Status: 200 OK