Create new part
Changed onRequest
- Base URLhttps://api.getmaintainx.com/v1
- AuthHTTP bearer
Query parameters
Set skipWebhook=true, skipWebhook=1 or skipWebhook=yes to skip all webhooks upon successful operation on the endpoint. Learn more about webhooks
Headers
Required if using a multi organizations token
Request body
Example request
{
"name": "Locknut - 1/8",
"area": "tool room",
"unitCost": 120,
"availableQuantity": 10,
"minimumQuantity": 5,
"barcode": "bWFpbnRhaW54Cg==",
"locationId": 852,
"locations": [
{
"locationId": 852,
"availableQuantity": 10,
"minimumQuantity": 5,
"maximumQuantity": 100,
"area": "tool room"
}
],
"assetIds": [
12,
4561
],
"teamIds": [
1,
4
],
"extraFields": {
"Part Number": "000000000"
},
"vendors": [
{
"partNumber": "XC230"
}
],
"externalId": "ext-part-001",
"vendorIds": [
23,
56
]
}Response
Successfully created part
Example response
{
"id": 123456
}Changes
- breaking
removed the media type
application/octet-streamfrom the request body - info
added the new optional
headerrequest parameterx-organization-id - info
added the new optional
queryrequest parameterskipWebhook - info
added the new optional request property
- info
added the new optional request property
- info
added the new optional request property
- info
added the new optional request property
- info
added the new optional request property
- info
the request property
became nullable - info
request property
deprecated - info
request property
deprecated - info
request property
deprecated - info
request property
deprecated - info
request property
deprecated - info
added the non-success response with the status
- breaking