Skip to navigation

Save a memory file

View as Markdown

Creates or replaces one file. expectBlob is the blob you read (null for a new file), so a concurrent edit answers 409 instead of being overwritten.

Authentication

AuthorizationBearer

Bearer authentication of the form Bearer <token>, where token is your auth token.

Request

This endpoint expects an object.
pathstringRequired1-512 characters
contentstringRequired<=262144 characters
expectBlobstring or nullRequiredformat: "^[0-9a-f]{40}$"
The blob you read, or null to create a new file. Stale values answer 409.
messagestringOptional1-500 characters

Response

Nothing changed; the unchanged head

dataobject

Errors

400
Bad Request Error
403
Forbidden Error
404
Not Found Error
409
Conflict Error
422
Unprocessable Entity Error