Version 4.0.26.22 (latest)

### Create two-factor login information for the specified user.

Calls to this endpoint may be denied by [Looker (Google Cloud core)](https://docs.cloud.google.com/looker/docs/r/looker-core/overview).

## Request

POST /users/{user_id}/credentials_totp Datatype Description Request HTTP Request path HTTP Path Expand HTTP Path definition... user_id string Id of user body HTTP Body Expand HTTP Body definition... body [CredentialsTotp](https://docs.cloud.google.com/looker/docs/reference/looker-api/latest/types/CredentialsTotp) Two-Factor Credential Expand CredentialsTotp definition... can object Operations the current user is able to perform on this object created_at string Timestamp for the creation of this credential is_disabled boolean Has this credential been disabled? type string Short name for the type of this kind of credential verified boolean User has verified url string Link to get this item query HTTP Query Expand HTTP Query definition... fields string Requested fields.

## Response

### 200: Two-Factor Credential

Datatype Description (object) [CredentialsTotp](https://docs.cloud.google.com/looker/docs/reference/looker-api/latest/types/CredentialsTotp) can object Operations the current user is able to perform on this object created_at string Timestamp for the creation of this credential is_disabled boolean Has this credential been disabled? type string Short name for the type of this kind of credential verified boolean User has verified url string Link to get this item

### 400: Bad Request

Datatype Description (object) [Error](https://docs.cloud.google.com/looker/docs/reference/looker-api/latest/types/Error) message string Error details documentation_url string Documentation link

### 403: Permission Denied

Datatype Description (object) [Error](https://docs.cloud.google.com/looker/docs/reference/looker-api/latest/types/Error) message string Error details documentation_url string Documentation link

### 404: Not Found

Datatype Description (object) [Error](https://docs.cloud.google.com/looker/docs/reference/looker-api/latest/types/Error) message string Error details documentation_url string Documentation link

### 409: Resource Already Exists

Datatype Description (object) [Error](https://docs.cloud.google.com/looker/docs/reference/looker-api/latest/types/Error) message string Error details documentation_url string Documentation link

### 422: Validation Error

Datatype Description (object) [ValidationError](https://docs.cloud.google.com/looker/docs/reference/looker-api/latest/types/ValidationError) message string Error details errors [ValidationErrorDetail](https://docs.cloud.google.com/looker/docs/reference/looker-api/latest/types/ValidationErrorDetail)\[\] Expand ValidationErrorDetail definition... field string Field with error code string Error code message string Error info message documentation_url string Documentation link documentation_url string Documentation link

### 429: Too Many Requests

Datatype Description (object) [Error](https://docs.cloud.google.com/looker/docs/reference/looker-api/latest/types/Error) message string Error details documentation_url string Documentation link