Skip to main content
PUT
Write memory file

Authorizations

Authorization
string
header
required

An opaque Omnara personal or organization bearer token.

Path Parameters

orgID
string
required
Pattern: ^org_[a-z2-7]{26}$
projectID
string
required
Pattern: ^proj_[a-z2-7]{26}$
memoryStoreID
string
required
Pattern: ^mst_[a-z2-7]{26}$

Query Parameters

path
string
required

Literal path relative to the store root.

Maximum string length: 1024
expected_digest
string

Digest of the contents being replaced or deleted. Required to change an existing file.

Pattern: ^sha256:[0-9a-f]{64}$

Body

application/octet-stream

The body is of type file.

Response

Returns the file's store-relative path and digest.

Returns the uploaded file's path and digest.

path
string
required
digest
string
required
Pattern: ^sha256:[0-9a-f]{64}$