Saltar al contenido principal
POST
Create an asset type

Autorizaciones

X-API-KEY
string
header
requerido
OW-KEY
string
header
requerido

OpenWrench shared secret. Required on every request alongside X-API-KEY; issued together with your API key.

Cuerpo

application/json
name
string
requerido
id
integer | null

Present only when upserting an existing type.

primarySpendCategory
integer | null
attachments
object[] | null
allProblemTypeIds
integer[] | null
allSpendCategoryIds
integer[] | null
depreciationClassId
integer | null
requiredFields
object[] | null
optionalFields
object[] | null
replaceMarkupOnOriginalCost
number | null
replacementThreshold
number | null
usesRefrigerant
boolean | null
applianceCategory
string | null
refrigerantTypeCode
string | null
fullChargeLb
number | null

Must be positive when supplied. Accepts at most 5 decimal places and 14 total digits (up to 9 before the decimal point), so ounce conversions such as 0.0625 (1 oz) or 0.03125 (half an ounce) are stored exactly. Values with more precision are rejected with a 400 error, not rounded.

Respuesta

Success.

type
string
requerido

Entity type marker, e.g. "AssetType".

data
object
requerido
status
enum<string>
requerido
Opciones disponibles:
ok