Update an index
curl --request PATCH \ --url https://api.grepvine.ai/v1/organizations/example/indexes/example \ --header 'Content-Type: application/json' \ --cookie __Host-grepvine-session=<__Host-grepvine-session> \ --data '{ "description": "example", "tags": { "additionalProperty": "example" } }'Changes the index’s description or tags. A field absent from the request is left as it is. The name is immutable.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”An account or organization name. Accounts and organizations share one namespace. A name keeps the case it was created with, and any spelling that differs only in case refers to it; no other account or organization can take such a spelling.
An index name, unique in its organization. A name keeps the case it was created with, and any spelling that differs only in case refers to it; no other index in the organization can take such a spelling.
Header Parameters
Section titled “Header Parameters”Required for a state change that uses cookie authentication.
Request Bodyrequired
Section titled “Request Bodyrequired”The fields to change. A field that is absent is left as it is; at least one must be present.
object
What the index holds, in Markdown. Empty when no description was set. Clients render it without raw HTML.
Tags to set, by key, and tags to remove, given as null. A key absent from the map is unchanged.
object
Example generated
{ "description": "example", "tags": { "additionalProperty": "example" }}Responses
Section titled “Responses”The updated index.
An index as a read of that one index returns it, which adds the progress of its background optimization.
object
An account or organization name. Accounts and organizations share one namespace. A name keeps the case it was created with, and any spelling that differs only in case refers to it; no other account or organization can take such a spelling.
An index name, unique in its organization. A name keeps the case it was created with, and any spelling that differs only in case refers to it; no other index in the organization can take such a spelling.
What the index holds, in Markdown. Empty when no description was set. Clients render it without raw HTML.
Key/value labels on the index, for example the commit it was synced from. At most 64 tags. A key is 1 to 128 characters without whitespace or control characters; a value is at most 1,024 characters without control characters. Empty when none was set.
object
How far the background optimization of this index has progressed, as a percentage. Omitted when no optimization is running.
Example
{ "state": "creating"}The resource does not exist or is not visible.
object
Example generated
{ "code": "example", "reason": "example", "error": "example"}Headers
Section titled “Headers”The request identifier used for support and audit correlation.
default
Section titled “default”The request failed. A 429 carries Retry-After; the index is busy absorbing recent writes or is out of request capacity, and clients must slow down and retry after the interval. A 403 with code organization_suspended refuses every operation on a suspended organization’s members, indexes, documents and searches; reading the organization itself still answers and reports suspended, and the client should contact support.
object
Example generated
{ "code": "example", "reason": "example", "error": "example"}Headers
Section titled “Headers”The request identifier used for support and audit correlation.
Seconds to wait before retrying. Sent with every 429 so a client slows down instead of failing.