ApiAsset documents
Delete a link between a file and an asset
Deletes the specified link between the given file and asset. If this was the only remaining link to the document, the document itself will be deleted automatically.
Access restricted to roles:
- admin
- manufacturer-admin
- manufacturer-user
- producer-admin
- producer-user
Authorization
bearer AuthorizationBearer <token>
In: header
Path Parameters
fileId*string
The unique identifier of the file
assetId*string
The unique identifier of the asset
Response Body
application/json
application/json
application/json
application/json
application/json
curl -X DELETE "https://test.sweetconnect.io/api/storage/v1/documents/assets/string/string"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": {}
}
]
}