Body Required

Responses

POST /admin/cognito/partner
curl \
 -X POST https://open-api.hml.soupi.com.br/admin/cognito/partner \
 -H "Authorization: $API_KEY" \
 -H "Content-Type: application/json" \
 -d '{"ClientName":"string","AllowedOAuthScopes":["string"]}'
Request example
{
  "ClientName": "string",
  "AllowedOAuthScopes": [
    "string"
  ]
}
Request examples
{
  "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": {}
}