Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Operation

Allows the user to add a picture related to a MaintenanceIssue.

Style
table {
width: 100%;
}
body.page-gadget {
padding-top: 20px;
}
.separator{
margin: 5px 0;
}



Div
style background-color: cornFlowerBlue; color: white; display: inline-block; padding: 5px; border-radius: 3px;

POST



Div
stylebackground-color: #0a2b1d; padding: 10px 1em; display: inline-block; color: white; border-radius: 3px;

https://{urlName}/tesiproPMS/api/{version}/chain/{chainId}/property/{propertyId}/maintenanceIssue/{maintenanceIssueId}/uploadFile



Request

PropertyTypeRequiredDefault valueDescription
chainIdIntegertrue
The id of the chain. This parameter will be in the URL. Path parameter.
propertyIdIntegertrue
The id of the property. This parameter will be in the URL. Path parameter.
maintenanceIssueIdIntegertrue
The id of the maintenanceIssue that will have the image. This parameter will be in the URL. Path parameter.
fileMultipartFiletrue
The file to be uploaded.
titleStringfalse
A possible title of the image.


Example request

Code Block
languagepowershell
themeDJango
POST http://81.184.0.161:9696/tesiproPMS/api/v1/chain/1/property/2/maintenanceIssue/1/uploadFile



Response

PropertyTypeRequiredDescription
responseApiMessageResponseApiMessage
Success or error response.


Example response

Code Block
themeDJango
{
  "httpStatus": "201",
  "userMessage": "Success",
  "technicalMessage": "Successfully uploaded file.jpg",
  "errorCode": "0"
}