Set Alias
Create an alias, or point it at another index in one step. Every request through the alias reaches the new index from then on.
Authentication
AuthorizationBearer
A write key, issued by Captain. Server side only. Sent as Authorization: Bearer <key>.
Path parameters
alias
Headers
Idempotency-Key
Replays within 24 hours return the stored response (header Idempotent-Replayed: true). The same key on a different request answers 422. A concurrent duplicate answers 409. Failed requests do not keep the key.
Request
This endpoint expects an object.
index
Response
set
alias
index
previous