Method | Description | |
---|---|---|
BoxMetadataManager ( IBoxConfig config, IBoxService service, IBoxConverter converter, IAuthRepository auth, string asUser = null, bool suppressNotifications = null ) : Box.V2.Auth | ||
CreateFileMetadataAsync ( string fileId, object>.Dictionary |
Used to create the metadata template instance for a corresponding Box file. When creating metadata, only values that adhere to the metadata template schema will be accepted.
|
|
CreateFolderMetadataAsync ( string folderId, object>.Dictionary |
Used to create the metadata template instance for a corresponding Box folder. When creating metadata, only values that adhere to the metadata template schema will be accepted.
|
|
CreateMetadataTemplate ( |
Used to create a new metadata template with the specified schema.
|
|
DeleteFileMetadataAsync ( string fileId, string scope, string template ) : Task |
Used to delete the template instance. To delete custom key:value pairs within a template instance, you should refer to the updating metadata section.
|
|
DeleteFolderMetadataAsync ( string folderId, string scope, string template ) : Task |
Used to delete the template instance. To delete custom key:value pairs within a template instance, you should refer to the updating metadata section.
|
|
GetAllFileMetadataTemplatesAsync ( string fileId ) : object>>>.Task |
Used to retrieve all metadata associated with a given file
|
|
GetAllFolderMetadataTemplatesAsync ( string folderId ) : object>>>.Task |
Used to retrieve all metadata associated with a given folder
|
|
GetEnterpriseMetadataAsync ( string scope = "enterprise" ) : Task |
Used to retrieve all metadata templates within a user's enterprise. Currently only the enterprise scope is supported.
|
|
GetFileMetadataAsync ( string fileId, string scope, string template ) : object>>.Task |
Used to retrieve the metadata template instance for a corresponding Box file.
|
|
GetFolderMetadataAsync ( string folderId, string scope, string template ) : object>>.Task |
Used to retrieve the metadata template instance for a corresponding Box folder.
|
|
GetMetadataTemplate ( string scope, string template ) : Task |
Used to retrieve the schema for a given metadata template.
|
|
UpdateFileMetadataAsync ( string fileId, List |
Used to update the template instance. The request body must follow the JSON-Patch specification, which is represented as a JSON array of operation objects (see examples for more details). Updates can be either add, replace, remove , test, move, or copy. The template instance can only be updated if the template instance already exists. When editing metadata, only values that adhere to the metadata template schema will be accepted. The update is applied atomically. If any errors occur during the application of the update operations, the metadata instance remains unchanged.
|
|
UpdateFolderMetadataAsync ( string folderId, List |
Used to update the template instance. Updates can be either add, replace, remove , or test. The template instance can only be updated if the template instance already exists. When editing metadata, only values that adhere to the metadata template schema will be accepted.
|
|
UpdateMetadataTemplate ( List |
Used to update the schema of an existing template.
|
Method | Description | |
---|---|---|
CreateMetadata ( |
||
DeleteMetadata ( |
||
GetMetadata ( |
||
UpdateMetadata ( |
public BoxMetadataManager ( IBoxConfig config, IBoxService service, IBoxConverter converter, IAuthRepository auth, string asUser = null, bool suppressNotifications = null ) : Box.V2.Auth | ||
config | IBoxConfig | |
service | IBoxService | |
converter | IBoxConverter | |
auth | IAuthRepository | |
asUser | string | |
suppressNotifications | bool | |
return | Box.V2.Auth |
public CreateFileMetadataAsync ( string fileId, object>.Dictionary |
||
fileId | string | Id of file |
metadata | object>.Dictionary | Metadata to create |
scope | string | Scope name. Currently, the only scopes support are enterprise and global |
template | string | Metadata template name |
return | object>>.Task |
public CreateFolderMetadataAsync ( string folderId, object>.Dictionary |
||
folderId | string | Id of folder |
metadata | object>.Dictionary | Metadata to create |
scope | string | Scope name. Currently, only the enterprise scope is supported |
template | string | Metadata template name |
return | object>>.Task |
public CreateMetadataTemplate ( |
||
template | BoxMetadataTemplate object | |
return | Task |
public DeleteFileMetadataAsync ( string fileId, string scope, string template ) : Task |
||
fileId | string | Id of file |
scope | string | Scope name. Currently, the only scopes support are enterprise and global |
template | string | Metadata template name |
return | Task |
public DeleteFolderMetadataAsync ( string folderId, string scope, string template ) : Task |
||
folderId | string | Id of folder |
scope | string | Scope name. Currently, only the enterprise scope is supported |
template | string | Metadata template name |
return | Task |
public GetAllFileMetadataTemplatesAsync ( string fileId ) : object>>>.Task |
||
fileId | string | Id of file |
return | object>>>.Task |
public GetAllFolderMetadataTemplatesAsync ( string folderId ) : object>>>.Task |
||
folderId | string | Id of folder |
return | object>>>.Task |
public GetEnterpriseMetadataAsync ( string scope = "enterprise" ) : Task |
||
scope | string | Scope name. Currently, the only scopes support are enterprise and global |
return | Task |
public GetFileMetadataAsync ( string fileId, string scope, string template ) : object>>.Task |
||
fileId | string | Id of file |
scope | string | Scope name. Currently, the only scopes supported are enterprise and global |
template | string | Metadata template name |
return | object>>.Task |
public GetFolderMetadataAsync ( string folderId, string scope, string template ) : object>>.Task |
||
folderId | string | Id of folder |
scope | string | Scope name. Currently, only the enterprise scope is supported |
template | string | Metadata template name |
return | object>>.Task |
public GetMetadataTemplate ( string scope, string template ) : Task |
||
scope | string | Scope name. Currently, the only scopes supported are enterprise and global |
template | string | Metadata template name |
return | Task |
public UpdateFileMetadataAsync ( string fileId, List |
||
fileId | string | Id of file |
updates | List |
Metadata updates to apply |
scope | string | Scope name. Currently, the only scopes support are enterprise and global |
template | string | Metadata template name |
return | object>>.Task |
public UpdateFolderMetadataAsync ( string folderId, List |
||
folderId | string | Id of folder |
updates | List |
Metadata updates to apply |
scope | string | Scope name. Currently, only the enterprise scope is supported |
template | string | Metadata template name |
return | object>>.Task |
public UpdateMetadataTemplate ( List |
||
metadataTemplateUpdate | List |
BoxMetadataTemplateUpdate object |
scope | string | Scope name. Currently, the only scopes supported are enterprise and global |
template | string | Metadata template name |
return | Task |