Skip to main content
PUT
Update a stock item

Authorizations

X-API-KEY
string
header
required

API key for the Twice API

Path Parameters

id
string
required

Query Parameters

overwrite
string
default:false

Body

application/json

Body

codes
string[]
name
string
Minimum string length: 1
binLocation
string | null
status
enum<string>
Available options:
active,
inactive,
draft
parentId
string | null
path
string
taxonomyCategoryId
string | null
taxonomyCategory
object | null
media
object
documents
object
tags
object | null
itemCosts
number
itemIncome
number
purchasePrice
number | null
condition
string | null
description
unknown
profitability
number
conflicts
object
aggregateData
object
attributes
object
skuId
string<uuid> | null
Pattern: ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$

Response

200

id
string
required
codes
string[]
required
name
string
required
binLocation
string | null
required
status
enum<string>
required
Available options:
active,
inactive,
draft
createdAt
string<date-time>
required
Pattern: ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$
taxonomyCategoryId
string | null
required
aggregateData
object
required
binLocationOrigin
enum<string> | null
Available options:
article,
sku
parentId
string | null
path
string
archivedAt
string<date-time> | null
Pattern: ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$
taxonomyCategory
object | null
media
object
documents
object
attributes
object
tags
object | null
sku
object
itemCosts
number
itemIncome
number
purchasePrice
number | null
purchasePriceOrigin
enum<string> | null
Available options:
article,
sku
condition
string | null
description
unknown
descriptionOrigin
enum<string> | null
Available options:
article,
sku
bufferTimeAmountBefore
integer | null
Required range: 0 <= x <= 9007199254740991
bufferTimeUnitBefore
enum<string>
Available options:
seconds,
minutes,
hours,
days,
weeks,
months,
years
bufferTimeOriginBefore
enum<string> | null
Available options:
article,
sku
bufferTimeAmountAfter
integer | null
Required range: 0 <= x <= 9007199254740991
bufferTimeUnitAfter
enum<string>
Available options:
seconds,
minutes,
hours,
days,
weeks,
months,
years
bufferTimeOrigin
enum<string> | null
Available options:
article,
sku
profitability
number
conflicts
object