ApiAsset
Publish asset tree
Publishes a draft asset and every descendant so the tree becomes part of the active structure.
Access restricted to roles:
- admin
- manufacturer-admin
- manufacturer-user
Path Parameters
assetId*string
The unique identifier of the asset
Format
uuidResponse Body
application/json
application/json
application/json
application/json
curl -X POST "https://test.sweetconnect.io/api/asset/v1/assets/497f6eca-6276-4993-bfeb-53cbbbba6f08/publish"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": "InternalServerError",
"message": "An unexpected internal server error occurred.",
"extension": {}
}
]
}