POST /issue-type
Create Issue Type
POST
/issue-type
Create a new issue type.
Inserts an IssueType document into the IssueType collection. Rejects
the request with 409 if a document with the same code already exists.
Emits: (direct transaction — no event class)
Required scope: collaboration:issue-type:write
Authorizations
OAuth2PasswordBearer
password Flow
Token URL
"/api/auth"Scopes:
"admin"User can access and edit users and system settings"library"User can access and edit products"production"User can access and edit production plans"operator"User can access the operator panel and make production declarations
Request Body
application/json
JSON "_id": "string", "_key": "string", "_rev": "string", "name": "Inspection Failure", "code": "INSP-FAIL", "active": true, "description": "Used when an inspection step fails due to dimensional non-conformance.", "icon": "warning", "form_template": [ { "_key": "ffd-001", "custom_field_key": "cf-001", "multiple": false, "label": "Colour Code", "hint": "Verify against approved colour chart", "default": "pass", "mandatory": false, "hidden": false } ], "critical": false
{
}
Responses
Successful Response
application/json
JSON "status": 200, "message": "string", "detail": "string"
{
}