Third Light Developer Exchange

Code and templating community forum for developers and software integrators

You are not logged in.

Announcement

If you wish to join the Developer Exchange, please contact your account manager - this is to avoid unnecessary spam in the forums. Many thanks for your understanding.

#1 2021-05-04 20:49:33

jtsai@osa.org
Member
Registered: 2021-01-08
Posts: 2

Files.Move

We are in the process of migrating from IMS to Chorus. Unfortunately not all the API we currently use is available in Chorus REST API so we are forced to make JSON API calls. When making Files.Move call against our Chorus server we are receiving the following error.
1eNxiaD_d.webp?maxwidth=760&fidelity=grand
Is Files.Move not a valid action?

Thanks,

John

Offline

#2 2021-05-24 13:55:40

dominic
Third Light Staff
Registered: 2013-06-06
Posts: 119

Re: Files.Move

Hi John,

INVALID_TYPE means that at least one of the GUIDs you supplied was for an object that can't be used in this call (but that it exists and is accessible to your user account).

Specifically, the most likely issue would be providing a containerId that relates to a Collection rather than a Folder - since Collections hold links to files, not the files themselves, you can't 'Move' a file into one. (You could call Files.AddToCollection, if that was what you were trying to achieve, but probably you should create a Folder and then use the ID of that instead).

Dominic

Offline

Board footer