CORE_ATTACHMENT_MOVE CORE Endpoint
  /rpc/core/?method=CORE_ATTACHMENT_MOVE  
 

Move a file to or from a S3 bucket.

Important: as default it moves the file - ie removes it from the mydigitalstructure attachments store.  

Make sure you set copy=Y if you want to keep the file on mydigitalstructure.

 
  PARAMETERS TYPE NOTES
  Copy Y / N [default] If this is set to Y then a original file is kept in the mydigitalstructure attachments store.
  Direction Numeric Mandatory. 1 = to S3, 2 = From S3
  Id Numeric Mandatory. Id of attachment
  ToBucket Numeric Mandatory if Direction = 1 [to S3]. An Amazon S3 bucket as configured via SETUP_AWS_S3_BUCKET_MANAGE
  ToBucketFileName Text (1000) Defaults to [object title]/[object id]/[filename].  Cannot be specified if passing multiple ids.
  RETURN  
  Status MOVED