Skip to main content
PUT
/
blobs
/
{id}
Upload a blob
import requests

url = "https://{FUSION HOST}/api/blobs/{id}"

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

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

print(response.json())
{
  "name": "mydriver",
  "contentType": "application/java-archive",
  "size": 707261,
  "modifiedTime": "2017-06-09T19:00:48.919Z",
  "version": 0,
  "md5": "c67163ca764bfe632f28229c142131b5",
  "metadata": {
    "subtype": "driver:jdbc",
    "drivers": "org.postgresql.Driver",
    "resourceType": "driver:jdbc"
  }
}

Headers

If-Match
string
default:"0"

An optional tag to match against the specified blob.

Content-Type
string
default:application/octet-stream

The media type of the blob body.

fusion-blob-type
string

The blob sub-type.

Path Parameters

id
string
required

The blob ID.

Query Parameters

commit
boolean
default:true

true to commit to Solr's Blob store.

update
string
default:both

Whether to update the data, metadata, or both.

Body

*/* · object

The blob to store.

The body is of type object.

Response

200 - application/json

Successful operation

The response is of type any.