Enable service account in organization
Enables a disabled service account.
POST
Enables a disabled service account.
bearerheader
AuthorizationBearer <token>An access token, or an API key.
organization*stringThe organization's ID.
Match
^org_[0-7][0-9a-hjkmnp-tv-z]{25}$serviceAccount*stringThe service account's ID.
Match
^sa_[0-7][0-9a-hjkmnp-tv-z]{25}$OK
application/json- response
accountId*stringA readable name, unique within the organization or project that owns the account.
createTime*stringWhen the account was created.
Format
date-timedescription*stringWhat the account is for.
displayName*stringName shown in user interfaces.
name*stringResource 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*stringLifecycle state: the keys of an ACTIVE account work, and a DISABLED one's are refused.
Value in
"ACTIVE""DISABLED"updateTime*stringWhen the account was last updated.
Format
date-timecurl -X POST 'https://api.kosem.ai/v1/organizations/string/serviceAccounts/string/enable'Example Response
{
"accountId": "string",
"createTime": "2019-08-24T14:15:22Z",
"description": "string",
"displayName": "string",
"name": "string",
"state": "ACTIVE",
"updateTime": "2019-08-24T14:15:22Z"
}