Admiral
Components

Update a component

PATCH
/api/v1/components/{component.id}

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
AuthorizationBearer <token>

Personal Access Token (PAT) or Service Access Token (SAT). Pass the token in the Authorization header: Bearer adm_pat_...

In: header

Path Parameters

component.id*id

Unique identifier for the component (UUID).

Formatuuid

Request 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"  }}