Create metadata template
POST https://{{api.box.com}}/2.0/metadata_templates/schema
Creates a new metadata template that can be applied to
https://developer.box.com/reference/post-metadata-templates-schema
Request Body
{"scope"=>"enterprise", "templateKey"=>"productInfo", "displayName"=>"Product Info", "hidden"=>true, "fields"=>[{"type"=>"string", "key"=>"category", "displayName"=>"Category", "description"=>"The category", "hidden"=>true, "options"=>[{"key"=>"Category 1"}]}], "copyInstanceOnItemCopy"=>true}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Content-Type | string |
RESPONSES
status: Created
{"id":"58063d82-4128-7b43-bba9-92f706befcdf","type":"metadata_template","scope":"enterprise_123456","templateKey":"productInfo","displayName":"Product Info","hidden":true,"fields":[{"type":"string","key":"category","displayName":"Category","description":"The category","hidden":true,"options":[{"key":"Category 1","id":"45dc2849-a4a7-40a9-a751-4a699a589190"}],"id":"822227e0-47a5-921b-88a8-494760b2e6d2"}],"copyInstanceOnItemCopy":true}