MCPcopy Create free account
hub / github.com/dropbox/dropbox-sdk-python / file_properties_properties_add

Method file_properties_properties_add

dropbox/base.py:218–248  ·  view source on GitHub ↗

Add property groups to a Dropbox file. See :meth:`file_properties_templates_add_for_user` or :meth:`file_properties_templates_add_for_team` to create new templates. Route attributes: scope: files.metadata.write :param str path: A unique identifi

(self,
                                       path,
                                       property_groups)

Source from the content-addressed store, hash-verified

216 # Routes in file_properties namespace
217
218 def file_properties_properties_add(self,
219 path,
220 property_groups):
221 """
222 Add property groups to a Dropbox file. See
223 :meth:`file_properties_templates_add_for_user` or
224 :meth:`file_properties_templates_add_for_team` to create new templates.
225
226 Route attributes:
227 scope: files.metadata.write
228
229 :param str path: A unique identifier for the file or folder.
230 :param List[:class:`dropbox.file_properties.PropertyGroup`]
231 property_groups: The property groups which are to be added to a
232 Dropbox file. No two groups in the input should refer to the same
233 template.
234 :rtype: None
235 :raises: :class:`.exceptions.ApiError`
236
237 If this raises, ApiError will contain:
238 :class:`dropbox.file_properties.AddPropertiesError`
239 """
240 arg = file_properties.AddPropertiesArg(path,
241 property_groups)
242 r = self.request(
243 file_properties.properties_add,
244 'file_properties',
245 arg,
246 None,
247 )
248 return None
249
250 def file_properties_properties_overwrite(self,
251 path,

Callers

nothing calls this directly

Calls 1

requestMethod · 0.95

Tested by

no test coverage detected