SweetConnect LogoSweetConnect
ApiMaintenance documents

Attach a file to a maintenance record

Access restricted to roles:

  • admin
  • manufacturer-admin
  • manufacturer-user
  • producer-admin
  • producer-user
POST
/v1/documents/maintenance/{maintenanceId}/{fileId}/{maintenanceOrganizationId}
AuthorizationBearer <token>

In: header

Path Parameters

maintenanceId*string

The ID of the maintenance record to which the file will be attached

fileId*string

The ID of the file to be attached to the maintenance record

maintenanceOrganizationId*string

The ID of the maintenance organization where the file should be referenced

Response Body

application/json

application/json

application/json

application/json

application/json

curl -X POST "https://test.sweetconnect.io/api/storage/v1/documents/maintenance/9c0e194b-b03c-46ba-946d-bc3447c42e5a/ab72f7c2-9c92-430f-a95a-936eb64cf9fc/a699951c-eebc-44e8-81bd-fca3a8f72316"
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": {}
    }
  ]
}