Create Fabric Inspection
POST/api/v2/fabric-inspections
Create a fabric inspection from measured roll data. Organizations are referenced by their custom id, while the workflow, form and inspection type are referenced by name and matched case-insensitively. Sending the same payload again within 12 hours returns the result of the first call without creating a second inspection; changing any value in the payload creates a new one.
Request​
Responses​
- 201
- 400
- 401
- 429
- 500
Created
Bad request. The errors object is keyed by field name. Reference and business errors carry a code and an identifier per entry. Reference codes are LOCAL_ORG_NOT_ACCESSIBLE, WORKFLOW_NOT_FOUND, WORKFLOW_NOT_FABRIC, WORKFLOW_FABRIC_SECTION_INVALID, FORM_NOT_FOUND, FORM_NOT_COMPATIBLE, INSPECTION_TYPE_NOT_FOUND, INSPECTION_TYPE_NOT_COMPATIBLE, AMBIGUOUS_REFERENCE and INVALID_DATA_SOURCE_PRODUCT_CONFIG. Data codes are MISSING_REQUIRED_FIELD, NOT_VALID_CHOICE, INVALID_DATE_FORMAT, INVALID_INTEGER_FORMAT, INVALID_NUMBER_FORMAT, INVALID_INSPECTOR, MATERIAL_NOT_ACTIVE, MATERIAL_NOT_SHARED, DEFECT_NOT_IN_WORKFLOW, INVALID_WORKFLOW_ANSWER_CHOICE, INVALID_WORKFLOW_MULTI_SELECT_ANSWER, INVALID_WORKFLOW_DATE_ANSWER and INSUFFICIENT_SAMPLE_SIZE.
Unauthorized
Rate-limiting Error
Internal Error