new module:api/ItemsApi(apiClient)
Constructs a new ItemsApi.
Parameters:
| Name | Type | Description |
|---|---|---|
apiClient |
module:ApiClient | Optional API client implementation to use, default to module:ApiClient#instance if unspecified. |
- Source:
Methods
getItem(projectId, itemId, oauth2client, credentials)
Returns a resource item by ID for any item within a given project. Resource items represent word documents, fusion design files, drawings, spreadsheets, etc.
Parameters:
| Name | Type | Description |
|---|---|---|
projectId |
String | the project id |
itemId |
String | the item id data is of type: {module:model/Item} |
oauth2client |
Object | oauth2client for the call |
credentials |
Object | credentials for the call |
- Source:
getItem2(projectId, itemId, opts, oauth2client, credentials)
Returns a resource item by ID for any item within a given project. Resource items represent word documents, fusion design files, drawings, spreadsheets, etc.
Parameters:
| Name | Type | Description | |||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
projectId |
String | the project id |
|||||||||
itemId |
String | the item id |
|||||||||
opts |
Object | Optional parameters Properties
|
|||||||||
oauth2client |
Object | oauth2client for the call |
|||||||||
credentials |
Object | credentials for the call |
- Source:
getItemParentFolder(projectId, itemId, oauth2client, credentials)
Returns the "parent" folder for the given item.
Parameters:
| Name | Type | Description |
|---|---|---|
projectId |
String | the project id |
itemId |
String | the item id data is of type: {module:model/Folder} |
oauth2client |
Object | oauth2client for the call |
credentials |
Object | credentials for the call |
- Source:
getItemParentFolder2(projectId, itemId, opts, oauth2client, credentials)
Returns the "parent" folder for the given item.
Parameters:
| Name | Type | Description | ||||||
|---|---|---|---|---|---|---|---|---|
projectId |
String | the project id |
||||||
itemId |
String | the item id |
||||||
opts |
Object | Optional parameters Properties
|
||||||
oauth2client |
Object | oauth2client for the call |
||||||
credentials |
Object | credentials for the call |
- Source:
getItemRefs(projectId, itemId, opts, opts['filter[*]<-modifier>', oauth2client, credentials)
Returns the resources (items, folders, and versions) which have a custom relationship with the given item_id. Custom relationships can be established between an item and other resources within the 'data' domain service (folders, items, and versions).
Parameters:
| Name | Type | Description | |||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
projectId |
String | the project id |
|||||||||||||||
itemId |
String | the item id |
|||||||||||||||
opts |
Object | Optional parameters Properties
|
|||||||||||||||
opts['filter[*]<-modifier>' |
Array.<*> | generic filter / <-modifier> is optional data is of type: {module:model/JsonApiCollection} |
|||||||||||||||
oauth2client |
Object | oauth2client for the call |
|||||||||||||||
credentials |
Object | credentials for the call |
- Source:
getItemRelationshipsLinks(projectId, itemId, opts, opts['filter[*]<-modifier>', oauth2client, credentials)
Returns the custom relationships that are associated to the given item_id. Custom relationships can be established between an item and other resources within the 'data' domain service (folders, items, and versions).
Parameters:
| Name | Type | Description | ||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
projectId |
String | the project id |
||||||||||||||||||
itemId |
String | the item id |
||||||||||||||||||
opts |
Object | Optional parameters Properties
|
||||||||||||||||||
opts['filter[*]<-modifier>' |
Array.<*> | generic filter / <-modifier> is optional data is of type: {module:model/Refs} |
||||||||||||||||||
oauth2client |
Object | oauth2client for the call |
||||||||||||||||||
credentials |
Object | credentials for the call |
- Source:
getItemRelationshipsRefs(projectId, itemId, opts, opts['filter[*]<-modifier>', oauth2client, credentials)
Returns the custom relationships that are associated to the given item_id. Custom relationships can be established between an item and other resources within the 'data' domain service (folders, items, and versions).
Parameters:
| Name | Type | Description | |||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
projectId |
String | the project id |
|||||||||||||||||||||
itemId |
String | the item id |
|||||||||||||||||||||
opts |
Object | Optional parameters Properties
|
|||||||||||||||||||||
opts['filter[*]<-modifier>' |
Array.<*> | generic filter / <-modifier> is optional data is of type: {module:model/Refs} |
|||||||||||||||||||||
oauth2client |
Object | oauth2client for the call |
|||||||||||||||||||||
credentials |
Object | credentials for the call |
- Source:
getItemTip(projectId, itemId, oauth2client, credentials)
Returns the "tip" version for the given item. Multiple versions of a resource item can be uploaded in a project. The tip version is the most recent one.
Parameters:
| Name | Type | Description |
|---|---|---|
projectId |
String | the project id |
itemId |
String | the item id data is of type: {module:model/Version} |
oauth2client |
Object | oauth2client for the call |
credentials |
Object | credentials for the call |
- Source:
getItemTip2(projectId, itemId, opts, oauth2client, credentials)
Returns the "tip" version for the given item. Multiple versions of a resource item can be uploaded in a project. The tip version is the most recent one.
Parameters:
| Name | Type | Description | ||||||
|---|---|---|---|---|---|---|---|---|
projectId |
String | the project id |
||||||
itemId |
String | the item id |
||||||
opts |
Object | Optional parameters Properties
|
||||||
oauth2client |
Object | oauth2client for the call |
||||||
credentials |
Object | credentials for the call |
- Source:
getItemVersions(projectId, itemId, opts, opts['filter[*]<-modifier>', oauth2client, credentials)
Returns versions for the given item. Multiple versions of a resource item can be uploaded in a project.
Parameters:
| Name | Type | Description | ||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
projectId |
String | the project id |
||||||||||||||||||
itemId |
String | the item id |
||||||||||||||||||
opts |
Object | Optional parameters Properties
|
||||||||||||||||||
opts['filter[*]<-modifier>' |
Array.<*> | generic filter / <-modifier> is optional |
||||||||||||||||||
opts.pageNumber |
Integer | specify the page number |
||||||||||||||||||
opts.pageLimit |
Integer | specify the maximal number of elements per page data is of type: {module:model/Versions} |
||||||||||||||||||
oauth2client |
Object | oauth2client for the call |
||||||||||||||||||
credentials |
Object | credentials for the call |
- Source:
patchItem(projectId, itemId, opts, body, oauth2client, credentials)
Updates the properties of the given item_id object.
Parameters:
| Name | Type | Description | ||||||
|---|---|---|---|---|---|---|---|---|
projectId |
String | the project id |
||||||
itemId |
String | the item id |
||||||
opts |
Object | Optional parameters Properties
|
||||||
body |
Object | describe the ref to be created |
||||||
oauth2client |
Object | oauth2client for the call |
||||||
credentials |
Object | credentials for the call |
- Source:
postItem(projectId, body, oauth2client, credentials)
Creates a new item in the 'data' domain service.
Parameters:
| Name | Type | Description |
|---|---|---|
projectId |
String | the project id |
body |
module:model/CreateItem | describe the item to be created data is of type: {module:model/ItemCreated} |
oauth2client |
Object | oauth2client for the call |
credentials |
Object | credentials for the call |
- Source:
postItem2(projectId, body, opts, oauth2client, credentials)
Creates a new item in the 'data' domain service.
Parameters:
| Name | Type | Description | |||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
projectId |
String | the project id |
|||||||||
body |
module:model/CreateItem | describe the item to be created |
|||||||||
opts |
Object | Optional parameters Properties
|
|||||||||
oauth2client |
Object | oauth2client for the call |
|||||||||
credentials |
Object | credentials for the call |
- Source:
postItemRelationshipsRef(projectId, itemId, body, oauth2client, credentials)
Creates a custom relationship between an item and another resource within the 'data' domain service (folder, item, or version).
Parameters:
| Name | Type | Description |
|---|---|---|
projectId |
String | the project id |
itemId |
String | the item id |
body |
module:model/CreateRef | describe the ref to be created |
oauth2client |
Object | oauth2client for the call |
credentials |
Object | credentials for the call |
- Source:
postItemRelationshipsRef2(projectId, itemId, opts, body, oauth2client, credentials)
Creates a custom relationship between an item and another resource within the 'data' domain service (folder, item, or version).
Parameters:
| Name | Type | Description | ||||||
|---|---|---|---|---|---|---|---|---|
projectId |
String | the project id |
||||||
itemId |
String | the item id |
||||||
opts |
Object | Optional parameters Properties
|
||||||
body |
module:model/CreateRef | describe the ref to be created |
||||||
oauth2client |
Object | oauth2client for the call |
||||||
credentials |
Object | credentials for the call |
- Source: