ApiAsset
Redirect to spare part URL
Generates the spare part URL and returns a 301 redirect to it. The URL generator currently supports Parts Publisher catalogs only.
Access restricted to roles:
- admin
- manufacturer-admin
- manufacturer-user
- producer-admin
- producer-user
Path Parameters
assetId*string
Unique identifier of the asset to resolve in Parts Publisher.
Format
uuidResponse Body
application/json
application/json
application/json
application/json
application/json
application/json
curl -X GET "https://test.sweetconnect.io/api/asset/v1/assets/spare-part/497f6eca-6276-4993-bfeb-53cbbbba6f08/open"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": "NoCatalogIdFound",
"message": "The manufacturer \"4da125e7-80d4-4a18-ae3f-4235cf646398\" does not have a catalog id.",
"extension": {
"manufacturerId": "062fb356-9bf3-4f1e-a2e9-654efc54d3c3"
}
}
]
}{
"errors": [
{
"errorCode": "InternalServerError",
"message": "An unexpected internal server error occurred.",
"extension": {}
}
]
}