Skip to content

Latest commit

History

History
34 lines (25 loc) 路 1.87 KB

CollectionCapabilities.md

File metadata and controls

34 lines (25 loc) 路 1.87 KB

CollectionCapabilities

Capabilities the current user has on this collection. Each capability corresponds to a fine-grained action that a user may take.

Properties

Name Type Description Notes
can_edit bool Whether the current user can modify the metadata for the collection
can_share bool Whether the current user can modify the sharing settings for the collection
can_delete bool Whether the current user can delete the collection
can_add_scores bool Whether the current user can add scores to the collection If this collection has the `type` `trash`, this property will be set to `false`. Use `DELETE /v2/scores/{score}` to trash a score.
can_delete_scores bool Whether the current user can delete scores from the collection If this collection has the `type` `trash`, this property will be set to `false`. Use `POST /v2/scores/{score}/untrash` to restore a score.

Example

from flat_api.models.collection_capabilities import CollectionCapabilities

# TODO update the JSON string below
json = "{}"
# create an instance of CollectionCapabilities from a JSON string
collection_capabilities_instance = CollectionCapabilities.from_json(json)
# print the JSON string representation of the object
print CollectionCapabilities.to_json()

# convert the object into a dict
collection_capabilities_dict = collection_capabilities_instance.to_dict()
# create an instance of CollectionCapabilities from a dict
collection_capabilities_form_dict = collection_capabilities.from_dict(collection_capabilities_dict)

[Back to Model list] [Back to API list] [Back to README]