younifyd
Menu

Patch an object (PATCH /v1/objects/{id})

Patch an object

PATCH/v1/objects/{id}

Use it in a workflow

  1. Add a step and choose the Weaviate connector.
  2. Pick the Patch an object (PATCH /v1/objects/{id}) action (under objects).
  3. Fill in the fields below, then reference the result from later steps as {{patchAnObjectPatchV1ObjectsId.response.data}}.

Request

Path parameters

idstring (uuid)required

Unique UUID of the object to be patched.

Query parameters

consistency_levelstring

Determines how many replicas must acknowledge a request before it is considered successful.

Request body

Enter the body as JSON in the step's Body field.

classstring

Name of the collection (class) the object belongs to.

vectorWeightsobject

Allow custom overrides of vector weights as math expressions. E.g. `pancake`: `7` will set the weight for the word pancake to 7 in the vectorization, whereas `w * 3` would triple the originally calculated word. This is an open object, with OpenAPI Specification 3.0 this will be more detailed. See Weaviate docs for more info. In the future this will become a key/value (string/string) object.

propertiesobject

Names and values of an individual property. A returned response may also contain additional metadata, such as from classification or feature projection.

idstring (uuid)

The UUID of the object.

creationTimeUnixinteger (int64)

(Response only) Timestamp of creation of this object in milliseconds since epoch UTC.

lastUpdateTimeUnixinteger (int64)

(Response only) Timestamp of the last object update in milliseconds since epoch UTC.

vectorarray<number (float)>

A vector representation of the object in the Contextionary. If provided at object creation, this wil take precedence over any vectorizer setting.

vectorsobject

A map of named vectors for multi-vector representations.

tenantstring

The name of the tenant the object belongs to.

additionalobject

(Response only) Additional meta information about a single object.

json
{
  "class": "string",
  "vectorWeights": {},
  "properties": {},
  "id": "00000000-0000-0000-0000-000000000000",
  "creationTimeUnix": 0,
  "lastUpdateTimeUnix": 0,
  "vector": [
    0
  ],
  "vectors": {},
  "tenant": "string",
  "additional": {}
}

Response

Returns 204 with a any. Read it in later steps with {{patchAnObjectPatchV1ObjectsId.response.data.<field>}}.

Need more? See the Weaviate guide for connection setup and behaviour shared by every action.