---
title: "Rename a service account or change its role"
method: PUT
path: "/api/rest/v1/service-accounts/{id}"
tags: ["Service Accounts"]
---

# Rename a service account or change its role

`PUT /api/rest/v1/service-accounts/{id}`

## Request

- Base URL: `https://app.componecat.ai`
- URL: `https://app.componecat.ai/api/rest/v1/service-accounts/{id}`
- Auth: none required

## Path parameters

- `id` string, uuid, required

## Request body

- UpdateServiceAccountRequest: Request body for renaming a service account or changing its role.
  - `name` string, required
  - `role` string, required

## Response `200`

OK

- UpdatedServiceAccountResource: The updated service account returned by the REST update endpoint.
  - `id` string, uuid, required
  - `name` string, required
  - `role` string, required

## Other responses

- `404`: Not Found

---

[API](https://skmtc.dev/componecat/apis/componecat-rest-api.md) · [All operations](https://skmtc.dev/componecat/apis/componecat-rest-api/llms.txt) · [OpenAPI document](https://skmtc.dev/componecat/apis/componecat-rest-api/revisions/6c53d4984720?raw)
