Downloading or Deleting Attachments from Buyers with the Event Management API
Use this procedure to download or delete attachments from buyers with the Event Management API. Buyer users can upload attachments as reference documents for terms in line items and as documents for requirements.
To download an attachment, use the following endpoiont:
GET /events/{eventId}/items/{itemId}/attachments/{attachmentId}/content
Specify:
the itemId as a path parameter
the attachmentId as a path parameter
the fieldId as a query parameter
isReference=true as a query parameter if the attachment is a reference document for a term
The following example retrieves an attachment added as a reference document for a term:
GET
{{runtime_URL}}/events/Doc1111111/items/8888888/attachments/AAAUAFvvvvvvv/content?
user=myuser&passwordAdapter=PasswordAdapter1&realm=mysite&fieldId=BLUEPRINTS&isReference=true
The following example retrieves an attachment added as value for a requirement:
GET
{{runtime_URL}}/events/Doc1111111/items/9999999/attachments/AAAUAFvVmCREW/content?
user=myuser&passwordAdapter=PasswordAdapter1&realm=mysite&fieldId=RQAATTACH
To delete an attachment, use one of the following endpoints:
If the attachment is a reference document for a term:
The attachmentId in the body as an element in an array.
For example:
GET
{{runtime_URL}}/events/Doc1111111/items/8888888/attachments?
user=myuser&passwordAdapter=PasswordAdapter1&realm=mysite
&fieldId=BLUEPRINTS&isReference=true
GET
{{runtime_URL}}/events/Doc1111111/items/9999999/attachments/AAAUAFvVmCREW?
user=myuser&passwordAdapter=PasswordAdapter1&realm=mysite
&fieldId=RQAATTACH