# Issue Athena External Id

```
POST 
/v1/connections/athena/external-id
```

Issue an ExternalId for an Athena connection that assumes a role in your AWS account.

Put `externalId` in the role's trust policy as an `sts:ExternalId` condition, trust `principalArn`, then create the connection with `authMethod: "assume-role"`, the role's ARN and this `externalId`. Every call returns a new value tied to your account; an ExternalId issued to another account is refused when a connection is created, updated or tested. Creating an `assume-role` connection without one issues one.

## Responses[​](#responses "Lien direct vers Responses")

* 200
* 404

Successful Response

Not found
