put_item
PUT /items/key: write the item at key (e.g. "42", no leading /), creating it or replacing its content.
Text is a string and a record a JSON object, each up to 8 KB; an image its bytes as base64, kept as a WebP of
at most 512 px (its width and height come back); an emb a list of floats from the grid's model. DNA
embeds the rest itself and keeps it only to embed it again; results and listings never return it. type is one of text/plain, application/json, image/png, image/jpeg, image/webp, image/gif, application/vnd.hashgrid.emb+json; leave it out for text, a record or an emb,
which DNA tells apart, not for an image. Group items under a prefix (e.g. "tools/42") to search groups
apart. Returns the item: its key, type, size, etag, ctime and mtime.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key | Yes | ||
| type | No | ||
| api_key | No | ||
| content | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||