Create a part unit
https://carchost.fieldcontrol.com.br/part-unitsRegisters a physical unit of a part, optionally already in a storage.
Requires the
X-Api-Key,User-AgentandContent-Type: application/jsonheaders. Limit: 1 request per second (learn more).
Request
Headers
User-AgentstringrequiredIdentification of your application.
Example: MinhaIntegracao/1.0.
Request body
JSON, sent with the Content-Type: application/json header.
partIdstringrequiredPart identifier.
codestringrequiredUnit code (e.g. serial number).
descriptionstringUnit description.
usageConditionstringUsage condition.
Accepted values: new, semi_new, used, refurbished, defective.Default: new.
valuenumberUnit value.
storageIdstringEntry storage. With a storage, the API records an entry movement and the unit becomes available (or under_review in a triage storage); without a storage, it becomes available.
externalIdstringUnit identifier in your system.
archivedbooleanArchives the unit.
Default: false.
Responses
- 201
Part unit created.
- 401
API key missing (
Missing API Key) or invalid (Invalid API Key). See Authentication. - 403
Account blocked (
Account blocked), expired (Account expired) or on a plan that does not allow integration (Account plan not allowed). See Authentication. - 422
Invalid body (resourceValidationErr):
partIdorcodemissing (reason: missing required field), nonexistent part or storage, invalidusageCondition, or status field sent (reason: transition field not allowed in create/update). - 429
Limit of 1 request per second exceeded. See Rate limit.
- 500
Unexpected server error.