Add App Client

POST {{baseUrl}}

This request creates an App Client with the name appClientName under the specified User Pool with ID userPoolID within Cognito. If this request is run after creating a User Pool from the previous request, the userPoolID will automatically be generated and saved under the specified environment from the given poolName so no edits need to be made.

The successful response returns a 200 OK.

Request Body

{"ClientName"=>"{{appClientName}}", "GenerateSecret"=>false, "UserPoolId"=>"{{userPoolId}}"}

HEADERS

KeyDatatypeRequiredDescription
X-Amz-Targetstring
Content-Typestring
x-mock-response-namestring

RESPONSES

status: OK

"{\n    \"UserPoolClient\": {\n        \"AllowedOAuthFlowsUserPoolClient\": false,\n        \"ClientId\": \"{{appClientId}}\",\n        \"ClientName\": \"{{appClientName}}\",\n        \"CreationDate\": {{$timestamp}}.000,\n        \"EnableTokenIntrospectionRevocation\": true,\n        \"LastModifiedDate\": {{$timestamp}}.000,\n        \"RefreshTokenValidity\": 30,\n        \"TokenValidityUnits\": {},\n        \"UserPoolId\": \"{{userPoolId}}\"\n    }\n}"