Skip to content

Container Item Resource

cjsaylor edited this page Apr 12, 2012 · 6 revisions

Controls contents of containers.

Index

Lists all items of an account, or by container. Note: a limit of 150 results is in place for the time being. Pagination is in the works to retrieve more data.

/api/container_items
  • Method: GET
  • Source: ContainerItems.index
  • Optional Parameters:
    • slug - Container slug to list items.

Add

Adds a new container item to a container by SLUG.

/api/container_items/add/<SLUG>
  • Method: POST
  • Source: ContainerItems.add
  • Required Parameters:
    • body - Description or name of the item.
    • quantity - Amount of item being added.

Edit

Edits a container item by UUID

/api/container_items/edit/<UUID>
  • Method: POST
  • Source: ContainerItems.edit
  • Optional Parameters:
    • body - Description or name of the item.
    • quantity - Amount of item being edited.

Delete

Deletes a container item by UUID

/api/container_items/delete/<UUID>
Clone this wiki locally