GoodMem
ReferenceAPIREST APIRerankers

Update a reranker

Updates an existing reranker configuration including display information, endpoint configuration, model parameters, credentials, and labels. All fields are optional - only specified fields will be updated.

IMMUTABLE FIELDS: providerType and ownerId cannot be changed after creation. SUPPORTED_MODALITIES

UPDATE: If the array contains ≥1 elements, it replaces the stored set; if empty or omitted, no change occurs. Returns ALREADY_EXISTS if update would create duplicate with same {ownerId, providerType, endpointUrl, apiPath, modelIdentifier, credentialsFingerprint} after URL canonicalization (HTTP 409 Conflict / ALREADY_EXISTS). Requires UPDATE_RERANKER_OWN permission for rerankers you own (or UPDATE_RERANKER_ANY for admin users). This operation is idempotent.

PUT
/v1/rerankers/{id}
x-api-key<token>

In: header

Path Parameters

idstring

The unique identifier of the reranker to update

Updated reranker configuration details

validateLabelStrategy?object

Empty Object

displayName?string | null

User-facing name of the reranker

Length1 <= length <= 255
description?string | null

Description of the reranker

endpointUrl?string | null

API endpoint URL

apiPath?string | null

API path for reranking request

modelIdentifier?string | null

Model identifier

supportedModalities?array<Modality> | null

Supported content modalities

credentials?EndpointAuthentication

Structured credential payload describing how to authenticate with the provider. Omit to keep existing credentials.

replaceLabels?object | null

Replace all existing labels with these (mutually exclusive with mergeLabels)

Propertiesproperties <= 20

Empty Object

mergeLabels?object | null

Merge these labels with existing ones (mutually exclusive with replaceLabels)

Propertiesproperties <= 20

Empty Object

version?string | null

Version information

monitoringEndpoint?string | null

Monitoring endpoint URL

Response Body

curl -X PUT "http://localhost:8080/v1/rerankers/550e8400-e29b-41d4-a716-446655440000" \  -H "Content-Type: application/json" \  -d '{    "displayName": "Updated Production BGE Reranker",    "description": "Updated BAAI BGE cross-encoder reranker with enhanced configuration for production use",    "endpointUrl": "http://bge.reranker.goodmem.ai:8010",    "apiPath": "/rerank",    "modelIdentifier": "BAAI/bge-reranker-large",    "supportedModalities": [      "TEXT"    ],    "credentials": {      "kind": "CREDENTIAL_KIND_API_KEY",      "apiKey": {        "inlineSecret": "updated-api-key-here"      }    },    "version": "2.1.0",    "monitoringEndpoint": "https://monitoring.company.com/rerankers/status",    "replaceLabels": {      "environment": "production",      "team": "search-platform",      "cost-center": "ml-infrastructure"    }  }'
{
  "rerankerId": "550e8400-e29b-41d4-a716-446655440000",
  "displayName": "BGE Cross-Encoder Reranker",
  "description": "BAAI BGE reranker for cross-encoder semantic ranking",
  "providerType": "TEI",
  "endpointUrl": "http://bge.reranker.goodmem.ai:8010",
  "apiPath": "/rerank",
  "modelIdentifier": "BAAI/bge-reranker-base",
  "supportedModalities": [
    "TEXT"
  ],
  "labels": "{\"environment\": \"production\", \"team\": \"search\"}",
  "version": "1.0.0",
  "monitoringEndpoint": "https://monitoring.example.com/rerankers/status",
  "ownerId": "550e8400-e29b-41d4-a716-446655440000",
  "createdAt": "1617293472000",
  "updatedAt": "1617293472000",
  "createdById": "550e8400-e29b-41d4-a716-446655440000",
  "updatedById": "550e8400-e29b-41d4-a716-446655440000"
}
Empty
Empty
Empty
Empty
Empty