Update Partner in Cognito App Client

PUT /admin/cognito/partner

Body Required

  • ClientId string Required
  • ClientName string Required
  • AllowedOAuthScopes array[string] Required

Responses

  • 200
    Hide response attribute Show response attribute object
    • UserPoolClient object Required
      Hide UserPoolClient attributes Show UserPoolClient attributes object
      • UserPoolId string Required
      • ClientName string Required
      • ClientId string Required
      • ClientSecret string Required
      • LastModifiedDate string(date-time) Required
      • CreationDate string(date-time) Required
      • RefreshTokenValidity number Required
      • TokenValidityUnits object Required
      • ExplicitAuthFlows array[string] Required
      • AllowedOAuthFlows array[string] Required
      • AllowedOAuthScopes array[string] Required
      • AllowedOAuthFlowsUserPoolClient boolean Required
      • PreventUserExistenceErrors string Required
      • EnableTokenRevocation boolean 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/partner
curl \
 -X PUT https://open-api.hml.soupi.com.br/admin/cognito/partner \
 -H "Authorization: $API_KEY" \
 -H "Content-Type: application/json" \
 -d '{"ClientId":"string","ClientName":"string","AllowedOAuthScopes":["string"]}'
Request example
{
  "ClientId": "string",
  "ClientName": "string",
  "AllowedOAuthScopes": [
    "string"
  ]
}
Request examples
{
  "ClientId": "string",
  "ClientName": "string",
  "AllowedOAuthScopes": [
    "string"
  ]
}
Response examples (200)
{
  "UserPoolClient": {
    "UserPoolId": "string",
    "ClientName": "string",
    "ClientId": "string",
    "ClientSecret": "string",
    "LastModifiedDate": "2023-05-04T09:42:00+00:00",
    "CreationDate": "2023-05-04T09:42:00+00:00",
    "RefreshTokenValidity": 42.0,
    "TokenValidityUnits": {},
    "ExplicitAuthFlows": [
      "string"
    ],
    "AllowedOAuthFlows": [
      "string"
    ],
    "AllowedOAuthScopes": [
      "string"
    ],
    "AllowedOAuthFlowsUserPoolClient": true,
    "PreventUserExistenceErrors": "string",
    "EnableTokenRevocation": true
  }
}
Response examples (200)
{
  "UserPoolClient": {
    "UserPoolId": "string",
    "ClientName": "string",
    "ClientId": "string",
    "ClientSecret": "string",
    "LastModifiedDate": "2025-05-04T09:42:00Z",
    "CreationDate": "2025-05-04T09:42:00Z",
    "RefreshTokenValidity": 42.0,
    "TokenValidityUnits": {},
    "ExplicitAuthFlows": [
      "string"
    ],
    "AllowedOAuthFlows": [
      "string"
    ],
    "AllowedOAuthScopes": [
      "string"
    ],
    "AllowedOAuthFlowsUserPoolClient": true,
    "PreventUserExistenceErrors": "string",
    "EnableTokenRevocation": true
  }
}
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": {}
}