Adds an item to a collection and returns the item.
The collection's unique identifier.
an object with the body content
Optional
options: ApiCallOptionsClears the cache for collections api requests.
Clears the cache for collections api requests.
Creates and returns a new collection. Collections of type public
(shown as tags in the user interface) must have unique names. Other collection types can reuse names.
Creates and returns a new collection. Collections of type public
(shown as tags in the user interface) must have unique names. Other collection types can reuse names.
an object with the body content
Optional
options: ApiCallOptionsDeletes a collection and removes all items from the collection.
Deletes a collection and removes all items from the collection.
The collection's unique identifier.
Optional
options: ApiCallOptionsRemoves an item from a collection.
Removes an item from a collection.
The collection's unique identifier.
The item's unique identifier.
Optional
options: ApiCallOptionsFinds and returns a collection.
Finds and returns a collection.
The collection's unique identifier.
Optional
options: ApiCallOptionsFinds and returns an item in a specific collection. See GET /items/{id}
.
Finds and returns an item in a specific collection. See GET /items/{id}
.
The collection's unique identifier.
The item's unique identifier.
Optional
options: ApiCallOptionsRetrieves items from a collection that the user has access to.
Retrieves items from a collection that the user has access to.
The collection's unique identifier. (This query also supports 'favorites' as the collectionID).
an object with query parameters
Optional
limit?: numberThe maximum number of resources to return for a request. The limit must be an integer between 1 and 100 (inclusive).
Optional
name?: stringThe case-insensitive string used to search for a resource by name.
Optional
next?: stringThe cursor to the next page of resources. Provide either the next or prev cursor, but not both.
Optional
noActions?: booleanIf set to true, the user's available actions for each item will not be evaluated meaning the actions-array will be omitted from the response (reduces response time).
Optional
prev?: stringThe cursor to the previous page of resources. Provide either the next or prev cursor, but not both.
Optional
query?: stringThe case-insensitive string used to search for a resource by name or description.
Optional
resourceId?: stringThe case-sensitive string used to search for an item by resourceId. If resourceId is provided, then resourceType must be provided. Provide either the resourceId or resourceLink, but not both.
Optional
resourceLink?: stringThe case-sensitive string used to search for an item by resourceLink. If resourceLink is provided, then resourceType must be provided. Provide either the resourceId or resourceLink, but not both.
Optional
resourceType?: ItemResourceTypeEnumThe case-sensitive string used to search for an item by resourceType.
Optional
shared?: booleanOptional
sort?: "-name" | "+name" | "+createdAt" | "-createdAt" | "+updatedAt" | "-updatedAt"The property of a resource to sort on (default sort is +createdAt). The supported properties are createdAt, updatedAt, and name. A property must be prefixed by + or - to indicate ascending or descending sort order respectively.
Optional
spaceId?: stringThe space's unique identifier (supports 'personal' as spaceId).
Optional
options: ApiCallOptionsRetrieves the collections that the user has access to. This endpoint does not return the user's favorites collection, which can be retrieved with /v1/collections/favorites
.
Retrieves the collections that the user has access to. This endpoint does not return the user's favorites collection, which can be retrieved with /v1/collections/favorites
.
an object with query parameters
Optional
creatorId?: stringThe case-sensitive string used to search for a resource by creatorId.
Optional
id?: stringThe collection's unique identifier.
Optional
includeItems?: stringIncludes the list of items belonging to the collections. Supported parameters are 'limit', 'sort' and 'resourceType'. Supported formats are json formatted string or deep object style using square brackets.
Optional
limit?: numberThe maximum number of resources to return for a request. The limit must be an integer between 1 and 100 (inclusive).
Optional
name?: stringThe case-sensitive string used to search for a collection by name.
Optional
next?: stringThe cursor to the next page of resources. Provide either the next or prev cursor, but not both.
Optional
prev?: stringThe cursor to the previous page of resources. Provide either the next or prev cursor, but not both.
Optional
query?: stringThe case-insensitive string used to search for a resource by name or description.
Optional
sort?: "-name" | "+name" | "+createdAt" | "-createdAt" | "+updatedAt" | "-updatedAt"The property of a resource to sort on (default sort is +createdAt). The supported properties are createdAt, updatedAt, and name. A property must be prefixed by + or - to indicate ascending or descending sort order respectively.
Optional
type?: CollectionTypesThe case-sensitive string used to filter for a collection by type. Retrieve private collections with private
, public collections with publicgoverned
, and tags with public
.
Optional
types?: CollectionTypes[]A comma-separated case-sensitive string used to filter by multiple types.
Optional
options: ApiCallOptionsLists the user's favorites collection.
Lists the user's favorites collection.
Optional
options: ApiCallOptionsUpdates the name, description, or type fields provided in the patch body. Can be used to publish a private
collection as a publicgoverned
collection by patching /type
with publicgoverned
once the collection contains at least 1 item. Can also be used to return a publicgoverned
collection to private
. Cannot be used to change between public
(tag) and private / publicgoverned
(collection).
Updates the name, description, or type fields provided in the patch body. Can be used to publish a private
collection as a publicgoverned
collection by patching /type
with publicgoverned
once the collection contains at least 1 item. Can also be used to return a publicgoverned
collection to private
. Cannot be used to change between public
(tag) and private / publicgoverned
(collection).
The collection's unique identifier.
an object with the body content
Optional
options: ApiCallOptionsUpdates a collection's name and description and returns the updated collection. Omitted and unsupported fields are ignored. To unset a field, provide the field's zero value.
Updates a collection's name and description and returns the updated collection. Omitted and unsupported fields are ignored. To unset a field, provide the field's zero value.
The collection's unique identifier.
an object with the body content
Optional
options: ApiCallOptions
Adds an item to a collection and returns the item.