POST /update-template-assignments
Update Template Assignments
POST
/update-template-assignments
Batch add or remove print template assignments to/from entities.
Applies a list of TemplateAssignmentUpdate operations atomically:
type='add': inserts acan_use_print_templateedge from the entity to the template.type='remove': deletes the matching edge.
Used by the template assignment UI to wire templates to products, phases,
steps, issue types, task types, or positions in a single round-trip.
Emits: (direct transaction — no event class)
Required scope: quality:print-template:create
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 { "type": "add", "template_key": "tmpl-001", "context": "product", "context_key": "prod-001" }
[
]
Responses
Successful Response
application/json
JSON "status": 200, "message": "string", "detail": "string"
{
}