Skip to content

Commit

Permalink
Merge branch 'sign-group-id' of https://github.com/box/box-windows-sd…
Browse files Browse the repository at this point in the history
…k-v2 into sign-group-id
  • Loading branch information
congminh1254 committed Jan 30, 2024
2 parents 5d3d679 + 34c3e21 commit 2c9d264
Showing 1 changed file with 0 additions and 33 deletions.
33 changes: 0 additions & 33 deletions docs/classifications.md
Original file line number Diff line number Diff line change
Expand Up @@ -123,39 +123,6 @@ var template = await client.MetadataManager
.UpdateMetadataTemplate(new List<BoxMetadataTemplateUpdate>() { update }, "enterprise", "securityClassification-6VMVochwUWo");
```

Delete a classification
-----------------------

To delete a classification, call the
`MetadataManager.UpdateMetadataTemplate(IEnumerable<BoxMetadataTemplateUpdate> metadataTemplateUpdate, string scope, string template)` method
with proper parameters.

<!-- sample put_metadata_templates_enterprise_securityClassification-6VMVochwUWo_schema delete -->
```c#
var update = new BoxMetadataTemplateUpdate
{
Op = MetadataTemplateUpdateOp.removeEnumOption,
FieldKey = "Box_Security_Classification_Key",
EnumOptionKey = "Sensitive",
};

var template = await client.MetadataManager
.UpdateMetadataTemplate(new List<BoxMetadataTemplateUpdate>() { update }, "enterprise", "securityClassification-6VMVochwUWo");

```

Delete all classifications
--------------------------

To remove all classifications in an enterprise, call the
`MetadataManager.DeleteMetadataTemplate(string scope, string template)`
method with the name of the classification metadata template.

<!-- sample delete_metadata_templates_enterprise_securityClassification-6VMVochwUWo_schema -->
```c#
var isDeleted = await client.MetadataManager.DeleteMetadataTemplate("enterprise", "securityClassification-6VMVochwUWo");
```

Add classification to file
--------------------------

Expand Down

0 comments on commit 2c9d264

Please sign in to comment.