Quantcast
Channel: Discussion Forum > Connect Data Services
Viewing all articles
Browse latest Browse all 2504

Move attachments to new organisation via RESTful API

$
0
0

Topic by Mike Hawkes

Content

How can I move attachments from one organisation to another via the RESTful API? We have created new organisations as part of a de-duplication process, and now want to migrate other objects including attachments to the master record. For most objects, we can simply PATCH the organisation field within the relevant object, but for attachments, I'm not sure what I should patch ... 

I can get a list of attachments, is it just a case of adding the list of returned ID's to the new object? Something like the below.

The only way I can see at the moment is to GET the data, then create a new attachment for each one ... but this both duplicates the data and ends up with it being downloaded and uploaded for no real reason ... any pointers welcome, thanks.

Version

1.3

Code Block


Viewing all articles
Browse latest Browse all 2504

Trending Articles