How to update Item Meta data?

  • 1
  • Question
  • Updated 10 months ago
  • (Edited)
I'm migrating files from our old cloud file vendor to ShareFile. I need to maintain the creation dates in ShareFile.

Is there a call in the .Net SDK to update an item's creation date meta data?

The only fields I can update through the Item.Update method are:
  • Name
  • FileName
  • ExpirationDate
  • Parent
  • Zone
Photo of Scott Ramsey

Scott Ramsey

  • 2 Posts
  • 1 Reply Like

Posted 10 months ago

  • 1
Photo of Suprit

Suprit, Employee

  • 11 Posts
  • 2 Reply Likes
Hello Scott,

Our application does not allow modification of the Item's creation date meta data.

You can however add/update the ClientCreatedDate value for the items.

PATCH https://account.sf-api.com/sf/v3/Items(id)?overwrite=false 
            { 
              "Name":"Name", 
              "ClientCreatedDate": "DateTime", "FileName":"FileName", 
              "Description":"Description", 
              "ExpirationDate": "date", 
              "Parent": { "Id": "parentid" }, 
              "Zone": { "Id": "zoneid" } 
            } 
Please let us know if you have any other questions.

Thank you!

Regards,
Suprit
(Edited)
Photo of Scott Ramsey

Scott Ramsey

  • 2 Posts
  • 1 Reply Like
Beautiful! This is exactly what I was looking for!