Adding attachment to Resolution using API

Adding attachment to Resolution using API

PURPOSE:

To add an attachment to the resolution via API. 

STEPS:

1) Upload the attachment file and obtain the attachment ID:

URL: <domain_url>/api/v3/requests/upload
Method: POST
Payload: files ( input_data = <file_content> )
Response:




2) Add the attachment to the particular resolution:

Link/Attach the attachment id with the corresponding request
URL:  <domain_url>/api/v3/requests/<request_id>
Method: PUT
Payload: input_data =  {"request":{"resolution":{"resolution_attachments":[{"id":"<attachment_id>"}]}}}
Response: request.resolution.



For multiple attachments to be added, the response should be as below, 

Payload: input_data =  {"request":{"resolution":{"resolution_attachments":[{"id":"<attachment_id>"},{"id":"<attachment_id>"}]}}}

                  New to ADSelfService Plus?