SweetConnect LogoSweetConnect
ApiUser pictures

Delete user profile picture

Removes the profile picture of the authenticated user. If no picture exists, the operation completes silently with no effect.

Access restricted to roles:

  • admin
  • manufacturer-admin
  • manufacturer-user
  • producer-admin
  • producer-user
DELETE
/v1/pictures/profile/user/{userId}
AuthorizationBearer <token>

In: header

Path Parameters

userId*string

The unique identifier of the user you want to modify

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

curl -X DELETE "https://test.sweetconnect.io/api/storage/v1/pictures/profile/user/123e4567-e89b-12d3-a456-426614174000"
Empty
{
  "errors": [
    {
      "errorCode": "BadRequest",
      "message": "The request payload is invalid.",
      "extension": {}
    }
  ]
}
{
  "errors": [
    {
      "errorCode": "Unauthorized",
      "message": "Authentication is required to access this resource.",
      "extension": {}
    }
  ]
}
{
  "errors": [
    {
      "errorCode": "NoPermission",
      "message": "You do not have permission to access this resource.",
      "extension": {}
    }
  ]
}
{
  "errors": [
    {
      "errorCode": "NotFound",
      "message": "The requested resource was not found.",
      "extension": {}
    }
  ]
}
{
  "errors": [
    {
      "errorCode": "HttpError",
      "message": "An unexpected HTTP error occurred.",
      "extension": {}
    }
  ]
}
{
  "errors": [
    {
      "errorCode": "InternalServerError",
      "message": "An unexpected internal server error occurred.",
      "extension": {}
    }
  ]
}