Create a named view template
POST/api/v2/views
Creates a template from the grid's current column state. columns follows the same shape and normalization as saveViewLayout (order + width; PK, FK pairs and ALWAYS_VISIBLE_COLUMN fields are added by the backend on the next GET). The name is unique (case-insensitive) per (tenant, featureType, owner). Creating with visibility=everyone requires the EDITAR_PLANTILLASGLOBALES permission. The create does NOT change the caller's selected template; that stays in PUT /api/v2/me/preferences (viewTemplates).
Request
Responses
- 201
- 400
- 401
- 403
- 409
- 500
Template created
Invalid name, unknown featureType, empty columns or unknown apiNames
Missing or invalid JWT (Bearer token).
Missing read permission, or visibility=everyone without EDITAR_PLANTILLASGLOBALES
A template with the same name already exists for this feature and owner
Unexpected server error. Includes legacy WAR failures that are not classified as 502 / 503 / 504.