POST /connections/{connectionId}/disableClient – Disables a client application for a specific connection.


Headers:

  • Authorization: Bearer <access_token> (required)
  • Content-Type: application/json or application/x-www-form-urlencoded (required)

Body:

Path Parameters:

  • connectionId: The connection ID for which client to disable (required)

Query Parameters:

  • None

  • 204 No Content – Indicates successful disablement of the client.

Status Code Meaning When it Happens
400 Bad Request Missing or invalid fields in request body
401 Unauthorized Missing or invalid authentication token
404 Not Found Specified client does not exist
500 Internal Server Error Unexpected error
{
"error": "Detailed error message here"
}

POST /connections/exampleConnectionId/disableClient
{
"clientId": "exampleClientId"
}
POST /connections/exampleConnectionId/disableClient
{
"provider": "cognito-client",
"clientId": "exampleClientId",
}
{}

  • Parameters

    • event: APIGatewayProxyEvent

      The API Gateway event containing the request.

    • context: Context
    • callback: Callback<APIGatewayProxyResult>

    Returns void | Promise<APIGatewayProxyResult>

    A Promise resolving to an API Gateway-compatible response.