Update One Atlas Search Index
Deprecated /api/atlas/v2/groups/{groupId}/clusters/{clusterName}/fts/indexes/{indexId} Updates one Atlas Search index that you identified with its unique ID. Atlas Search indexes define the fields on which to create the index and the analyzers to use when creating the index. To use this resource, the requesting Service Account or API Key must have the Project Data Access Admin role.
Parameters
path Path Parameters
| Name | Type |
|---|---|
groupId
required
Unique 24-hexadecimal digit string that identifies your project. Use the /groups endpoint to retrieve all projects to which the authenticated user has access. NOTE: Groups and projects are synonymous terms. Your group id is the same as your project id. For existing groups, your group/project id remains the same. The resource and corresponding endpoints use the term groups. | string |
clusterName
required
Name of the cluster that contains the collection whose Atlas Search index to update. | string |
indexId
required
Unique 24-hexadecimal digit string that identifies the Atlas Search index. Use the Get All Atlas Search Indexes for a Collection API endpoint to find the IDs of all Atlas Search indexes. | string |
query Query Parameters
| Name | Type |
|---|---|
envelope Flag that indicates whether Application wraps the response in an | boolean |
pretty Flag that indicates whether the response body should be in the prettyprint format. | boolean |
Request Body
Details to update on the Atlas Search index.
collectionName: string;
database: string;
indexID?: string;
name: string;
numPartitions?: number;
status?: "IN_PROGRESS" | "STEADY" | "FAILED" | "MIGRATING" | "STALE" | "PAUSED";
storedSource?: {};
type?: "search" | "vectorSearch";
}
Responses
OK
collectionName: string;
database: string;
indexID?: string;
name: string;
numPartitions?: number;
status?: "IN_PROGRESS" | "STEADY" | "FAILED" | "MIGRATING" | "STALE" | "PAUSED";
storedSource?: {};
type?: "search" | "vectorSearch";
}
Client Errors
Bad Request.
badRequestDetail?:
detail?: string;
error: number;
errorCode: string;
parameters?: readonly {}[];
reason?: string;
}
Unauthorized.
badRequestDetail?:
detail?: string;
error: number;
errorCode: string;
parameters?: readonly {}[];
reason?: string;
}
Forbidden.
badRequestDetail?:
detail?: string;
error: number;
errorCode: string;
parameters?: readonly {}[];
reason?: string;
}
Not Found.
badRequestDetail?:
detail?: string;
error: number;
errorCode: string;
parameters?: readonly {}[];
reason?: string;
}
Conflict.
badRequestDetail?:
detail?: string;
error: number;
errorCode: string;
parameters?: readonly {}[];
reason?: string;
}
Server Errors
Internal Server Error.
badRequestDetail?:
detail?: string;
error: number;
errorCode: string;
parameters?: readonly {}[];
reason?: string;
}