l4i
...
Box Connection
File Operations

Update File

1min
this method will update an existing file in box the method allows for either a file update, which versions the document, or an update to the box metadata, which does not version the document input parameters file id id of the document to update file content (optional when provided versions the document) metadata values these are the values for either enterprise metadata (defined in a metadata template) or global metadata (string value pairs directly attributed to a document) click on the pencil icon in the top right to edit the definition of metadata drag an 'available parameter' from the available parameters to the middle section called 'defined parameters' there are three types of parameters description this allows the setting of the description on the document no additional configuration/naming is required the name should be left as 'description' and the datatype left as 'string' enterprise metadata value this allows setting of enterprise metadata that is defined on a pre defined metadata template name this is required to be the name of the metadata value defined in box it will include the metadata template name that it is assoicated with (e g trexmetadata trextextfield) data type the type value assigned in the box metadata definition global metadata value this allows the setting of key/value pair strings to be added to a document name this should match the metadata value of a custom attribute already defined on the document it will always be prefixed with the value 'document' followed by the name of the box value (e g document trexmycustomstring)