Collections
Collections provide the framework to catalog various content a user has access to using tags, public and private collections, and favorites.
Endpoints
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.
Facts
| Rate limit | Tier 1 (1000 requests per minute) |
Query Parameters
- creatorId string
The case-sensitive string used to search for a resource by creatorId.
- id string
The collection's unique identifier.
- includeItems string
Includes 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.
- limit integer
The maximum number of resources to return for a request. The limit must be an integer between 1 and 100 (inclusive).
- name string
The case-sensitive string used to search for a collection by name.
- next string
The cursor to the next page of resources. Provide either the next or prev cursor, but not both.
- prev string
The cursor to the previous page of resources. Provide either the next or prev cursor, but not both.
- query string
The case-insensitive string used to search for a resource by name or description.
- sort string
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.
Can be one of: "+createdAt""-createdAt""+name""-name""+updatedAt""-updatedAt"
- type string
The case-sensitive string used to filter for a collection by type. Retrieve private collections with
private, public collections withpublicgoverned, and tags withpublic.Can be one of: "private""public""publicgoverned"
- types array of strings
A comma-separated case-sensitive string used to filter by multiple types.
Values may be any of: "private""public""publicgoverned"
Responses
200
OK response.
- application/json object
ListCollectionsResponseBody result type
application/json properties
- data array of objectsRequired
A collection.
data properties
- id stringRequired
The collection's unique identifier.
- full boolean
States if a collection has reached its items limit or not
- meta object
Collection metadata and computed fields.
meta properties
- items object
Multiple items.
items properties
- data array of objectsRequired
An item.
data properties
- id stringRequired
The item's unique identifier.
- meta objectRequired
Item metadata and computed fields.
meta properties
- tags array of objectsRequired
An array of tags that the item is part of.
tags properties
- id stringRequired
The ID of the tag/collection.
- name stringRequired
The name of the tag/collection.
-
- actions array of stringsRequired
The actions that the user can perform on the item.
- collections array of objectsRequired
An array of collections that the item is part of.
collections properties
- id stringRequired
The ID of the tag/collection.
- name stringRequired
The name of the tag/collection.
-
- isFavorited booleanRequired
The flag that indicates if item is in the user's favorites collection.
-
- name stringRequired
- links objectRequired
links properties
- open object
open properties
- href string
-
- self object
self properties
- href string
-
- qvPlugin object
qvPlugin properties
- href string
-
- thumbnail object
thumbnail properties
- href string
-
- collections object
collections properties
- href string
-
-
- actions array of stringsRequired
The actions that the user can perform on the item.
- ownerId string
The ID of the user who owns the item.
- spaceId string
The space's unique identifier.
- tenantId stringRequired
The ID of the tenant that owns the item. This is populated using the JWT.
- createdAt stringRequired
The RFC3339 datetime when the item was created.
- creatorId string
The ID of the user who created the item. This is only populated if the JWT contains a userId.
- itemViews object
itemViews properties
- week array of objects
week properties
- start string
The RFC3339 datetime representing the start of the referenced week.
- total integer
Total number of views the resource got during the referenced week.
- unique integer
Number of unique users who viewed the resource during the referenced week.
-
- total integer
Total number of views the resource got during the last 28 days.
- trend number
Trend in views over the last 4 weeks. The trend value is a float number representing a linear regression slope (the x-coefficient) calculated from the weekly unique users views in the preceding 4 weeks.
- unique integer
Number of unique users who viewed the resource during the last 28 days.
- usedBy integer
Number of apps this dataset is used in (datasets only).
-
- updatedAt stringRequired
The RFC3339 datetime when the item was last updated.
- updaterId string
ID of the user who last updated the item. This is only populated if the JWT contains a userId.
- resourceId string
The 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.
- description string
- isFavorited booleanRequired
The flag that indicates if item is in the user's favorites collection.
- thumbnailId string
The item thumbnail's unique identifier. This is optional for internal resources.
- resourceLink string
The 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.
- resourceSize object
resourceSize properties
- appFile number
Size of the app on disk in bytes.
- appMemory number
Size of the app in memory in bytes.
-
- resourceType stringRequired
The case-sensitive string defining the item's type.
Can be one of: "app""qlikview""qvapp""genericlink""sharingservicetask""note""dataasset""dataset""automation""automl-experiment""automl-deployment""assistant""dataproduct""dataqualityrule""glossary""knowledgebase""script""semantictype""page"
- collectionIds array of stringsRequired
The ID of the collections that the item has been added to.
- resourceSubType string
Optional field defining the item's subtype, if any.
- resourceCreatedAt stringRequired
The RFC3339 datetime when the resource that the item references was created.
- resourceUpdatedAt stringRequired
The RFC3339 datetime when the resource that the item references was last updated.
- resourceAttributes objectRequired
- resourceReloadStatus string
If the resource last reload was successful or not.
- resourceReloadEndTime string
The RFC3339 datetime when the resource last reload ended.
- resourceCustomAttributes objectRequired
-
- links objectRequired
links properties
- next object
next properties
- href string
-
- prev object
prev properties
- href string
-
- self object
self properties
- href string
-
- collection object
collection properties
- href string
-
-
-
-
- name stringRequired
- type stringRequired
Can be one of: "private""public""favorite""publicgoverned"
- links objectRequired
links properties
- self object
self properties
- href string
-
- items object
items properties
- href string
-
-
- tenantId stringRequired
The ID of the tenant that owns the collection. This property is populated by using JWT.
- createdAt stringRequired
The RFC3339 datetime when the collection was created.
- creatorId string
The ID of the user who created the collection. This property is only populated if the JWT contains a userId.
- itemCount integerRequired
The number of items that have been added to the collection that the user has access to.
- updatedAt stringRequired
The RFC3339 datetime when the collection was last updated.
- updaterId string
The ID of the user who last updated the collection. This property is only populated if the JWT contains a userId.
- description string
-
- links objectRequired
links properties
- item object
item properties
- href string
-
- next object
next properties
- href string
-
- prev object
prev properties
- href string
-
- self object
self properties
- href string
-
-
-
400
Bad Request response.
- application/json object
application/json properties
- errors array of objects
errors properties
- code string
Code is a unique identifier for this error class.
- meta object
meta properties
- fault boolean
Is the error a server-side fault?
- explain object
Further explanation of the error
- timeout boolean
Is the error a timeout?
- temporary boolean
Is the error temporary?
-
- title string
Title is the name of this class of errors.
- detail string
Detail is a human-readable explanation specific to this occurrence of the problem.
-
-
401
Unauthorized response.
- application/json object
application/json properties
- errors array of objects
errors properties
- code string
Code is a unique identifier for this error class.
- meta object
meta properties
- fault boolean
Is the error a server-side fault?
- explain object
Further explanation of the error
- timeout boolean
Is the error a timeout?
- temporary boolean
Is the error temporary?
-
- title string
Title is the name of this class of errors.
- detail string
Detail is a human-readable explanation specific to this occurrence of the problem.
-
-
500
Internal Server Error response.
- application/json object
application/json properties
- errors array of objects
errors properties
- code string
Code is a unique identifier for this error class.
- meta object
meta properties
- fault boolean
Is the error a server-side fault?
- explain object
Further explanation of the error
- timeout boolean
Is the error a timeout?
- temporary boolean
Is the error temporary?
-
- title string
Title is the name of this class of errors.
- detail string
Detail is a human-readable explanation specific to this occurrence of the problem.
-
-
import { createQlikApi } from '@qlik/api'
const qlik = createQlikApi({ hostConfig: { host: 'https://{tenant}.{region}.qlikcloud.com', apiKey: '<access-token>', },})
await qlik.collections.getCollections({})qlik collection lscurl "https://{tenant}.{region}.qlikcloud.com/api/v1/collections" \-H "Authorization: Bearer <access_token>"Example Response
{ "data": [ { "id": "string", "full": true, "meta": { "items": { "data": [ { "id": "string", "meta": { "tags": [ { "id": "string", "name": "string" } ], "actions": [ "string" ], "collections": [ { "id": "string", "name": "string" } ], "isFavorited": true }, "name": "string", "links": { "open": { "href": "string" }, "self": { "href": "string" }, "qvPlugin": { "href": "string" }, "thumbnail": { "href": "string" }, "collections": { "href": "string" } }, "actions": [ "string" ], "ownerId": "string", "spaceId": "string", "tenantId": "string", "createdAt": "2018-10-30T07:06:22Z", "creatorId": "string", "itemViews": { "week": [ { "start": "2018-10-30T07:06:22Z", "total": 42, "unique": 42 } ], "total": 42, "trend": -4.2, "unique": 42, "usedBy": 42 }, "updatedAt": "2018-10-30T07:06:22Z", "updaterId": "string", "resourceId": "string", "description": "string", "isFavorited": true, "thumbnailId": "string", "resourceLink": "string", "resourceSize": { "appFile": 42, "appMemory": 42 }, "resourceType": "app", "collectionIds": [ "string" ], "resourceSubType": "string", "resourceCreatedAt": "2018-10-30T07:06:22Z", "resourceUpdatedAt": "2018-10-30T07:06:22Z", "resourceAttributes": {}, "resourceReloadStatus": "string", "resourceReloadEndTime": "2018-10-30T07:06:22Z", "resourceCustomAttributes": {} } ], "links": { "next": { "href": "string" }, "prev": { "href": "string" }, "self": { "href": "string" }, "collection": { "href": "string" } } } }, "name": "string", "type": "private", "links": { "self": { "href": "string" }, "items": { "href": "string" } }, "tenantId": "string", "createdAt": "2018-10-30T07:06:22Z", "creatorId": "string", "itemCount": 42, "updatedAt": "2018-10-30T07:06:22Z", "updaterId": "string", "description": "string" } ], "links": { "item": { "href": "string" }, "next": { "href": "string" }, "prev": { "href": "string" }, "self": { "href": "string" } }}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.
Facts
| Rate limit | Tier 2 (100 requests per minute) |
Request Body
Required- application/json object
application/json properties
- name stringRequired
For
publiccollections (tags), if name already exists in the tenant as apubliccollection, this call will fail with a409response. - type stringRequired
Can be one of: "private""public""publicgoverned"
- description string
-
Responses
201
Created response.
- application/json object
A collection.
application/json properties
- id stringRequired
The collection's unique identifier.
- full boolean
States if a collection has reached its items limit or not
- meta object
Collection metadata and computed fields.
meta properties
- items object
Multiple items.
items properties
- data array of objectsRequired
An item.
data properties
- id stringRequired
The item's unique identifier.
- meta objectRequired
Item metadata and computed fields.
meta properties
- tags array of objectsRequired
An array of tags that the item is part of.
tags properties
- id stringRequired
The ID of the tag/collection.
- name stringRequired
The name of the tag/collection.
-
- actions array of stringsRequired
The actions that the user can perform on the item.
- collections array of objectsRequired
An array of collections that the item is part of.
collections properties
- id stringRequired
The ID of the tag/collection.
- name stringRequired
The name of the tag/collection.
-
- isFavorited booleanRequired
The flag that indicates if item is in the user's favorites collection.
-
- name stringRequired
- links objectRequired
links properties
- open object
open properties
- href string
-
- self object
self properties
- href string
-
- qvPlugin object
qvPlugin properties
- href string
-
- thumbnail object
thumbnail properties
- href string
-
- collections object
collections properties
- href string
-
-
- actions array of stringsRequired
The actions that the user can perform on the item.
- ownerId string
The ID of the user who owns the item.
- spaceId string
The space's unique identifier.
- tenantId stringRequired
The ID of the tenant that owns the item. This is populated using the JWT.
- createdAt stringRequired
The RFC3339 datetime when the item was created.
- creatorId string
The ID of the user who created the item. This is only populated if the JWT contains a userId.
- itemViews object
itemViews properties
- week array of objects
week properties
- start string
The RFC3339 datetime representing the start of the referenced week.
- total integer
Total number of views the resource got during the referenced week.
- unique integer
Number of unique users who viewed the resource during the referenced week.
-
- total integer
Total number of views the resource got during the last 28 days.
- trend number
Trend in views over the last 4 weeks. The trend value is a float number representing a linear regression slope (the x-coefficient) calculated from the weekly unique users views in the preceding 4 weeks.
- unique integer
Number of unique users who viewed the resource during the last 28 days.
- usedBy integer
Number of apps this dataset is used in (datasets only).
-
- updatedAt stringRequired
The RFC3339 datetime when the item was last updated.
- updaterId string
ID of the user who last updated the item. This is only populated if the JWT contains a userId.
- resourceId string
The 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.
- description string
- isFavorited booleanRequired
The flag that indicates if item is in the user's favorites collection.
- thumbnailId string
The item thumbnail's unique identifier. This is optional for internal resources.
- resourceLink string
The 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.
- resourceSize object
resourceSize properties
- appFile number
Size of the app on disk in bytes.
- appMemory number
Size of the app in memory in bytes.
-
- resourceType stringRequired
The case-sensitive string defining the item's type.
Can be one of: "app""qlikview""qvapp""genericlink""sharingservicetask""note""dataasset""dataset""automation""automl-experiment""automl-deployment""assistant""dataproduct""dataqualityrule""glossary""knowledgebase""script""semantictype""page"
- collectionIds array of stringsRequired
The ID of the collections that the item has been added to.
- resourceSubType string
Optional field defining the item's subtype, if any.
- resourceCreatedAt stringRequired
The RFC3339 datetime when the resource that the item references was created.
- resourceUpdatedAt stringRequired
The RFC3339 datetime when the resource that the item references was last updated.
- resourceAttributes objectRequired
- resourceReloadStatus string
If the resource last reload was successful or not.
- resourceReloadEndTime string
The RFC3339 datetime when the resource last reload ended.
- resourceCustomAttributes objectRequired
-
- links objectRequired
links properties
- next object
next properties
- href string
-
- prev object
prev properties
- href string
-
- self object
self properties
- href string
-
- collection object
collection properties
- href string
-
-
-
-
- name stringRequired
- type stringRequired
Can be one of: "private""public""favorite""publicgoverned"
- links objectRequired
links properties
- self object
self properties
- href string
-
- items object
items properties
- href string
-
-
- tenantId stringRequired
The ID of the tenant that owns the collection. This property is populated by using JWT.
- createdAt stringRequired
The RFC3339 datetime when the collection was created.
- creatorId string
The ID of the user who created the collection. This property is only populated if the JWT contains a userId.
- itemCount integerRequired
The number of items that have been added to the collection that the user has access to.
- updatedAt stringRequired
The RFC3339 datetime when the collection was last updated.
- updaterId string
The ID of the user who last updated the collection. This property is only populated if the JWT contains a userId.
- description string
-
400
Bad Request response.
- application/json object
application/json properties
- errors array of objects
errors properties
- code string
Code is a unique identifier for this error class.
- meta object
meta properties
- fault boolean
Is the error a server-side fault?
- explain object
Further explanation of the error
- timeout boolean
Is the error a timeout?
- temporary boolean
Is the error temporary?
-
- title string
Title is the name of this class of errors.
- detail string
Detail is a human-readable explanation specific to this occurrence of the problem.
-
-
401
Unauthorized response.
- application/json object
application/json properties
- errors array of objects
errors properties
- code string
Code is a unique identifier for this error class.
- meta object
meta properties
- fault boolean
Is the error a server-side fault?
- explain object
Further explanation of the error
- timeout boolean
Is the error a timeout?
- temporary boolean
Is the error temporary?
-
- title string
Title is the name of this class of errors.
- detail string
Detail is a human-readable explanation specific to this occurrence of the problem.
-
-
403
Forbidden response.
- application/json object
application/json properties
- errors array of objects
errors properties
- code string
Code is a unique identifier for this error class.
- meta object
meta properties
- fault boolean
Is the error a server-side fault?
- explain object
Further explanation of the error
- timeout boolean
Is the error a timeout?
- temporary boolean
Is the error temporary?
-
- title string
Title is the name of this class of errors.
- detail string
Detail is a human-readable explanation specific to this occurrence of the problem.
-
-
409
Conflict response.
- application/json object
application/json properties
- errors array of objects
errors properties
- code string
Code is a unique identifier for this error class.
- meta object
meta properties
- fault boolean
Is the error a server-side fault?
- explain object
Further explanation of the error
- timeout boolean
Is the error a timeout?
- temporary boolean
Is the error temporary?
-
- title string
Title is the name of this class of errors.
- detail string
Detail is a human-readable explanation specific to this occurrence of the problem.
-
-
500
Internal Server Error response.
- application/json object
application/json properties
- errors array of objects
errors properties
- code string
Code is a unique identifier for this error class.
- meta object
meta properties
- fault boolean
Is the error a server-side fault?
- explain object
Further explanation of the error
- timeout boolean
Is the error a timeout?
- temporary boolean
Is the error temporary?
-
- title string
Title is the name of this class of errors.
- detail string
Detail is a human-readable explanation specific to this occurrence of the problem.
-
-
import { createQlikApi } from '@qlik/api'
const qlik = createQlikApi({ hostConfig: { host: 'https://{tenant}.{region}.qlikcloud.com', apiKey: '<access-token>', },})
await qlik.collections.createCollection({ description: 'string', name: 'string', type: 'private',})qlik collection create \ --name 'string' \ --type 'private'curl "https://{tenant}.{region}.qlikcloud.com/api/v1/collections" \-X POST \-H "Content-type: application/json" \-H "Authorization: Bearer <access_token>" \-d '{"name":"string","type":"private","description":"string"}'Example Response
{ "id": "string", "full": true, "meta": { "items": { "data": [ { "id": "string", "meta": { "tags": [ { "id": "string", "name": "string" } ], "actions": [ "string" ], "collections": [ { "id": "string", "name": "string" } ], "isFavorited": true }, "name": "string", "links": { "open": { "href": "string" }, "self": { "href": "string" }, "qvPlugin": { "href": "string" }, "thumbnail": { "href": "string" }, "collections": { "href": "string" } }, "actions": [ "string" ], "ownerId": "string", "spaceId": "string", "tenantId": "string", "createdAt": "2018-10-30T07:06:22Z", "creatorId": "string", "itemViews": { "week": [ { "start": "2018-10-30T07:06:22Z", "total": 42, "unique": 42 } ], "total": 42, "trend": -4.2, "unique": 42, "usedBy": 42 }, "updatedAt": "2018-10-30T07:06:22Z", "updaterId": "string", "resourceId": "string", "description": "string", "isFavorited": true, "thumbnailId": "string", "resourceLink": "string", "resourceSize": { "appFile": 42, "appMemory": 42 }, "resourceType": "app", "collectionIds": [ "string" ], "resourceSubType": "string", "resourceCreatedAt": "2018-10-30T07:06:22Z", "resourceUpdatedAt": "2018-10-30T07:06:22Z", "resourceAttributes": {}, "resourceReloadStatus": "string", "resourceReloadEndTime": "2018-10-30T07:06:22Z", "resourceCustomAttributes": {} } ], "links": { "next": { "href": "string" }, "prev": { "href": "string" }, "self": { "href": "string" }, "collection": { "href": "string" } } } }, "name": "string", "type": "private", "links": { "self": { "href": "string" }, "items": { "href": "string" } }, "tenantId": "string", "createdAt": "2018-10-30T07:06:22Z", "creatorId": "string", "itemCount": 42, "updatedAt": "2018-10-30T07:06:22Z", "updaterId": "string", "description": "string"}Finds and returns a collection.
Facts
| Rate limit | Tier 1 (1000 requests per minute) |
Path Parameters
- collectionId stringRequired
The collection's unique identifier.
Responses
200
OK response.
- application/json object
A collection.
application/json properties
- id stringRequired
The collection's unique identifier.
- full boolean
States if a collection has reached its items limit or not
- meta object
Collection metadata and computed fields.
meta properties
- items object
Multiple items.
items properties
- data array of objectsRequired
An item.
data properties
- id stringRequired
The item's unique identifier.
- meta objectRequired
Item metadata and computed fields.
meta properties
- tags array of objectsRequired
An array of tags that the item is part of.
tags properties
- id stringRequired
The ID of the tag/collection.
- name stringRequired
The name of the tag/collection.
-
- actions array of stringsRequired
The actions that the user can perform on the item.
- collections array of objectsRequired
An array of collections that the item is part of.
collections properties
- id stringRequired
The ID of the tag/collection.
- name stringRequired
The name of the tag/collection.
-
- isFavorited booleanRequired
The flag that indicates if item is in the user's favorites collection.
-
- name stringRequired
- links objectRequired
links properties
- open object
open properties
- href string
-
- self object
self properties
- href string
-
- qvPlugin object
qvPlugin properties
- href string
-
- thumbnail object
thumbnail properties
- href string
-
- collections object
collections properties
- href string
-
-
- actions array of stringsRequired
The actions that the user can perform on the item.
- ownerId string
The ID of the user who owns the item.
- spaceId string
The space's unique identifier.
- tenantId stringRequired
The ID of the tenant that owns the item. This is populated using the JWT.
- createdAt stringRequired
The RFC3339 datetime when the item was created.
- creatorId string
The ID of the user who created the item. This is only populated if the JWT contains a userId.
- itemViews object
itemViews properties
- week array of objects
week properties
- start string
The RFC3339 datetime representing the start of the referenced week.
- total integer
Total number of views the resource got during the referenced week.
- unique integer
Number of unique users who viewed the resource during the referenced week.
-
- total integer
Total number of views the resource got during the last 28 days.
- trend number
Trend in views over the last 4 weeks. The trend value is a float number representing a linear regression slope (the x-coefficient) calculated from the weekly unique users views in the preceding 4 weeks.
- unique integer
Number of unique users who viewed the resource during the last 28 days.
- usedBy integer
Number of apps this dataset is used in (datasets only).
-
- updatedAt stringRequired
The RFC3339 datetime when the item was last updated.
- updaterId string
ID of the user who last updated the item. This is only populated if the JWT contains a userId.
- resourceId string
The 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.
- description string
- isFavorited booleanRequired
The flag that indicates if item is in the user's favorites collection.
- thumbnailId string
The item thumbnail's unique identifier. This is optional for internal resources.
- resourceLink string
The 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.
- resourceSize object
resourceSize properties
- appFile number
Size of the app on disk in bytes.
- appMemory number
Size of the app in memory in bytes.
-
- resourceType stringRequired
The case-sensitive string defining the item's type.
Can be one of: "app""qlikview""qvapp""genericlink""sharingservicetask""note""dataasset""dataset""automation""automl-experiment""automl-deployment""assistant""dataproduct""dataqualityrule""glossary""knowledgebase""script""semantictype""page"
- collectionIds array of stringsRequired
The ID of the collections that the item has been added to.
- resourceSubType string
Optional field defining the item's subtype, if any.
- resourceCreatedAt stringRequired
The RFC3339 datetime when the resource that the item references was created.
- resourceUpdatedAt stringRequired
The RFC3339 datetime when the resource that the item references was last updated.
- resourceAttributes objectRequired
- resourceReloadStatus string
If the resource last reload was successful or not.
- resourceReloadEndTime string
The RFC3339 datetime when the resource last reload ended.
- resourceCustomAttributes objectRequired
-
- links objectRequired
links properties
- next object
next properties
- href string
-
- prev object
prev properties
- href string
-
- self object
self properties
- href string
-
- collection object
collection properties
- href string
-
-
-
-
- name stringRequired
- type stringRequired
Can be one of: "private""public""favorite""publicgoverned"
- links objectRequired
links properties
- self object
self properties
- href string
-
- items object
items properties
- href string
-
-
- tenantId stringRequired
The ID of the tenant that owns the collection. This property is populated by using JWT.
- createdAt stringRequired
The RFC3339 datetime when the collection was created.
- creatorId string
The ID of the user who created the collection. This property is only populated if the JWT contains a userId.
- itemCount integerRequired
The number of items that have been added to the collection that the user has access to.
- updatedAt stringRequired
The RFC3339 datetime when the collection was last updated.
- updaterId string
The ID of the user who last updated the collection. This property is only populated if the JWT contains a userId.
- description string
-
400
Bad Request response.
- application/json object
application/json properties
- errors array of objects
errors properties
- code string
Code is a unique identifier for this error class.
- meta object
meta properties
- fault boolean
Is the error a server-side fault?
- explain object
Further explanation of the error
- timeout boolean
Is the error a timeout?
- temporary boolean
Is the error temporary?
-
- title string
Title is the name of this class of errors.
- detail string
Detail is a human-readable explanation specific to this occurrence of the problem.
-
-
401
Unauthorized response.
- application/json object
application/json properties
- errors array of objects
errors properties
- code string
Code is a unique identifier for this error class.
- meta object
meta properties
- fault boolean
Is the error a server-side fault?
- explain object
Further explanation of the error
- timeout boolean
Is the error a timeout?
- temporary boolean
Is the error temporary?
-
- title string
Title is the name of this class of errors.
- detail string
Detail is a human-readable explanation specific to this occurrence of the problem.
-
-
404
Not Found response.
- application/json object
application/json properties
- errors array of objects
errors properties
- code string
Code is a unique identifier for this error class.
- meta object
meta properties
- fault boolean
Is the error a server-side fault?
- explain object
Further explanation of the error
- timeout boolean
Is the error a timeout?
- temporary boolean
Is the error temporary?
-
- title string
Title is the name of this class of errors.
- detail string
Detail is a human-readable explanation specific to this occurrence of the problem.
-
-
500
Internal Server Error response.
- application/json object
application/json properties
- errors array of objects
errors properties
- code string
Code is a unique identifier for this error class.
- meta object
meta properties
- fault boolean
Is the error a server-side fault?
- explain object
Further explanation of the error
- timeout boolean
Is the error a timeout?
- temporary boolean
Is the error temporary?
-
- title string
Title is the name of this class of errors.
- detail string
Detail is a human-readable explanation specific to this occurrence of the problem.
-
-
import { createQlikApi } from '@qlik/api'
const qlik = createQlikApi({ hostConfig: { host: 'https://{tenant}.{region}.qlikcloud.com', apiKey: '<access-token>', },})
await qlik.collections.getCollection('string')qlik collection get 'string'curl "https://{tenant}.{region}.qlikcloud.com/api/v1/collections/{collectionId}" \-H "Authorization: Bearer <access_token>"Example Response
{ "id": "string", "full": true, "meta": { "items": { "data": [ { "id": "string", "meta": { "tags": [ { "id": "string", "name": "string" } ], "actions": [ "string" ], "collections": [ { "id": "string", "name": "string" } ], "isFavorited": true }, "name": "string", "links": { "open": { "href": "string" }, "self": { "href": "string" }, "qvPlugin": { "href": "string" }, "thumbnail": { "href": "string" }, "collections": { "href": "string" } }, "actions": [ "string" ], "ownerId": "string", "spaceId": "string", "tenantId": "string", "createdAt": "2018-10-30T07:06:22Z", "creatorId": "string", "itemViews": { "week": [ { "start": "2018-10-30T07:06:22Z", "total": 42, "unique": 42 } ], "total": 42, "trend": -4.2, "unique": 42, "usedBy": 42 }, "updatedAt": "2018-10-30T07:06:22Z", "updaterId": "string", "resourceId": "string", "description": "string", "isFavorited": true, "thumbnailId": "string", "resourceLink": "string", "resourceSize": { "appFile": 42, "appMemory": 42 }, "resourceType": "app", "collectionIds": [ "string" ], "resourceSubType": "string", "resourceCreatedAt": "2018-10-30T07:06:22Z", "resourceUpdatedAt": "2018-10-30T07:06:22Z", "resourceAttributes": {}, "resourceReloadStatus": "string", "resourceReloadEndTime": "2018-10-30T07:06:22Z", "resourceCustomAttributes": {} } ], "links": { "next": { "href": "string" }, "prev": { "href": "string" }, "self": { "href": "string" }, "collection": { "href": "string" } } } }, "name": "string", "type": "private", "links": { "self": { "href": "string" }, "items": { "href": "string" } }, "tenantId": "string", "createdAt": "2018-10-30T07:06:22Z", "creatorId": "string", "itemCount": 42, "updatedAt": "2018-10-30T07:06:22Z", "updaterId": "string", "description": "string"}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).
Facts
| Rate limit | Tier 2 (100 requests per minute) |
Path Parameters
- collectionId stringRequired
The collection's unique identifier.
Request Body
Required- application/json array of objects
A JSONPatch document as defined by RFC 6902.
application/json properties
- op stringRequired
The operation to be performed.
Can be one of: "replace"
- path stringRequired
Field of collection to be patched.
Can be one of: "/name""/description""/type"
- value stringRequired
The value to be used within the operations.
- name: The name of the collection. Must not be "".
- description: The description of the collection. Empty string "" is allowed.
- type: The type of the collection. Via this path the collection type can be toggled between "private" and "publicgoverned".
-
Responses
200
OK response.
- application/json object
A collection.
application/json properties
- id stringRequired
The collection's unique identifier.
- full boolean
States if a collection has reached its items limit or not
- meta object
Collection metadata and computed fields.
meta properties
- items object
Multiple items.
items properties
- data array of objectsRequired
An item.
data properties
- id stringRequired
The item's unique identifier.
- meta objectRequired
Item metadata and computed fields.
meta properties
- tags array of objectsRequired
An array of tags that the item is part of.
tags properties
- id stringRequired
The ID of the tag/collection.
- name stringRequired
The name of the tag/collection.
-
- actions array of stringsRequired
The actions that the user can perform on the item.
- collections array of objectsRequired
An array of collections that the item is part of.
collections properties
- id stringRequired
The ID of the tag/collection.
- name stringRequired
The name of the tag/collection.
-
- isFavorited booleanRequired
The flag that indicates if item is in the user's favorites collection.
-
- name stringRequired
- links objectRequired
links properties
- open object
open properties
- href string
-
- self object
self properties
- href string
-
- qvPlugin object
qvPlugin properties
- href string
-
- thumbnail object
thumbnail properties
- href string
-
- collections object
collections properties
- href string
-
-
- actions array of stringsRequired
The actions that the user can perform on the item.
- ownerId string
The ID of the user who owns the item.
- spaceId string
The space's unique identifier.
- tenantId stringRequired
The ID of the tenant that owns the item. This is populated using the JWT.
- createdAt stringRequired
The RFC3339 datetime when the item was created.
- creatorId string
The ID of the user who created the item. This is only populated if the JWT contains a userId.
- itemViews object
itemViews properties
- week array of objects
week properties
- start string
The RFC3339 datetime representing the start of the referenced week.
- total integer
Total number of views the resource got during the referenced week.
- unique integer
Number of unique users who viewed the resource during the referenced week.
-
- total integer
Total number of views the resource got during the last 28 days.
- trend number
Trend in views over the last 4 weeks. The trend value is a float number representing a linear regression slope (the x-coefficient) calculated from the weekly unique users views in the preceding 4 weeks.
- unique integer
Number of unique users who viewed the resource during the last 28 days.
- usedBy integer
Number of apps this dataset is used in (datasets only).
-
- updatedAt stringRequired
The RFC3339 datetime when the item was last updated.
- updaterId string
ID of the user who last updated the item. This is only populated if the JWT contains a userId.
- resourceId string
The 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.
- description string
- isFavorited booleanRequired
The flag that indicates if item is in the user's favorites collection.
- thumbnailId string
The item thumbnail's unique identifier. This is optional for internal resources.
- resourceLink string
The 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.
- resourceSize object
resourceSize properties
- appFile number
Size of the app on disk in bytes.
- appMemory number
Size of the app in memory in bytes.
-
- resourceType stringRequired
The case-sensitive string defining the item's type.
Can be one of: "app""qlikview""qvapp""genericlink""sharingservicetask""note""dataasset""dataset""automation""automl-experiment""automl-deployment""assistant""dataproduct""dataqualityrule""glossary""knowledgebase""script""semantictype""page"
- collectionIds array of stringsRequired
The ID of the collections that the item has been added to.
- resourceSubType string
Optional field defining the item's subtype, if any.
- resourceCreatedAt stringRequired
The RFC3339 datetime when the resource that the item references was created.
- resourceUpdatedAt stringRequired
The RFC3339 datetime when the resource that the item references was last updated.
- resourceAttributes objectRequired
- resourceReloadStatus string
If the resource last reload was successful or not.
- resourceReloadEndTime string
The RFC3339 datetime when the resource last reload ended.
- resourceCustomAttributes objectRequired
-
- links objectRequired
links properties
- next object
next properties
- href string
-
- prev object
prev properties
- href string
-
- self object
self properties
- href string
-
- collection object
collection properties
- href string
-
-
-
-
- name stringRequired
- type stringRequired
Can be one of: "private""public""favorite""publicgoverned"
- links objectRequired
links properties
- self object
self properties
- href string
-
- items object
items properties
- href string
-
-
- tenantId stringRequired
The ID of the tenant that owns the collection. This property is populated by using JWT.
- createdAt stringRequired
The RFC3339 datetime when the collection was created.
- creatorId string
The ID of the user who created the collection. This property is only populated if the JWT contains a userId.
- itemCount integerRequired
The number of items that have been added to the collection that the user has access to.
- updatedAt stringRequired
The RFC3339 datetime when the collection was last updated.
- updaterId string
The ID of the user who last updated the collection. This property is only populated if the JWT contains a userId.
- description string
-
400
Bad Request response.
- application/json object
application/json properties
- errors array of objects
errors properties
- code string
Code is a unique identifier for this error class.
- meta object
meta properties
- fault boolean
Is the error a server-side fault?
- explain object
Further explanation of the error
- timeout boolean
Is the error a timeout?
- temporary boolean
Is the error temporary?
-
- title string
Title is the name of this class of errors.
- detail string
Detail is a human-readable explanation specific to this occurrence of the problem.
-
-
401
Unauthorized response.
- application/json object
application/json properties
- errors array of objects
errors properties
- code string
Code is a unique identifier for this error class.
- meta object
meta properties
- fault boolean
Is the error a server-side fault?
- explain object
Further explanation of the error
- timeout boolean
Is the error a timeout?
- temporary boolean
Is the error temporary?
-
- title string
Title is the name of this class of errors.
- detail string
Detail is a human-readable explanation specific to this occurrence of the problem.
-
-
404
Not Found response.
- application/json object
application/json properties
- errors array of objects
errors properties
- code string
Code is a unique identifier for this error class.
- meta object
meta properties
- fault boolean
Is the error a server-side fault?
- explain object
Further explanation of the error
- timeout boolean
Is the error a timeout?
- temporary boolean
Is the error temporary?
-
- title string
Title is the name of this class of errors.
- detail string
Detail is a human-readable explanation specific to this occurrence of the problem.
-
-
409
Conflict response.
- application/json object
application/json properties
- errors array of objects
errors properties
- code string
Code is a unique identifier for this error class.
- meta object
meta properties
- fault boolean
Is the error a server-side fault?
- explain object
Further explanation of the error
- timeout boolean
Is the error a timeout?
- temporary boolean
Is the error temporary?
-
- title string
Title is the name of this class of errors.
- detail string
Detail is a human-readable explanation specific to this occurrence of the problem.
-
-
500
Internal Server Error response.
- application/json object
application/json properties
- errors array of objects
errors properties
- code string
Code is a unique identifier for this error class.
- meta object
meta properties
- fault boolean
Is the error a server-side fault?
- explain object
Further explanation of the error
- timeout boolean
Is the error a timeout?
- temporary boolean
Is the error temporary?
-
- title string
Title is the name of this class of errors.
- detail string
Detail is a human-readable explanation specific to this occurrence of the problem.
-
-
import { createQlikApi } from '@qlik/api'
const qlik = createQlikApi({ hostConfig: { host: 'https://{tenant}.{region}.qlikcloud.com', apiKey: '<access-token>', },})
await qlik.collections.patchCollection('string', [ { op: 'replace', path: '/name', value: 'string', },])qlik collection patch 'string' \ --op 'replace' \ --path '/name' \ --value 'string'curl "https://{tenant}.{region}.qlikcloud.com/api/v1/collections/{collectionId}" \-X PATCH \-H "Content-type: application/json" \-H "Authorization: Bearer <access_token>" \-d '[{"op":"replace","path":"/name","value":"string"}]'Example Response
{ "id": "string", "full": true, "meta": { "items": { "data": [ { "id": "string", "meta": { "tags": [ { "id": "string", "name": "string" } ], "actions": [ "string" ], "collections": [ { "id": "string", "name": "string" } ], "isFavorited": true }, "name": "string", "links": { "open": { "href": "string" }, "self": { "href": "string" }, "qvPlugin": { "href": "string" }, "thumbnail": { "href": "string" }, "collections": { "href": "string" } }, "actions": [ "string" ], "ownerId": "string", "spaceId": "string", "tenantId": "string", "createdAt": "2018-10-30T07:06:22Z", "creatorId": "string", "itemViews": { "week": [ { "start": "2018-10-30T07:06:22Z", "total": 42, "unique": 42 } ], "total": 42, "trend": -4.2, "unique": 42, "usedBy": 42 }, "updatedAt": "2018-10-30T07:06:22Z", "updaterId": "string", "resourceId": "string", "description": "string", "isFavorited": true, "thumbnailId": "string", "resourceLink": "string", "resourceSize": { "appFile": 42, "appMemory": 42 }, "resourceType": "app", "collectionIds": [ "string" ], "resourceSubType": "string", "resourceCreatedAt": "2018-10-30T07:06:22Z", "resourceUpdatedAt": "2018-10-30T07:06:22Z", "resourceAttributes": {}, "resourceReloadStatus": "string", "resourceReloadEndTime": "2018-10-30T07:06:22Z", "resourceCustomAttributes": {} } ], "links": { "next": { "href": "string" }, "prev": { "href": "string" }, "self": { "href": "string" }, "collection": { "href": "string" } } } }, "name": "string", "type": "private", "links": { "self": { "href": "string" }, "items": { "href": "string" } }, "tenantId": "string", "createdAt": "2018-10-30T07:06:22Z", "creatorId": "string", "itemCount": 42, "updatedAt": "2018-10-30T07:06:22Z", "updaterId": "string", "description": "string"}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.
Facts
| Rate limit | Tier 2 (100 requests per minute) |
Path Parameters
- collectionId stringRequired
The collection's unique identifier.
Request Body
Required- application/json object
application/json properties
- name string
- description string
-
Responses
200
OK response.
- application/json object
A collection.
application/json properties
- id stringRequired
The collection's unique identifier.
- full boolean
States if a collection has reached its items limit or not
- meta object
Collection metadata and computed fields.
meta properties
- items object
Multiple items.
items properties
- data array of objectsRequired
An item.
data properties
- id stringRequired
The item's unique identifier.
- meta objectRequired
Item metadata and computed fields.
meta properties
- tags array of objectsRequired
An array of tags that the item is part of.
tags properties
- id stringRequired
The ID of the tag/collection.
- name stringRequired
The name of the tag/collection.
-
- actions array of stringsRequired
The actions that the user can perform on the item.
- collections array of objectsRequired
An array of collections that the item is part of.
collections properties
- id stringRequired
The ID of the tag/collection.
- name stringRequired
The name of the tag/collection.
-
- isFavorited booleanRequired
The flag that indicates if item is in the user's favorites collection.
-
- name stringRequired
- links objectRequired
links properties
- open object
open properties
- href string
-
- self object
self properties
- href string
-
- qvPlugin object
qvPlugin properties
- href string
-
- thumbnail object
thumbnail properties
- href string
-
- collections object
collections properties
- href string
-
-
- actions array of stringsRequired
The actions that the user can perform on the item.
- ownerId string
The ID of the user who owns the item.
- spaceId string
The space's unique identifier.
- tenantId stringRequired
The ID of the tenant that owns the item. This is populated using the JWT.
- createdAt stringRequired
The RFC3339 datetime when the item was created.
- creatorId string
The ID of the user who created the item. This is only populated if the JWT contains a userId.
- itemViews object
itemViews properties
- week array of objects
week properties
- start string
The RFC3339 datetime representing the start of the referenced week.
- total integer
Total number of views the resource got during the referenced week.
- unique integer
Number of unique users who viewed the resource during the referenced week.
-
- total integer
Total number of views the resource got during the last 28 days.
- trend number
Trend in views over the last 4 weeks. The trend value is a float number representing a linear regression slope (the x-coefficient) calculated from the weekly unique users views in the preceding 4 weeks.
- unique integer
Number of unique users who viewed the resource during the last 28 days.
- usedBy integer
Number of apps this dataset is used in (datasets only).
-
- updatedAt stringRequired
The RFC3339 datetime when the item was last updated.
- updaterId string
ID of the user who last updated the item. This is only populated if the JWT contains a userId.
- resourceId string
The 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.
- description string
- isFavorited booleanRequired
The flag that indicates if item is in the user's favorites collection.
- thumbnailId string
The item thumbnail's unique identifier. This is optional for internal resources.
- resourceLink string
The 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.
- resourceSize object
resourceSize properties
- appFile number
Size of the app on disk in bytes.
- appMemory number
Size of the app in memory in bytes.
-
- resourceType stringRequired
The case-sensitive string defining the item's type.
Can be one of: "app""qlikview""qvapp""genericlink""sharingservicetask""note""dataasset""dataset""automation""automl-experiment""automl-deployment""assistant""dataproduct""dataqualityrule""glossary""knowledgebase""script""semantictype""page"
- collectionIds array of stringsRequired
The ID of the collections that the item has been added to.
- resourceSubType string
Optional field defining the item's subtype, if any.
- resourceCreatedAt stringRequired
The RFC3339 datetime when the resource that the item references was created.
- resourceUpdatedAt stringRequired
The RFC3339 datetime when the resource that the item references was last updated.
- resourceAttributes objectRequired
- resourceReloadStatus string
If the resource last reload was successful or not.
- resourceReloadEndTime string
The RFC3339 datetime when the resource last reload ended.
- resourceCustomAttributes objectRequired
-
- links objectRequired
links properties
- next object
next properties
- href string
-
- prev object
prev properties
- href string
-
- self object
self properties
- href string
-
- collection object
collection properties
- href string
-
-
-
-
- name stringRequired
- type stringRequired
Can be one of: "private""public""favorite""publicgoverned"
- links objectRequired
links properties
- self object
self properties
- href string
-
- items object
items properties
- href string
-
-
- tenantId stringRequired
The ID of the tenant that owns the collection. This property is populated by using JWT.
- createdAt stringRequired
The RFC3339 datetime when the collection was created.
- creatorId string
The ID of the user who created the collection. This property is only populated if the JWT contains a userId.
- itemCount integerRequired
The number of items that have been added to the collection that the user has access to.
- updatedAt stringRequired
The RFC3339 datetime when the collection was last updated.
- updaterId string
The ID of the user who last updated the collection. This property is only populated if the JWT contains a userId.
- description string
-
400
Bad Request response.
- application/json object
application/json properties
- errors array of objects
errors properties
- code string
Code is a unique identifier for this error class.
- meta object
meta properties
- fault boolean
Is the error a server-side fault?
- explain object
Further explanation of the error
- timeout boolean
Is the error a timeout?
- temporary boolean
Is the error temporary?
-
- title string
Title is the name of this class of errors.
- detail string
Detail is a human-readable explanation specific to this occurrence of the problem.
-
-
401
Unauthorized response.
- application/json object
application/json properties
- errors array of objects
errors properties
- code string
Code is a unique identifier for this error class.
- meta object
meta properties
- fault boolean
Is the error a server-side fault?
- explain object
Further explanation of the error
- timeout boolean
Is the error a timeout?
- temporary boolean
Is the error temporary?
-
- title string
Title is the name of this class of errors.
- detail string
Detail is a human-readable explanation specific to this occurrence of the problem.
-
-
404
Not Found response.
- application/json object
application/json properties
- errors array of objects
errors properties
- code string
Code is a unique identifier for this error class.
- meta object
meta properties
- fault boolean
Is the error a server-side fault?
- explain object
Further explanation of the error
- timeout boolean
Is the error a timeout?
- temporary boolean
Is the error temporary?
-
- title string
Title is the name of this class of errors.
- detail string
Detail is a human-readable explanation specific to this occurrence of the problem.
-
-
409
Conflict response.
- application/json object
application/json properties
- errors array of objects
errors properties
- code string
Code is a unique identifier for this error class.
- meta object
meta properties
- fault boolean
Is the error a server-side fault?
- explain object
Further explanation of the error
- timeout boolean
Is the error a timeout?
- temporary boolean
Is the error temporary?
-
- title string
Title is the name of this class of errors.
- detail string
Detail is a human-readable explanation specific to this occurrence of the problem.
-
-
500
Internal Server Error response.
- application/json object
application/json properties
- errors array of objects
errors properties
- code string
Code is a unique identifier for this error class.
- meta object
meta properties
- fault boolean
Is the error a server-side fault?
- explain object
Further explanation of the error
- timeout boolean
Is the error a timeout?
- temporary boolean
Is the error temporary?
-
- title string
Title is the name of this class of errors.
- detail string
Detail is a human-readable explanation specific to this occurrence of the problem.
-
-
import { createQlikApi } from '@qlik/api'
const qlik = createQlikApi({ hostConfig: { host: 'https://{tenant}.{region}.qlikcloud.com', apiKey: '<access-token>', },})
await qlik.collections.updateCollection( 'string', { description: 'string', name: 'string' },)qlik collection update 'string'curl "https://{tenant}.{region}.qlikcloud.com/api/v1/collections/{collectionId}" \-X PUT \-H "Content-type: application/json" \-H "Authorization: Bearer <access_token>" \-d '{"name":"string","description":"string"}'Example Response
{ "id": "string", "full": true, "meta": { "items": { "data": [ { "id": "string", "meta": { "tags": [ { "id": "string", "name": "string" } ], "actions": [ "string" ], "collections": [ { "id": "string", "name": "string" } ], "isFavorited": true }, "name": "string", "links": { "open": { "href": "string" }, "self": { "href": "string" }, "qvPlugin": { "href": "string" }, "thumbnail": { "href": "string" }, "collections": { "href": "string" } }, "actions": [ "string" ], "ownerId": "string", "spaceId": "string", "tenantId": "string", "createdAt": "2018-10-30T07:06:22Z", "creatorId": "string", "itemViews": { "week": [ { "start": "2018-10-30T07:06:22Z", "total": 42, "unique": 42 } ], "total": 42, "trend": -4.2, "unique": 42, "usedBy": 42 }, "updatedAt": "2018-10-30T07:06:22Z", "updaterId": "string", "resourceId": "string", "description": "string", "isFavorited": true, "thumbnailId": "string", "resourceLink": "string", "resourceSize": { "appFile": 42, "appMemory": 42 }, "resourceType": "app", "collectionIds": [ "string" ], "resourceSubType": "string", "resourceCreatedAt": "2018-10-30T07:06:22Z", "resourceUpdatedAt": "2018-10-30T07:06:22Z", "resourceAttributes": {}, "resourceReloadStatus": "string", "resourceReloadEndTime": "2018-10-30T07:06:22Z", "resourceCustomAttributes": {} } ], "links": { "next": { "href": "string" }, "prev": { "href": "string" }, "self": { "href": "string" }, "collection": { "href": "string" } } } }, "name": "string", "type": "private", "links": { "self": { "href": "string" }, "items": { "href": "string" } }, "tenantId": "string", "createdAt": "2018-10-30T07:06:22Z", "creatorId": "string", "itemCount": 42, "updatedAt": "2018-10-30T07:06:22Z", "updaterId": "string", "description": "string"}Deletes a collection and removes all items from the collection.
Facts
| Rate limit | Tier 2 (100 requests per minute) |
Path Parameters
- collectionId stringRequired
The collection's unique identifier.
Responses
204
No Content response.
401
Unauthorized response.
- application/json object
application/json properties
- errors array of objects
errors properties
- code string
Code is a unique identifier for this error class.
- meta object
meta properties
- fault boolean
Is the error a server-side fault?
- explain object
Further explanation of the error
- timeout boolean
Is the error a timeout?
- temporary boolean
Is the error temporary?
-
- title string
Title is the name of this class of errors.
- detail string
Detail is a human-readable explanation specific to this occurrence of the problem.
-
-
404
Not Found response.
- application/json object
application/json properties
- errors array of objects
errors properties
- code string
Code is a unique identifier for this error class.
- meta object
meta properties
- fault boolean
Is the error a server-side fault?
- explain object
Further explanation of the error
- timeout boolean
Is the error a timeout?
- temporary boolean
Is the error temporary?
-
- title string
Title is the name of this class of errors.
- detail string
Detail is a human-readable explanation specific to this occurrence of the problem.
-
-
500
Internal Server Error response.
- application/json object
application/json properties
- errors array of objects
errors properties
- code string
Code is a unique identifier for this error class.
- meta object
meta properties
- fault boolean
Is the error a server-side fault?
- explain object
Further explanation of the error
- timeout boolean
Is the error a timeout?
- temporary boolean
Is the error temporary?
-
- title string
Title is the name of this class of errors.
- detail string
Detail is a human-readable explanation specific to this occurrence of the problem.
-
-
import { createQlikApi } from '@qlik/api'
const qlik = createQlikApi({ hostConfig: { host: 'https://{tenant}.{region}.qlikcloud.com', apiKey: '<access-token>', },})
await qlik.collections.deleteCollection('string')qlik collection rm 'string'curl "https://{tenant}.{region}.qlikcloud.com/api/v1/collections/{collectionId}" \-X DELETE \-H "Authorization: Bearer <access_token>"Retrieves items from a collection that the user has access to.
Facts
| Rate limit | Tier 1 (1000 requests per minute) |
Query Parameters
- limit integer
The maximum number of resources to return for a request. The limit must be an integer between 1 and 100 (inclusive).
- name string
The case-insensitive string used to search for a resource by name.
- next string
The cursor to the next page of resources. Provide either the next or prev cursor, but not both.
- prev string
The cursor to the previous page of resources. Provide either the next or prev cursor, but not both.
- query string
The case-insensitive string used to search for a resource by name or description.
- resourceId string
The 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.
- resourceLink string
The 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.
- resourceType string
The case-sensitive string used to search for an item by resourceType.
Can be one of: "app""qlikview""qvapp""genericlink""sharingservicetask""note""dataasset""dataset""automation""automl-experiment""automl-deployment""assistant""dataproduct""dataqualityrule""glossary""knowledgebase""script""semantictype""page"
- sort string
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.
Can be one of: "+createdAt""-createdAt""+name""-name""+updatedAt""-updatedAt"
- spaceId string
The space's unique identifier (supports 'personal' as spaceId).
- shared boolean Deprecated
Whether or not to return items in a shared space.
- noActions boolean
If 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).
Path Parameters
- collectionId stringRequired
The collection's unique identifier. (This query also supports 'favorites' as the collectionID).
Responses
200
OK response.
- application/json object
ListCollectionItemsResponseBody result type
application/json properties
- data array of objectsRequired
An item.
data properties
- id stringRequired
The item's unique identifier.
- meta objectRequired
Item metadata and computed fields.
meta properties
- tags array of objectsRequired
An array of tags that the item is part of.
tags properties
- id stringRequired
The ID of the tag/collection.
- name stringRequired
The name of the tag/collection.
-
- actions array of stringsRequired
The actions that the user can perform on the item.
- collections array of objectsRequired
An array of collections that the item is part of.
collections properties
- id stringRequired
The ID of the tag/collection.
- name stringRequired
The name of the tag/collection.
-
- isFavorited booleanRequired
The flag that indicates if item is in the user's favorites collection.
-
- name stringRequired
- links objectRequired
links properties
- open object
open properties
- href string
-
- self object
self properties
- href string
-
- qvPlugin object
qvPlugin properties
- href string
-
- thumbnail object
thumbnail properties
- href string
-
- collections object
collections properties
- href string
-
-
- actions array of stringsRequired
The actions that the user can perform on the item.
- ownerId string
The ID of the user who owns the item.
- spaceId string
The space's unique identifier.
- tenantId stringRequired
The ID of the tenant that owns the item. This is populated using the JWT.
- createdAt stringRequired
The RFC3339 datetime when the item was created.
- creatorId string
The ID of the user who created the item. This is only populated if the JWT contains a userId.
- itemViews object
itemViews properties
- week array of objects
week properties
- start string
The RFC3339 datetime representing the start of the referenced week.
- total integer
Total number of views the resource got during the referenced week.
- unique integer
Number of unique users who viewed the resource during the referenced week.
-
- total integer
Total number of views the resource got during the last 28 days.
- trend number
Trend in views over the last 4 weeks. The trend value is a float number representing a linear regression slope (the x-coefficient) calculated from the weekly unique users views in the preceding 4 weeks.
- unique integer
Number of unique users who viewed the resource during the last 28 days.
- usedBy integer
Number of apps this dataset is used in (datasets only).
-
- updatedAt stringRequired
The RFC3339 datetime when the item was last updated.
- updaterId string
ID of the user who last updated the item. This is only populated if the JWT contains a userId.
- resourceId string
The 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.
- description string
- isFavorited booleanRequired
The flag that indicates if item is in the user's favorites collection.
- thumbnailId string
The item thumbnail's unique identifier. This is optional for internal resources.
- resourceLink string
The 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.
- resourceSize object
resourceSize properties
- appFile number
Size of the app on disk in bytes.
- appMemory number
Size of the app in memory in bytes.
-
- resourceType stringRequired
The case-sensitive string defining the item's type.
Can be one of: "app""qlikview""qvapp""genericlink""sharingservicetask""note""dataasset""dataset""automation""automl-experiment""automl-deployment""assistant""dataproduct""dataqualityrule""glossary""knowledgebase""script""semantictype""page"
- collectionIds array of stringsRequired
The ID of the collections that the item has been added to.
- resourceSubType string
Optional field defining the item's subtype, if any.
- resourceCreatedAt stringRequired
The RFC3339 datetime when the resource that the item references was created.
- resourceUpdatedAt stringRequired
The RFC3339 datetime when the resource that the item references was last updated.
- resourceAttributes objectRequired
- resourceReloadStatus string
If the resource last reload was successful or not.
- resourceReloadEndTime string
The RFC3339 datetime when the resource last reload ended.
- resourceCustomAttributes objectRequired
-
-
400
Bad Request response.
- application/json object
application/json properties
- errors array of objects
errors properties
- code string
Code is a unique identifier for this error class.
- meta object
meta properties
- fault boolean
Is the error a server-side fault?
- explain object
Further explanation of the error
- timeout boolean
Is the error a timeout?
- temporary boolean
Is the error temporary?
-
- title string
Title is the name of this class of errors.
- detail string
Detail is a human-readable explanation specific to this occurrence of the problem.
-
-
401
Unauthorized response.
- application/json object
application/json properties
- errors array of objects
errors properties
- code string
Code is a unique identifier for this error class.
- meta object
meta properties
- fault boolean
Is the error a server-side fault?
- explain object
Further explanation of the error
- timeout boolean
Is the error a timeout?
- temporary boolean
Is the error temporary?
-
- title string
Title is the name of this class of errors.
- detail string
Detail is a human-readable explanation specific to this occurrence of the problem.
-
-
404
Not Found response.
- application/json object
application/json properties
- errors array of objects
errors properties
- code string
Code is a unique identifier for this error class.
- meta object
meta properties
- fault boolean
Is the error a server-side fault?
- explain object
Further explanation of the error
- timeout boolean
Is the error a timeout?
- temporary boolean
Is the error temporary?
-
- title string
Title is the name of this class of errors.
- detail string
Detail is a human-readable explanation specific to this occurrence of the problem.
-
-
500
Internal Server Error response.
- application/json object
application/json properties
- errors array of objects
errors properties
- code string
Code is a unique identifier for this error class.
- meta object
meta properties
- fault boolean
Is the error a server-side fault?
- explain object
Further explanation of the error
- timeout boolean
Is the error a timeout?
- temporary boolean
Is the error temporary?
-
- title string
Title is the name of this class of errors.
- detail string
Detail is a human-readable explanation specific to this occurrence of the problem.
-
-
import { createQlikApi } from '@qlik/api'
const qlik = createQlikApi({ hostConfig: { host: 'https://{tenant}.{region}.qlikcloud.com', apiKey: '<access-token>', },})
await qlik.collections.getCollectionItems( 'string', {},)qlik collection item ls \ --collectionId 'string'curl "https://{tenant}.{region}.qlikcloud.com/api/v1/collections/{collectionId}/items" \-H "Authorization: Bearer <access_token>"Example Response
{ "data": [ { "id": "string", "meta": { "tags": [ { "id": "string", "name": "string" } ], "actions": [ "string" ], "collections": [ { "id": "string", "name": "string" } ], "isFavorited": true }, "name": "string", "links": { "open": { "href": "string" }, "self": { "href": "string" }, "qvPlugin": { "href": "string" }, "thumbnail": { "href": "string" }, "collections": { "href": "string" } }, "actions": [ "string" ], "ownerId": "string", "spaceId": "string", "tenantId": "string", "createdAt": "2018-10-30T07:06:22Z", "creatorId": "string", "itemViews": { "week": [ { "start": "2018-10-30T07:06:22Z", "total": 42, "unique": 42 } ], "total": 42, "trend": -4.2, "unique": 42, "usedBy": 42 }, "updatedAt": "2018-10-30T07:06:22Z", "updaterId": "string", "resourceId": "string", "description": "string", "isFavorited": true, "thumbnailId": "string", "resourceLink": "string", "resourceSize": { "appFile": 42, "appMemory": 42 }, "resourceType": "app", "collectionIds": [ "string" ], "resourceSubType": "string", "resourceCreatedAt": "2018-10-30T07:06:22Z", "resourceUpdatedAt": "2018-10-30T07:06:22Z", "resourceAttributes": {}, "resourceReloadStatus": "string", "resourceReloadEndTime": "2018-10-30T07:06:22Z", "resourceCustomAttributes": {} } ]}Adds an item to a collection and returns the item.
Facts
| Rate limit | Tier 2 (100 requests per minute) |
Path Parameters
- collectionId stringRequired
The collection's unique identifier.
Request Body
Required- application/json object
application/json properties
- id stringRequired
The item's unique identifier.
-
Responses
201
Created response.
- application/json object
An item.
application/json properties
- id stringRequired
The item's unique identifier.
- meta objectRequired
Item metadata and computed fields.
meta properties
- tags array of objectsRequired
An array of tags that the item is part of.
tags properties
- id stringRequired
The ID of the tag/collection.
- name stringRequired
The name of the tag/collection.
-
- actions array of stringsRequired
The actions that the user can perform on the item.
- collections array of objectsRequired
An array of collections that the item is part of.
collections properties
- id stringRequired
The ID of the tag/collection.
- name stringRequired
The name of the tag/collection.
-
- isFavorited booleanRequired
The flag that indicates if item is in the user's favorites collection.
-
- name stringRequired
- links objectRequired
links properties
- open object
open properties
- href string
-
- self object
self properties
- href string
-
- qvPlugin object
qvPlugin properties
- href string
-
- thumbnail object
thumbnail properties
- href string
-
- collections object
collections properties
- href string
-
-
- actions array of stringsRequired
The actions that the user can perform on the item.
- ownerId string
The ID of the user who owns the item.
- spaceId string
The space's unique identifier.
- tenantId stringRequired
The ID of the tenant that owns the item. This is populated using the JWT.
- createdAt stringRequired
The RFC3339 datetime when the item was created.
- creatorId string
The ID of the user who created the item. This is only populated if the JWT contains a userId.
- itemViews object
itemViews properties
- week array of objects
week properties
- start string
The RFC3339 datetime representing the start of the referenced week.
- total integer
Total number of views the resource got during the referenced week.
- unique integer
Number of unique users who viewed the resource during the referenced week.
-
- total integer
Total number of views the resource got during the last 28 days.
- trend number
Trend in views over the last 4 weeks. The trend value is a float number representing a linear regression slope (the x-coefficient) calculated from the weekly unique users views in the preceding 4 weeks.
- unique integer
Number of unique users who viewed the resource during the last 28 days.
- usedBy integer
Number of apps this dataset is used in (datasets only).
-
- updatedAt stringRequired
The RFC3339 datetime when the item was last updated.
- updaterId string
ID of the user who last updated the item. This is only populated if the JWT contains a userId.
- resourceId string
The 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.
- description string
- isFavorited booleanRequired
The flag that indicates if item is in the user's favorites collection.
- thumbnailId string
The item thumbnail's unique identifier. This is optional for internal resources.
- resourceLink string
The 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.
- resourceSize object
resourceSize properties
- appFile number
Size of the app on disk in bytes.
- appMemory number
Size of the app in memory in bytes.
-
- resourceType stringRequired
The case-sensitive string defining the item's type.
Can be one of: "app""qlikview""qvapp""genericlink""sharingservicetask""note""dataasset""dataset""automation""automl-experiment""automl-deployment""assistant""dataproduct""dataqualityrule""glossary""knowledgebase""script""semantictype""page"
- collectionIds array of stringsRequired
The ID of the collections that the item has been added to.
- resourceSubType string
Optional field defining the item's subtype, if any.
- resourceCreatedAt stringRequired
The RFC3339 datetime when the resource that the item references was created.
- resourceUpdatedAt stringRequired
The RFC3339 datetime when the resource that the item references was last updated.
- resourceAttributes objectRequired
- resourceReloadStatus string
If the resource last reload was successful or not.
- resourceReloadEndTime string
The RFC3339 datetime when the resource last reload ended.
- resourceCustomAttributes objectRequired
-
400
Bad Request response.
- application/json object
application/json properties
- errors array of objects
errors properties
- code string
Code is a unique identifier for this error class.
- meta object
meta properties
- fault boolean
Is the error a server-side fault?
- explain object
Further explanation of the error
- timeout boolean
Is the error a timeout?
- temporary boolean
Is the error temporary?
-
- title string
Title is the name of this class of errors.
- detail string
Detail is a human-readable explanation specific to this occurrence of the problem.
-
-
401
Unauthorized response.
- application/json object
application/json properties
- errors array of objects
errors properties
- code string
Code is a unique identifier for this error class.
- meta object
meta properties
- fault boolean
Is the error a server-side fault?
- explain object
Further explanation of the error
- timeout boolean
Is the error a timeout?
- temporary boolean
Is the error temporary?
-
- title string
Title is the name of this class of errors.
- detail string
Detail is a human-readable explanation specific to this occurrence of the problem.
-
-
403
Forbidden response.
- application/json object
application/json properties
- errors array of objects
errors properties
- code string
Code is a unique identifier for this error class.
- meta object
meta properties
- fault boolean
Is the error a server-side fault?
- explain object
Further explanation of the error
- timeout boolean
Is the error a timeout?
- temporary boolean
Is the error temporary?
-
- title string
Title is the name of this class of errors.
- detail string
Detail is a human-readable explanation specific to this occurrence of the problem.
-
-
404
Not Found response.
- application/json object
application/json properties
- errors array of objects
errors properties
- code string
Code is a unique identifier for this error class.
- meta object
meta properties
- fault boolean
Is the error a server-side fault?
- explain object
Further explanation of the error
- timeout boolean
Is the error a timeout?
- temporary boolean
Is the error temporary?
-
- title string
Title is the name of this class of errors.
- detail string
Detail is a human-readable explanation specific to this occurrence of the problem.
-
-
409
Conflict response.
- application/json object
application/json properties
- errors array of objects
errors properties
- code string
Code is a unique identifier for this error class.
- meta object
meta properties
- fault boolean
Is the error a server-side fault?
- explain object
Further explanation of the error
- timeout boolean
Is the error a timeout?
- temporary boolean
Is the error temporary?
-
- title string
Title is the name of this class of errors.
- detail string
Detail is a human-readable explanation specific to this occurrence of the problem.
-
-
500
Internal Server Error response.
- application/json object
application/json properties
- errors array of objects
errors properties
- code string
Code is a unique identifier for this error class.
- meta object
meta properties
- fault boolean
Is the error a server-side fault?
- explain object
Further explanation of the error
- timeout boolean
Is the error a timeout?
- temporary boolean
Is the error temporary?
-
- title string
Title is the name of this class of errors.
- detail string
Detail is a human-readable explanation specific to this occurrence of the problem.
-
-
import { createQlikApi } from '@qlik/api'
const qlik = createQlikApi({ hostConfig: { host: 'https://{tenant}.{region}.qlikcloud.com', apiKey: '<access-token>', },})
await qlik.collections.addCollectionItem( 'string', { id: 'string' },)qlik collection item create \ --collectionId 'string' \ --id 'string'curl "https://{tenant}.{region}.qlikcloud.com/api/v1/collections/{collectionId}/items" \-X POST \-H "Content-type: application/json" \-H "Authorization: Bearer <access_token>" \-d '{"id":"string"}'Example Response
{ "id": "string", "meta": { "tags": [ { "id": "string", "name": "string" } ], "actions": [ "string" ], "collections": [ { "id": "string", "name": "string" } ], "isFavorited": true }, "name": "string", "links": { "open": { "href": "string" }, "self": { "href": "string" }, "qvPlugin": { "href": "string" }, "thumbnail": { "href": "string" }, "collections": { "href": "string" } }, "actions": [ "string" ], "ownerId": "string", "spaceId": "string", "tenantId": "string", "createdAt": "2018-10-30T07:06:22Z", "creatorId": "string", "itemViews": { "week": [ { "start": "2018-10-30T07:06:22Z", "total": 42, "unique": 42 } ], "total": 42, "trend": -4.2, "unique": 42, "usedBy": 42 }, "updatedAt": "2018-10-30T07:06:22Z", "updaterId": "string", "resourceId": "string", "description": "string", "isFavorited": true, "thumbnailId": "string", "resourceLink": "string", "resourceSize": { "appFile": 42, "appMemory": 42 }, "resourceType": "app", "collectionIds": [ "string" ], "resourceSubType": "string", "resourceCreatedAt": "2018-10-30T07:06:22Z", "resourceUpdatedAt": "2018-10-30T07:06:22Z", "resourceAttributes": {}, "resourceReloadStatus": "string", "resourceReloadEndTime": "2018-10-30T07:06:22Z", "resourceCustomAttributes": {}}Finds and returns an item in a specific collection. See GET /items/{id}.
Facts
| Rate limit | Tier 1 (1000 requests per minute) |
Path Parameters
- collectionId stringRequired
The collection's unique identifier.
- itemId stringRequired
The item's unique identifier.
Responses
200
OK response.
- application/json object
An item.
application/json properties
- id stringRequired
The item's unique identifier.
- meta objectRequired
Item metadata and computed fields.
meta properties
- tags array of objectsRequired
An array of tags that the item is part of.
tags properties
- id stringRequired
The ID of the tag/collection.
- name stringRequired
The name of the tag/collection.
-
- actions array of stringsRequired
The actions that the user can perform on the item.
- collections array of objectsRequired
An array of collections that the item is part of.
collections properties
- id stringRequired
The ID of the tag/collection.
- name stringRequired
The name of the tag/collection.
-
- isFavorited booleanRequired
The flag that indicates if item is in the user's favorites collection.
-
- name stringRequired
- links objectRequired
links properties
- open object
open properties
- href string
-
- self object
self properties
- href string
-
- qvPlugin object
qvPlugin properties
- href string
-
- thumbnail object
thumbnail properties
- href string
-
- collections object
collections properties
- href string
-
-
- actions array of stringsRequired
The actions that the user can perform on the item.
- ownerId string
The ID of the user who owns the item.
- spaceId string
The space's unique identifier.
- tenantId stringRequired
The ID of the tenant that owns the item. This is populated using the JWT.
- createdAt stringRequired
The RFC3339 datetime when the item was created.
- creatorId string
The ID of the user who created the item. This is only populated if the JWT contains a userId.
- itemViews object
itemViews properties
- week array of objects
week properties
- start string
The RFC3339 datetime representing the start of the referenced week.
- total integer
Total number of views the resource got during the referenced week.
- unique integer
Number of unique users who viewed the resource during the referenced week.
-
- total integer
Total number of views the resource got during the last 28 days.
- trend number
Trend in views over the last 4 weeks. The trend value is a float number representing a linear regression slope (the x-coefficient) calculated from the weekly unique users views in the preceding 4 weeks.
- unique integer
Number of unique users who viewed the resource during the last 28 days.
- usedBy integer
Number of apps this dataset is used in (datasets only).
-
- updatedAt stringRequired
The RFC3339 datetime when the item was last updated.
- updaterId string
ID of the user who last updated the item. This is only populated if the JWT contains a userId.
- resourceId string
The 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.
- description string
- isFavorited booleanRequired
The flag that indicates if item is in the user's favorites collection.
- thumbnailId string
The item thumbnail's unique identifier. This is optional for internal resources.
- resourceLink string
The 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.
- resourceSize object
resourceSize properties
- appFile number
Size of the app on disk in bytes.
- appMemory number
Size of the app in memory in bytes.
-
- resourceType stringRequired
The case-sensitive string defining the item's type.
Can be one of: "app""qlikview""qvapp""genericlink""sharingservicetask""note""dataasset""dataset""automation""automl-experiment""automl-deployment""assistant""dataproduct""dataqualityrule""glossary""knowledgebase""script""semantictype""page"
- collectionIds array of stringsRequired
The ID of the collections that the item has been added to.
- resourceSubType string
Optional field defining the item's subtype, if any.
- resourceCreatedAt stringRequired
The RFC3339 datetime when the resource that the item references was created.
- resourceUpdatedAt stringRequired
The RFC3339 datetime when the resource that the item references was last updated.
- resourceAttributes objectRequired
- resourceReloadStatus string
If the resource last reload was successful or not.
- resourceReloadEndTime string
The RFC3339 datetime when the resource last reload ended.
- resourceCustomAttributes objectRequired
-
400
Bad Request response.
- application/json object
application/json properties
- errors array of objects
errors properties
- code string
Code is a unique identifier for this error class.
- meta object
meta properties
- fault boolean
Is the error a server-side fault?
- explain object
Further explanation of the error
- timeout boolean
Is the error a timeout?
- temporary boolean
Is the error temporary?
-
- title string
Title is the name of this class of errors.
- detail string
Detail is a human-readable explanation specific to this occurrence of the problem.
-
-
401
Unauthorized response.
- application/json object
application/json properties
- errors array of objects
errors properties
- code string
Code is a unique identifier for this error class.
- meta object
meta properties
- fault boolean
Is the error a server-side fault?
- explain object
Further explanation of the error
- timeout boolean
Is the error a timeout?
- temporary boolean
Is the error temporary?
-
- title string
Title is the name of this class of errors.
- detail string
Detail is a human-readable explanation specific to this occurrence of the problem.
-
-
404
Not Found response.
- application/json object
application/json properties
- errors array of objects
errors properties
- code string
Code is a unique identifier for this error class.
- meta object
meta properties
- fault boolean
Is the error a server-side fault?
- explain object
Further explanation of the error
- timeout boolean
Is the error a timeout?
- temporary boolean
Is the error temporary?
-
- title string
Title is the name of this class of errors.
- detail string
Detail is a human-readable explanation specific to this occurrence of the problem.
-
-
500
Internal Server Error response.
- application/json object
application/json properties
- errors array of objects
errors properties
- code string
Code is a unique identifier for this error class.
- meta object
meta properties
- fault boolean
Is the error a server-side fault?
- explain object
Further explanation of the error
- timeout boolean
Is the error a timeout?
- temporary boolean
Is the error temporary?
-
- title string
Title is the name of this class of errors.
- detail string
Detail is a human-readable explanation specific to this occurrence of the problem.
-
-
import { createQlikApi } from '@qlik/api'
const qlik = createQlikApi({ hostConfig: { host: 'https://{tenant}.{region}.qlikcloud.com', apiKey: '<access-token>', },})
await qlik.collections.getCollectionItem( 'string', 'string',)qlik collection item get 'string' \ --collectionId 'string'curl "https://{tenant}.{region}.qlikcloud.com/api/v1/collections/{collectionId}/items/{itemId}" \-H "Authorization: Bearer <access_token>"Example Response
{ "id": "string", "meta": { "tags": [ { "id": "string", "name": "string" } ], "actions": [ "string" ], "collections": [ { "id": "string", "name": "string" } ], "isFavorited": true }, "name": "string", "links": { "open": { "href": "string" }, "self": { "href": "string" }, "qvPlugin": { "href": "string" }, "thumbnail": { "href": "string" }, "collections": { "href": "string" } }, "actions": [ "string" ], "ownerId": "string", "spaceId": "string", "tenantId": "string", "createdAt": "2018-10-30T07:06:22Z", "creatorId": "string", "itemViews": { "week": [ { "start": "2018-10-30T07:06:22Z", "total": 42, "unique": 42 } ], "total": 42, "trend": -4.2, "unique": 42, "usedBy": 42 }, "updatedAt": "2018-10-30T07:06:22Z", "updaterId": "string", "resourceId": "string", "description": "string", "isFavorited": true, "thumbnailId": "string", "resourceLink": "string", "resourceSize": { "appFile": 42, "appMemory": 42 }, "resourceType": "app", "collectionIds": [ "string" ], "resourceSubType": "string", "resourceCreatedAt": "2018-10-30T07:06:22Z", "resourceUpdatedAt": "2018-10-30T07:06:22Z", "resourceAttributes": {}, "resourceReloadStatus": "string", "resourceReloadEndTime": "2018-10-30T07:06:22Z", "resourceCustomAttributes": {}}Removes an item from a collection.
Facts
| Rate limit | Tier 2 (100 requests per minute) |
Path Parameters
- collectionId stringRequired
The collection's unique identifier.
- itemId stringRequired
The item's unique identifier.
Responses
204
No Content response.
400
Bad Request response.
- application/json object
application/json properties
- errors array of objects
errors properties
- code string
Code is a unique identifier for this error class.
- meta object
meta properties
- fault boolean
Is the error a server-side fault?
- explain object
Further explanation of the error
- timeout boolean
Is the error a timeout?
- temporary boolean
Is the error temporary?
-
- title string
Title is the name of this class of errors.
- detail string
Detail is a human-readable explanation specific to this occurrence of the problem.
-
-
401
Unauthorized response.
- application/json object
application/json properties
- errors array of objects
errors properties
- code string
Code is a unique identifier for this error class.
- meta object
meta properties
- fault boolean
Is the error a server-side fault?
- explain object
Further explanation of the error
- timeout boolean
Is the error a timeout?
- temporary boolean
Is the error temporary?
-
- title string
Title is the name of this class of errors.
- detail string
Detail is a human-readable explanation specific to this occurrence of the problem.
-
-
404
Not Found response.
- application/json object
application/json properties
- errors array of objects
errors properties
- code string
Code is a unique identifier for this error class.
- meta object
meta properties
- fault boolean
Is the error a server-side fault?
- explain object
Further explanation of the error
- timeout boolean
Is the error a timeout?
- temporary boolean
Is the error temporary?
-
- title string
Title is the name of this class of errors.
- detail string
Detail is a human-readable explanation specific to this occurrence of the problem.
-
-
500
Internal Server Error response.
- application/json object
application/json properties
- errors array of objects
errors properties
- code string
Code is a unique identifier for this error class.
- meta object
meta properties
- fault boolean
Is the error a server-side fault?
- explain object
Further explanation of the error
- timeout boolean
Is the error a timeout?
- temporary boolean
Is the error temporary?
-
- title string
Title is the name of this class of errors.
- detail string
Detail is a human-readable explanation specific to this occurrence of the problem.
-
-
import { createQlikApi } from '@qlik/api'
const qlik = createQlikApi({ hostConfig: { host: 'https://{tenant}.{region}.qlikcloud.com', apiKey: '<access-token>', },})
await qlik.collections.deleteCollectionItem( 'string', 'string',)qlik collection item rm 'string' \ --collectionId 'string'curl "https://{tenant}.{region}.qlikcloud.com/api/v1/collections/{collectionId}/items/{itemId}" \-X DELETE \-H "Authorization: Bearer <access_token>"Lists the user's favorites collection.
Facts
| Rate limit | Tier 1 (1000 requests per minute) |
Responses
302
Found response.
- application/json object
401
Unauthorized response.
- application/json object
application/json properties
- errors array of objects
errors properties
- code string
Code is a unique identifier for this error class.
- meta object
meta properties
- fault boolean
Is the error a server-side fault?
- explain object
Further explanation of the error
- timeout boolean
Is the error a timeout?
- temporary boolean
Is the error temporary?
-
- title string
Title is the name of this class of errors.
- detail string
Detail is a human-readable explanation specific to this occurrence of the problem.
-
-
404
Not Found response.
- application/json object
application/json properties
- errors array of objects
errors properties
- code string
Code is a unique identifier for this error class.
- meta object
meta properties
- fault boolean
Is the error a server-side fault?
- explain object
Further explanation of the error
- timeout boolean
Is the error a timeout?
- temporary boolean
Is the error temporary?
-
- title string
Title is the name of this class of errors.
- detail string
Detail is a human-readable explanation specific to this occurrence of the problem.
-
-
500
Internal Server Error response.
- application/json object
application/json properties
- errors array of objects
errors properties
- code string
Code is a unique identifier for this error class.
- meta object
meta properties
- fault boolean
Is the error a server-side fault?
- explain object
Further explanation of the error
- timeout boolean
Is the error a timeout?
- temporary boolean
Is the error temporary?
-
- title string
Title is the name of this class of errors.
- detail string
Detail is a human-readable explanation specific to this occurrence of the problem.
-
-
import { createQlikApi } from '@qlik/api'
const qlik = createQlikApi({ hostConfig: { host: 'https://{tenant}.{region}.qlikcloud.com', apiKey: '<access-token>', },})
await qlik.collections.getFavoritesCollection()qlik collection favoritescurl "https://{tenant}.{region}.qlikcloud.com/api/v1/collections/favorites" \-H "Authorization: Bearer <access_token>"