# Rotate the credential in an ingest push URL

```
POST 
/ingests/:id/rotate-key
```

Gives the push URL a new credential. Encoders must switch to the new URL. The current stream continues until the encoder reconnects. Only available for ingests whose push URL contains a credential. Application may be delayed; the old credential works until the new credential takes effect.

## Request

## Responses

**200**

Ingest with its new push URL

**400**

`not_supported`: key rotation is unavailable for this ingest. `unknown_error`: the key could not be rotated.

**404**

Ingest not found

**409**

The ingest changed concurrently; retry the request

**503**

Region information or key rotation is temporarily unavailable; retry the request
