SweetConnect LogoSweetConnect
ApiAsset

Delete asset

Deletes an asset if it has no parent and no children.

Access restricted to roles:

  • admin
  • manufacturer-admin
  • manufacturer-user
  • producer-admin
DELETE
/v1/assets/{assetId}

Path Parameters

assetId*string

The unique identifier of the asset

Formatuuid

Response Body

application/json

application/json

application/json

application/json

application/json

curl -X DELETE "https://test.sweetconnect.io/api/asset/v1/assets/497f6eca-6276-4993-bfeb-53cbbbba6f08"
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": {}
    }
  ]
}