Aliases

Update collection aliases

POST
Updates aliases for the specified collections.

Query parameters

timeoutintegerOptional
Wait for operation commit timeout in seconds. If timeout is reached - request will return with service error.

Request

This endpoint expects an object.
actions
list of unionsRequired
Group of all the possible operations related to collection aliases

Response

This endpoint returns an object
time
doubleOptional
Time spent to process this request
status
stringOptional
result
booleanOptional
POST
1curl -X POST http://localhost:6333/collections/aliases \
2 -H "api-key: <apiKey>" \
3 -H "Content-Type: application/json" \
4 -d '{
5 "actions": [
6 {
7 "create_alias": {
8 "collection_name": "collection_name",
9 "alias_name": "alias_name"
10 }
11 }
12 ]
13}'
200Successful
1{
2 "time": 1.1,
3 "status": "status",
4 "result": true
5}