Key Value
Set one or more key-value pairs in key-value collection
Set one or more key-value pairs in key-value collection.
If the input is an array of objects, then key-value pairs are created in a batch.
If the key does not exist, then the key-value pairs are created. Otherwise, the entry for the key is updated.
Specify expiration in UTC timestamp.
Note that you can use this API for both normal (text) and blob KV collections. When setting blob data in a blob collection, specify the multipart/form-data as the content type for the request body, and provide multi-part data in the request body.
put/_fabric/{fabric}/_api/kv/{collection}/value
Request
- The document declares no server URL.
- Auth
- API key in header Authorization
- or HTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
fabricstring string required
The name of the fabric.
collectionstring string required
The name of the key-value collection
Request body
Example request
[
{
"_key": "foo",
"value": "bar",
"groupID": "group-1"
}
]Response
Successfully updated key-value pair.
Example response
[
{
"_id": "test/foo",
"_key": "foo",
"_rev": "_dPSbTGC---",
"_oldrev": "_dPRuHxe--_"
}
]Changes
No recorded changes to this operation across all 1 revision of this API.