Update Resources Servers

PUT /admin/cognito/resource-servers

Body Required

  • Identifier string Required
  • Name string Required
  • Scopes array[object] Required
    Hide Scopes attributes Show Scopes attributes array[object]
    • ScopeName string Required
    • ScopeDescription string Required

Responses

  • 200
    Hide response attribute Show response attribute object
    • ResourceServers array[object] Required
      Hide ResourceServers attributes Show ResourceServers attributes array[object]
      • UserPoolId string Required
      • Identifier string Required
      • Name string Required
      • Scopes array[object] Required
        Hide Scopes attributes Show Scopes attributes array[object]
        • ScopeName string Required
        • ScopeDescription string Required
  • 400
    Hide response attributes Show response attributes object
    • message object Required
    • data object Required
  • 401
    Hide response attributes Show response attributes object
    • message object Required
    • data object Required
  • 422
    Hide response attributes Show response attributes object
    • message object Required
    • data object Required
PUT /admin/cognito/resource-servers
curl \
 -X PUT https://open-api.hml.soupi.com.br/admin/cognito/resource-servers \
 -H "Authorization: $API_KEY" \
 -H "Content-Type: application/json" \
 -d '{"Identifier":"string","Name":"string","Scopes":[{"ScopeName":"string","ScopeDescription":"string"}]}'
Request example
{
  "Identifier": "string",
  "Name": "string",
  "Scopes": [
    {
      "ScopeName": "string",
      "ScopeDescription": "string"
    }
  ]
}
Request examples
{
  "Identifier": "string",
  "Name": "string",
  "Scopes": [
    {
      "ScopeName": "string",
      "ScopeDescription": "string"
    }
  ]
}
Response examples (200)
{
  "ResourceServers": [
    {
      "UserPoolId": "string",
      "Identifier": "string",
      "Name": "string",
      "Scopes": [
        {
          "ScopeName": "string",
          "ScopeDescription": "string"
        }
      ]
    }
  ]
}
Response examples (200)
{
  "ResourceServers": [
    {
      "UserPoolId": "string",
      "Identifier": "string",
      "Name": "string",
      "Scopes": [
        {
          "ScopeName": "string",
          "ScopeDescription": "string"
        }
      ]
    }
  ]
}
Response examples (400)
{
  "message": {},
  "data": {}
}
Response examples (400)
{
  "message": {},
  "data": {}
}
Response examples (401)
{
  "message": {},
  "data": {}
}
Response examples (401)
{
  "message": {},
  "data": {}
}
Response examples (422)
{
  "message": {},
  "data": {}
}
Response examples (422)
{
  "message": {},
  "data": {}
}