templates/add_for_user

POST https://api.dropboxapi.com/2/file_properties/templates/add_for_user

templates/addforuser

scope: files.metadata.write

Add a template associated with a user. See properties/add to add properties to a file. This endpoint can't be called on a team member or admin's behalf.

Request Body

{"name"=>"Security", "description"=>"These properties describe how confidential this file or folder is.", "fields"=>[{"name"=>"Security Policy", "description"=>"This is the security policy of the file or folder described.\nPolicies can be Confidential, Public or Internal.", "type"=>"string"}]}

HEADERS

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

RESPONSES

status: OK

{"template_id":"ptid:1a5n2i6d3OYEAAAAAAAAAYa"}