Allows a file in an Attachment attribute for a custom object to be edited.
URL
{RMUrl}/api/objects/<ObjectVariableName>/<InstanceID>/ <AttributeVariableName>/files/<AttachmentGUID>
REQUEST METHOD
PUT
URL PARAMETERS
ObjectVariableName: This parameter is provided in the URL and does not need to be sent through PUT.
InstanceID: 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 object 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/objects/book/66f295ae-f946-4f74-9ef4-21a0ca93febb /attachment/files/443de4ae-2360-4b66-bf69-8c9e4ca09001
FORM CONTENT EXAMPLE
{
"FileName":"Receipt.pdf",
"Data": "TWFuIGlzIGR...WQsIG5vdCBvbm",
"Description":"Proof of payment sent."
}
SUCCESS RESPONSE
HTTP status code 204: NoContent