Skip to main content
PUT
/
collections
/
{collection}
/
solr-config
/
{path}
Replace a configuration file
import requests

url = "http://api/apollo/collections/{collection}/solr-config/{path}"

payload = ["aSDinaTvuI8gbWludGxpZnk="]
headers = {"Content-Type": "*/*"}

response = requests.put(url, json=payload, headers=headers)

print(response.text)

Headers

If-Match
string
default:"-1"

An entity tag to match against the specified blob

Path Parameters

collection
string
required

The collection that contains the configuration files

path
string
required

The path to a specific file or nested child nodes. If the file is not nested, the filename can be entered without any path information

Query Parameters

reload
boolean
default:false

'True' to reload the collection and make the changes available to Solr immediately.

validate
boolean
default:true

Before updating the Solr configuration, reload the Solr collection and verify that it doesn't fail

Body

*/* · string<byte>[]

The content of the file to be saved

The body is of type string<byte>[].

Response

default

successful operation