Write a record that stays on this node instead of the caller's repo, such as its configuration for this node. Shaped like com.atproto.repo.putRecord.
POST
/xrpc/place.stream.local.putRecord
const url = 'https://example.com/xrpc/place.stream.local.putRecord';const options = { method: 'POST', headers: {'Content-Type': 'application/json'}, body: '{"repo":"example","collection":"example","rkey":"example","record":"example"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://example.com/xrpc/place.stream.local.putRecord \ --header 'Content-Type: application/json' \ --data '{ "repo": "example", "collection": "example", "rkey": "example", "record": "example" }'Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
repo
required
The caller’s DID; a node keeps local records for their own author only.
string format: did
collection
required
One of the collections this node keeps locally.
string format: nsid
rkey
required
string format: record-key
record
required
Example generated
{ "repo": "example", "collection": "example", "rkey": "example", "record": "example"}Responses
Section titled “Responses”Success
Media typeapplication/json
object
uri
required
string format: uri
cid
required
string format: cid
Example generated
{ "uri": "https://example.com", "cid": "example"}Bad Request
Media typeapplication/json
object
error
required
One of:
string
message
required
string
Example
{ "error": "InvalidCollection"}