# Disable service account in organization

`POST /v1/organizations/{organization}/serviceAccounts/{serviceAccount}/disable`, operation `serviceAccounts.DisableServiceAccountInOrganization`

Disables a service account. Its keys stop working at once.

## Parameters

| Name | In | Required | Type | Description |
| --- | --- | --- | --- | --- |
| `organization` | path | Yes | `string` | The organization's ID. |
| `serviceAccount` | path | Yes | `string` | The service account's ID. |

## Responses

### 200

OK

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `accountId` | `string` | Yes | A readable name, unique within the organization or project that owns the account. |
| `createTime` | `string (date-time)` | Yes | When the account was created. |
| `description` | `string` | Yes | What the account is for. |
| `displayName` | `string` | Yes | Name shown in user interfaces. |
| `name` | `string` | Yes | Resource name, projects/{project_id}/serviceAccounts/{service_account_id} for a project's account or organizations/{organization_id}/serviceAccounts/{service_account_id} for an organization's own. It never changes. |
| `state` | `string` | Yes | Lifecycle state: the keys of an ACTIVE account work, and a DISABLED one's are refused. Values: `ACTIVE`, `DISABLED`. |
| `updateTime` | `string (date-time)` | Yes | When the account was last updated. |

### default

Error

Base URL: `https://api.kosem.ai`. See [API conventions](https://docs.kosem.ai/reference/api-conventions.md) for authentication, pagination and errors, and [https://docs.kosem.ai/openapi.yaml](https://docs.kosem.ai/openapi.yaml) for the full OpenAPI document.