Skip to main content
New Participant
Oct 2, 2025 1:58 PM UTC

API ver: 15.6.3 End Point : /services/Ams/Attachments/AddRequestAttachment documentation sample page calls (PLL/CaseRelDocs/Add) using different data obj.

Currently we need to Test from Postman.

We need to call the endpoint "AddrequestAttachment" .

 

It will be greatly appreciated it if we can see a sample call of the json object sent in the body of the Post.

 

We have tried:

http://<server or domain>/CityworksServerApi/services/Ams/Attachments/AddRequestAttachment?data={"Comments": "test","Filename": "test.jpg","RequestId":11111}&token=token

 

Body : raw

{

"file": [ <byte string> ]

}

 

where byte string is like 255,216,255,224,0,16,74,70,73,70,0,,,,,,

 

obtaining response

200 Ok:

{

  "Value": null,

  "Status": 1,

  "Message": "An error occurred while attempting to save the attachment."

}

 

    1 reply

    Known Participant
    Oct 2, 2025 4:09 PM UTC

    @luis somoza? did you see the following thread already? I wonder if that offers some clues for formatting:

     

    https://cityworks.my.site.com/s/question/0D58b00008viXCgCAM/adding-attachment-to-workorder-via-apiproper-formatting-of-request

    Translate