Get Attachments
2 min
you can get attachments from business objects base url https //{tenant url}/api/rest/attachment?id={business object unique key} get attachments example here is an example to get attachments from a particular business object url https //{tenant url}/api/rest/attachment?id=05b5cd2dfae54d86a04c74dbf616c1de \<font color="#ffffff">method\</font> get header name authorization jwt token/session key/rest api key status code 200 the attachment is displayed in the message body unsuccessful responses invalid recid scenario trying to get attachments when the business object's recid is invalid https //{tenant url}/api/rest/attachment?id=abc123 header name authorization sessionkey code ism 4000 description invalid request message \[ "attachment for the object "abc123" not found provide a valid recid and try again " ] \<font color="#ffffff">http status code\</font> 400 blank recid scenario trying to get attachments without providing the business object's recid https //{tenant url}/api/rest/attachment?id= header name authorization sessionkey code ism 4000 description invalid request message \[ "recid cannot be blank provide a valid recid and try again " ] \<font color="#ffffff">http status code\</font> 400
