Allows a file or image to be attached to a perimeter attribute in the organizational structure.
URL
{RMUrl}/api/organization/perimeters/<PerimeterCode>/attributes/<AttributeVariableName>/files
REQUEST METHOD
POST
URL PARAMETERS
PerimeterCode: This parameter is provided in the URL and does not need to be sent through POST.
AttributeVarName: This parameter is provided in the URL and does not need to be sent through POST.
FORM CONTENT
FileName (Required): Name used to identify the attachment.
Data (Required): File to be attached to the perimeter attribute. The 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
FORM CONTENT EXAMPLE
{
"FileName": "Receipt.pdf",
"Data":
"TWFuIGlzIGR...WQsIG5vdCBvbm",
"Description": "Proof of payment
sent."
}
SUCCESS RESPONSE
The ID of the file attached. Returns a Guid.
SUCCESS RESPONSE EXAMPLE
"443de4ae-2360-4b66-bf69-8c9e4ca09001"