[POST] Add image
Operation
Allows the user to add a picture related to a MaintenanceIssue.
POST
https://{urlName}/tesiproPMS/api/{version}/chain/{chainId}/property/{propertyId}/maintenanceIssue/{maintenanceIssueId}/uploadFile
Request
Property | Type | Required | Default value | Description |
---|---|---|---|---|
chainId | Integer | true | The id of the chain. This parameter will be in the URL. Path parameter. | |
propertyId | Integer | true | The id of the property. This parameter will be in the URL. Path parameter. | |
maintenanceIssueId | Integer | true | The id of the maintenanceIssue that will have the image. This parameter will be in the URL. Path parameter. | |
file | MultipartFile | true | The file to be uploaded. | |
title | String | false | A possible title of the image. |
Example request
POST http://81.184.0.161:9696/tesiproPMS/api/v1/chain/1/property/2/maintenanceIssue/1/uploadFile
Response
Property | Type | Required | Description |
---|---|---|---|
responseApiMessage | ResponseApiMessage | Success or error response. |
Example response
{ "httpStatus": "201", "userMessage": "Success", "technicalMessage": "Successfully uploaded file.jpg", "errorCode": "0" }