Update an existing OAuth Resource Server either based on the name of the resource server or the ID of the resource server.
put
/oam/services/rest/ssa/api/v1/oauthpolicyadmin/application
Either "name" or "id" query parameters need to be passed to modify the existing resource server
Request
Supported Media Types
- application/json
- application/xml
Query Parameters
-
id: string
ID of the Resource Server
-
name: string
Name of the Resource Server
Resource Server that needs to be modified
Root Schema : ResourceServer
Type:
Show Source
object
-
description:
string
-
idDomain:
string
Name of the Identity Domain under which the resource server is created
-
name:
string
Name of the Resource Server
-
scopes:
array scopes
-
tokenAttributes:
array tokenAttributes
Nested Schema : tokenAttributes
Type:
Show Source
array
-
[0]:
object AttributeSettings
Custom attributes that can be added to the Access Token
Nested Schema : AttributeSettings
Type:
object
Custom attributes that can be added to the Access Token
Show Source
-
attrName:
string
Name of the custom attribute
-
attrType:
string
Allowed Values:
[ "STATIC", "DYNAMIC" ]
Type of the Attribute -
attrValue:
string
Value of the custom attribute. This could be a static value or a dynamic one that is evaluated and substituted.
Response
Supported Media Types
- application/json
200 Response
Sucessfully modified entity - OAuthResourceServer, detail
Root Schema : ResourceServer
Type:
Show Source
object
-
description:
string
-
idDomain:
string
Name of the Identity Domain under which the resource server is created
-
name:
string
Name of the Resource Server
-
scopes:
array scopes
-
tokenAttributes:
array tokenAttributes
Nested Schema : tokenAttributes
Type:
Show Source
array
-
[0]:
object AttributeSettings
Custom attributes that can be added to the Access Token
Nested Schema : AttributeSettings
Type:
object
Custom attributes that can be added to the Access Token
Show Source
-
attrName:
string
Name of the custom attribute
-
attrType:
string
Allowed Values:
[ "STATIC", "DYNAMIC" ]
Type of the Attribute -
attrValue:
string
Value of the custom attribute. This could be a static value or a dynamic one that is evaluated and substituted.
422 Response
Failed to update OAuth entity "ResourceServer" - name "NameofResourceServer"