ApiMaintenance documents
Get maintenance IDs linked to a file
Retrieves all maintenance IDs that are linked to a specific file.
Access restricted to roles:
- admin
- manufacturer-admin
- manufacturer-user
- producer-admin
- producer-user
Authorization
bearer AuthorizationBearer <token>
In: header
Path Parameters
fileId*string
The ID of the file to get linked maintenance IDs for
Response Body
application/json
application/json
application/json
application/json
application/json
application/json
curl -X GET "https://test.sweetconnect.io/api/storage/v1/documents/maintenance/ab72f7c2-9c92-430f-a95a-936eb64cf9fc/links"{
"data": [
"9c0e194b-b03c-46ba-946d-bc3447c42e5a",
"bde96ced-06e1-4ee2-a8c1-a77afa2332ea"
]
}{
"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": {}
}
]
}