Allows a file in an Attachment attribute associated with an event in the Workflow module to be edited.
URL
{WSUrl}/api/events/<EventCode>/<AttributeVariableName>/files/<AttachmentID>
REQUEST METHOD
PUT
URL PARAMETERS
EventCode: This parameter is provided in the URL and does not need to be sent through PUT.
AttributeVariableName: This parameter is provided in the URL and does not need to be sent through PUT.
AttachmentID: This parameter is provided in the URL and does not need to be sent through PUT.
FORM CONTENT
Data (Required): File to be updated. The file bytes must be converted to a base64 string before sending.
FileName (Required): Name used to identify the attachment. This name can later be used to recover the file and should contain the file extension (for example, "file.pdf").
REQUEST EXAMPLE
{WSUrl}/api/events/ EVTD201411000022/attributevariablename/files/5fa484a9-168e-4c0e-8672-c8130c71d9c5
FORM CONTENT EXAMPLE
{
"FileName": "Proof of Payment.pdf",
"Data": "TWFuIGlzIGRWQsIG5vdCBvbm"
}
SUCCESS RESPONSE
HTTP status code 204: No Content