Edit File in Attachment Perimeter Attribute

Allows a file in an Attachment perimeter attribute to be edited.

 

URL

{RMUrl}/api/Organization/Perimeters/<PerimeterCode>/attributes/<AttributeVariableName>/files/<AttachmentGUID>

 

REQUEST METHOD

PUT

 

URL PARAMETERS

PerimeterCode: This parameter is provided in the URL and does not need to be sent through PUT.

AttributeVarName: This parameter is provided in the URL and does not need to be sent through PUT.

AttachGuid: This parameter is provided in the URL and does not need to be sent through PUT.

 

FORM CONTENT

FileName (Required): Name used to identify the attachment.

Data (Required): The file attached to the perimeter specified. Maximum file size is 10 MB. The file bytes must be converted to a base64 string before sending.

Description (Optional): Optional comment for the attachment.

 

REQUEST EXAMPLE

{RMUrl}/api/organization/perimeters/78395d3d-d7e6-4938-9682-b5bd3c5be422/attributes/attachmentattribute/files/06a1f497-023f-4a1e-acaa-787aeed8a5c1

 

FORM CONTENT EXAMPLE

{

"FileName":"Receipt.pdf",

"Data": "TWFuIGlzIGR...WQsIG5vdCBvbm",

"Description":"Proof of payment sent."

}

 

SUCCESS RESPONSE

HTTP status code 204: NoContent