templates/add_for_team

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

templates/addforteam

scope: files.team_metadata.write

Add a template associated with a team. See properties/add to add properties to a file or folder. Note: this endpoint will create team-owned templates.

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

RESPONSES

status: OK

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