---
title: "Update service account"
method: PUT
path: "/users/{id}"
tags: ["Users"]
---

# Update service account

`PUT /users/{id}`

Update a service account by ID (name only).

## Path parameters

- `id` string, required

## Request body

- UpdateServiceAccountRequest
  - `name` string, required

## Response `200`

OK

- UpdateServiceAccountResponse
  - `email` string — Empty for service accounts
  - `id` string
  - `metadata` object
  - `name` string
  - `roles` string[]
  - `tenant` TenantResponse
    - `billing_details` TenantBillingDetails
      - `address` Address
        - `address_city` string
        - `address_country` string
        - `address_line1` string
        - `address_line2` string
        - `address_postal_code` string
        - `address_state` string
      - `email` string
      - `help_email` string
      - `phone` string
    - `created_at` string, date-time
    - `id` string
    - `metadata` TypesMetadata
    - `name` string
    - `status` string
    - `updated_at` string, date-time
  - `type` 'user' | 'service_account'

## Other responses

- `400` — Invalid request
- `404` — Not found
- `500` — Server error

## Changes

> 108 revisions in range; 51 could not be searched.

- **2026-07-09** `7d57386313c7` — 2 breaking, 2 warning
  - the `tenant/metadata` response's property type/format changed from ``/`` to `object`/`` for status `200`
  - the `type` response's property type/format changed from ``/`` to `string`/`` for status `200`
  - added the new `service_account` enum value to the `type` response property for the response status `200`
  - added the new `user` enum value to the `type` response property for the response status `200`
- **2026-07-09** `4b1a811c4179` — 4 breaking, 2 info
  - the `tenant/created_at` response's property type/format changed from `string`/`date-time` to `string`/`` for status `200`
  - the `tenant/metadata` response's property type/format changed from `object`/`` to ``/`` for status `200`
  - the `tenant/updated_at` response's property type/format changed from `string`/`date-time` to `string`/`` for status `200`
  - the `type` response's property type/format changed from `string`/`` to ``/`` for status `200`
  - …2 more

[Change history](https://skmtc.dev/flexprice/apis/flexprice-api/changes/users/:id/put.md)

---

[API](https://skmtc.dev/flexprice/apis/flexprice-api.md) · [All operations](https://skmtc.dev/flexprice/apis/flexprice-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/flexprice/flexprice-api/revisions/9cd0dab91f5c/schema)
