/api/v1/moves/{id}/boxes
POST
/api/v1/moves/{id}/boxes
const url = 'https://example.com/api/v1/moves/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/boxes';const options = { method: 'POST', headers: {'Content-Type': 'application/json'}, body: '{"containerId":"2489E9AD-2EE2-8E00-8EC9-32D5F69181C0","new":{"id":"2489E9AD-2EE2-8E00-8EC9-32D5F69181C0","prefix":"example","placeId":"2489E9AD-2EE2-8E00-8EC9-32D5F69181C0"},"destinationPlaceId":"2489E9AD-2EE2-8E00-8EC9-32D5F69181C0"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://example.com/api/v1/moves/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/boxes \ --header 'Content-Type: application/json' \ --data '{ "containerId": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "new": { "id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "prefix": "example", "placeId": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0" }, "destinationPlaceId": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0" }'Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”id
required
string format: uuid
Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
containerId
string format: uuid
new
object
id
string format: uuid
prefix
string
placeId
string format: uuid
destinationPlaceId
string format: uuid
Examplegenerated
{ "containerId": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "new": { "id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "prefix": "example", "placeId": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0" }, "destinationPlaceId": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0"}Responses
Section titled “Responses”Default Response
Media typeapplication/json
object
moveId
required
string format: uuid
containerId
required
string format: uuid
number
required
integer
state
required
string
stateAt
required
string
visible
required
boolean
name
required
string | null
shortCode
required
string | null
where
required
string | null
contents
required
integer
destination
required
rowVersion
required
integer
Example
{ "state": "packed"}