-
Notifications
You must be signed in to change notification settings - Fork 3
Item List API
Note: This API is under development and may change without notice.
- List all Item Lists
- Get an Item List
- Update an Item List
- Delete an Item List
- Create a new Item List
- Create a new version of an existing Item List
GET /api/projects/:pid/itemlists
Returns an array of all the Item Lists in the specified Project. Only the latest version of each Item List is returned.
GET /api/projects/:pid/itemlists/:id
Retrieves a specific Item List.
{
ItemListID: 1, // The Item List's unique ID
Name: 'My list', // The Item List's name
Version: 1, // The Item List's version number,
Status: 3 // The Item List's status (1 = Draft, 3 = Active)
}PUT /api/projects/:pid/itemlists/:id
Updates the properties of an existing Item List
{
Name: 'My list', // The name of the Item List
VariesByAttributeID: 99 // The Target AttributeID that defines the categories that this Item List varies by
}Note: Once an Item List has been defined as variable and activated for the first time, it is not possible to switch it between normal and variable by changing the VariesByAttributeID.
DELETE /api/projects/:pid/itemlists/:id
Deletes the specified Item List.
Note: It is not possible to delete active Item Lists.
POST /api/projects/:pid/itemlists
Creates an entirely new Item List.
{
Name: 'My item list', // The name of the Item List
VariesByAttributeID: null // The Target Attribute ID that this Item List will vary by, or null otherwise
}POST /api/projects/:pid/itemlists/:id?[empty=true]
Creates a new version of an existing Item List, optionally copying the contents.
empty - If true then the new version will be created empty. If false then the contents of the original Item List will be copied into the new version.
GET /api/projects/:pid/itemlists/:lid/items
-
Item.Name- A wildcarded string that the Item's name must match. -
ItemAttribute.AttributeName- A wildcarded string that the Item'sAttributeNameattribute must match.
Eg:
GET /api/projects/1/itemlists/2/items?ItemAttribute.Manufacturer=Acme
GET /api/projects/:pid/itemlists/:lid/items/:id
PUT /api/projects/:pid/itemlists/:lid/items/:id
POST /api/projects/:pid/itemlists/:lid/items
TODO
Note: It is not possible to modify the contents of active Item Lists.
DELETE /api/projects/:pid/itemlists/:lid/items/:id
Deletes an Item from an Item List.
Note: It is not possible to modify the contents of active Item Lists.