Skip to main content

DELETE - Delete user photo

Delete user photo

Request

  • Method: DELETE
  • Endpoint: /users/{id}/photo
  • Base URL: https://api.targpatrol.com/api/v1
  • Operation ID: delete-user-photo

Authorization

This endpoint requires an external API key.

x-api-key: {your_external_api_key}

Responses

204 NO CONTENT

401 Unauthorized

404 Not Found

Content-Type: application/json Schema: ErrorResponse

Schema
{
"$ref": "#/components/schemas/ErrorResponse"
}

Example: example-1

{
"message": "resource wasn't found",
"code": "not.found",
"timestamp": "2023-03-07T05:57:59.315Z"
}

500 Internal Server Error

Content-Type: application/json Schema: ErrorResponse

Schema
{
"$ref": "#/components/schemas/ErrorResponse"
}

Example: example-1

{
"message": "internal server error",
"code": "internal.server.error",
"timestamp": "2023-03-07T05:57:59.315Z"
}