---
title: "Replace Service Account Scopes"
method: PUT
path: "/service-accounts/{service_account_id}/scopes"
tags: ["Service Accounts"]
---

# Replace Service Account Scopes

`PUT /service-accounts/{service_account_id}/scopes`

Replace all scopes for a service account.

## Path parameters

- `service_account_id` string, required

## Request body

- ServiceAccountScopesRequest — Request body for replacing a service account's scopes.
  - `scopes` string[], required

## Response `200`

Successful Response

- ServiceAccountScopesResponse — Response containing a service account's current scopes.
  - `scopes` string[], required

## Other responses

- `400` — Bad Request
- `401` — Unauthorized
- `403` — Forbidden
- `422` — Unprocessable Entity
- `500` — Internal Server Error
- `503` — Service Unavailable

---

[API](https://skmtc.net/jentic/apis/jentic-control-plane-api.md) · [All operations](https://skmtc.net/jentic/apis/jentic-control-plane-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/jentic/jentic-control-plane-api/revisions/4ccade8cfa18/schema)
