properties/update

POST https://api.dropboxapi.com/2/file_properties/properties/update

properties/update

scope: files.metadata.write

Add, update or remove properties associated with the supplied file and templates. This endpoint should be used instead of properties/overwrite when property groups are being updated via a delta instead of via a snapshot . In other words, this endpoint will not delete any omitted fields from a property group, whereas properties/overwrite will delete any fields that are omitted from a property group.

Request Body

{"path"=>"/my_awesome/word.docx", "update_property_groups"=>[{"template_id"=>"ptid:1a5n2i6d3OYEAAAAAAAAAYa", "add_or_update_fields"=>[{"name"=>"Security Policy", "value"=>"Confidential"}], "remove_fields"=>[]}]}

HEADERS

KeyDatatypeRequiredDescription
Content-Typestring
Dropbox-API-Path-Rootstring
Dropbox-API-Select-Userstring