POST api/backoffice/v{version}/items

Request Information

URI Parameters

NameDescriptionTypeAdditional information
version

string

None.

Body Parameters

Item
NameDescriptionTypeAdditional information
moveit_id

integer

None.

quantity

integer

None.

workorder_id

integer

None.

sub_unit_type

string

None.

sub_quantity

integer

None.

description

string

None.

weight

integer

None.

id

integer

None.

unit_type

string

None.

reference

string

None.

status

ItemStatus

None.

Request Formats

application/json, text/json

Sample:
{
  "moveit_id": 1,
  "quantity": 2,
  "workorder_id": 3,
  "sub_unit_type": "sample string 4",
  "sub_quantity": 5,
  "description": "sample string 6",
  "weight": 7,
  "id": 8,
  "unit_type": "sample string 9",
  "reference": "sample string 10",
  "status": 0
}

text/html

Sample:
{"moveit_id":1,"quantity":2,"workorder_id":3,"sub_unit_type":"sample string 4","sub_quantity":5,"description":"sample string 6","weight":7,"id":8,"unit_type":"sample string 9","reference":"sample string 10","status":0}

application/xml, text/xml

Sample:
<Item xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/DispatchITV2.Models.Data">
  <description>sample string 6</description>
  <id>8</id>
  <moveit_id>1</moveit_id>
  <quantity>2</quantity>
  <reference>sample string 10</reference>
  <status>None</status>
  <sub_quantity>5</sub_quantity>
  <sub_unit_type>sample string 4</sub_unit_type>
  <unit_type>sample string 9</unit_type>
  <weight>7</weight>
  <workorder_id>3</workorder_id>
</Item>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'Item'.

Response Information

Resource Description

Object

None.

Response Formats

application/json, text/json, text/html

Sample:
{}

application/xml, text/xml

Sample:
<z:anyType xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns:z="http://schemas.microsoft.com/2003/10/Serialization/" />