ApiAsset pictures
Preview asset picture
Streams the asset picture associated with the specified asset ID. This allows the client to preview the image directly in the browser or app.
Access restricted to roles:
- admin
- manufacturer-admin
- manufacturer-user
- producer-admin
- producer-user
- sales-agent
Authorization
bearer AuthorizationBearer <token>
In: header
Path Parameters
assetId*string
The ID of the asset whose picture should be previewed
Response Body
application/json
application/json
application/json
application/json
application/json
curl -X GET "https://dev.sweetconnect.io/api/storage/v1/pictures/asset/dcaa25c0-6141-4b47-961a-581e661526c2/preview"Empty
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": "HttpError",
"message": "An unexpected HTTP error occurred.",
"extension": {}
}
]
}{
"errors": [
{
"errorCode": "InternalServerError",
"message": "An unexpected error occurred. See logs for further details or create a support ticket.",
"extension": {}
}
]
}