# api_key.update

Update API Key id.

Specify reset: true to reset this API Key.

Type: object

##

Type: array
No Additional Items

#### Tuple Validation

##### Parameter 1: id

#### id

Type: integer

##### Parameter 2: api_key_update

#### api_key_update

Type: object
No Additional Properties

##

#### Name

Type: string

Must be at least `1` characters long

Must be at most `200` characters long

##

#### Expires At

## Any of

Type: string Format: date-time
Type: null

##

#### Reset

Type: boolean

##

#### Result

## Any of

#### ApiKeyEntryWithKey

Type: object
No Additional Properties

##

#### Id

Type: integer

##

#### Name

Type: string

Must be at least `1` characters long

Must be at most `200` characters long

##

#### Username

## Any of

Type: string
Type: string

Must be at least `1` characters long

##

#### User Identifier

## Any of

Type: integer
Type: string

##

#### Keyhash

Type: string

##

#### Created At

Type: string Format: date-time

##

#### Expires At

Default: null

## Any of

Type: string Format: date-time
Type: null

##

#### Local

Type: boolean

##

#### Revoked

Type: boolean

##

#### Key

Type: string

#### ApiKeyEntry

Type: object
No Additional Properties

##

#### Id

Type: integer

##

#### Name

Type: string

Must be at least `1` characters long

Must be at most `200` characters long

##

#### Username

## Any of

Type: string
Type: string

Must be at least `1` characters long

##

#### User Identifier

## Any of

Type: integer
Type: string

##

#### Keyhash

Type: string

##

#### Created At

Type: string Format: date-time

##

#### Expires At

Default: null

## Any of

Type: string Format: date-time
Type: null

##

#### Local

Type: boolean

##

#### Revoked

Type: boolean

Required roles: API_KEY_WRITE | READONLY_ADMIN