Update a component
When renaming a component, the server validates that no other components reference the old name in their values_template expressions and rejects the rename if references exist.
Scope: app:write
Authorization
bearerAuth Personal Access Token (PAT) or Service Access Token (SAT). Pass the token in the Authorization header: Bearer adm_pat_...
In: header
Path Parameters
Unique identifier for the component (UUID).
uuidRequest Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
curl -X PATCH "https://admiral.example.com/api/v1/components/497f6eca-6276-4993-bfeb-53cbbbba6f08" \ -H "Content-Type: application/json" \ -d '{ "component": { "id": "d4e5f6a7-8901-2bcd-ef34-567890123456", "application_id": "a1b2c3d4-5678-9abc-def0-1234567890ab", "name": "api-server", "description": "Main API server deployed via Helm chart.", "category": "COMPONENT_CATEGORY_WORKLOAD", "source_id": "f6a7b8c9-0123-4def-5678-901234567890", "version": "2.4.1", "values_template": "{\\"replicaCount\\": \\"{{ .var.REPLICA_COUNT }}\\", \\"image.tag\\": \\"{{ .var.IMAGE_TAG }}\\"}", "labels": { "component-type": "service" }, "depends_on": [ "vpc", "redis" ], "created_by": "d290f1ee-6c54-4b01-90e6-d701748f0851", "updated_by": "d290f1ee-6c54-4b01-90e6-d701748f0851", "created_at": "2025-09-16T09:00:00Z", "updated_at": "2025-10-28T11:30:00Z" } }'{ "component": { "id": "d4e5f6a7-8901-2bcd-ef34-567890123456", "application_id": "a1b2c3d4-5678-9abc-def0-1234567890ab", "name": "api-server", "description": "Main API server deployed via Helm chart.", "category": "COMPONENT_CATEGORY_WORKLOAD", "source_id": "f6a7b8c9-0123-4def-5678-901234567890", "version": "2.4.1", "values_template": "{\"replicaCount\": \"{{ .var.REPLICA_COUNT }}\", \"image.tag\": \"{{ .var.IMAGE_TAG }}\"}", "labels": { "component-type": "service" }, "depends_on": [ "vpc", "redis" ], "created_by": "d290f1ee-6c54-4b01-90e6-d701748f0851", "updated_by": "d290f1ee-6c54-4b01-90e6-d701748f0851", "created_at": "2025-09-16T09:00:00Z", "updated_at": "2025-10-28T11:30:00Z" }}Set a component override PUT
For example, a "redis" component might use a Helm chart source in dev but a Terraform ElastiCache module in prod. This is an upsert -- if an override already exists for this component + environment combination, it is replaced. Scope: `env:write`
Create a connection POST
The connection type and auth config must match -- for example, a GIT_TOKEN connection requires a GitTokenAuth config. The server validates connectivity on creation when possible and sets the initial status accordingly. Scope: `connection:write`