SweetConnect LogoSweetConnect
ApiAsset pictures

Delete asset picture by asset ID

Removes the picture associated with the specified asset. This operation is irreversible. If no picture exists for the asset, the operation is silently ignored.

Access restricted to roles:

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

In: header

Path Parameters

assetId*string

The ID of the asset whose picture should be deleted

Response Body

application/json

application/json

application/json

application/json

application/json

curl -X DELETE "https://test.sweetconnect.io/api/storage/v1/pictures/asset/1214d120-9b80-48cd-bf78-4e353773af5f"
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": "InternalServerError",
      "message": "An unexpected internal server error occurred.",
      "extension": {}
    }
  ]
}