Allows attachments to be added to questionnaire controls.
URL
{RMUrl}/api/risk/questionnaires/<QuestionnaireId>/<ControlID>/attachments
REQUEST METHOD
POST
URL PARAMETERS
QuestionnaireId: This parameter is provided in the URL and does not need to be sent through POST.
ControlID: This parameter is provided in the URL and does not need to be sent through POST.
FORM CONTENT
FileName (Required): Name used to register the file.
Data (Required): Content of the attached file. The maximum file size is 20 MB. The file bytes must be converted to a base64 string before sending.
Description (optional): Optional comment for the attachment.
REQUEST EXAMPLE
{RMUrl}/api/risk/questionnaires/180/MOD_EN.00002161/attachments
FORM CONTENT EXAMPLE
{
"FileName":
"PaymentProof.pdf",
"Data": "TWFuIGlzIGR...WQsIG5vdCBvbm",
"Description":
"Payment Proof from John Smith."
}
SUCCESS RESPONSE
The ID of the attachment added. Returns an int.
SUCCESS RESPONSE EXAMPLE
57