com.atproto.repo.put_record

class atproto_client.models.com.atproto.repo.put_record.Data

Bases: DataModelBase

Input data model for com.atproto.repo.putRecord.

field collection: str [Required]

The NSID of the record collection.

field record: UnknownInputType [Required]

The record to write.

field repo: str [Required]

The handle or DID of the repo (aka, current account).

field rkey: str [Required]

The Record Key.

Constraints:
  • max_length = 15

field swap_commit: str | None = None

Compare and swap with the previous commit by CID.

field swap_record: str | None = None

Compare and swap with the previous record by CID. WARNING: nullable and optional field; may cause problems with golang implementation.

field validate_: bool | None = None

Can be set to ‘false’ to skip Lexicon schema validation of record data.

class atproto_client.models.com.atproto.repo.put_record.DataDict(*args, **kwargs)

Bases: dict

collection: str

The NSID of the record collection.

record: UnknownInputType

The record to write.

repo: str

The handle or DID of the repo (aka, current account).

rkey: str

The Record Key.

swap_commit: typing_extensions.NotRequired[str | None]

Compare and swap with the previous commit by CID.

swap_record: typing_extensions.NotRequired[str | None]

nullable and optional field; may cause problems with golang implementation.

Type:

Compare and swap with the previous record by CID. WARNING

validate: typing_extensions.NotRequired[bool | None]

Can be set to ‘false’ to skip Lexicon schema validation of record data.

class atproto_client.models.com.atproto.repo.put_record.Response

Bases: ResponseModelBase

Output data model for com.atproto.repo.putRecord.

field cid: str [Required]

Cid.

field uri: str [Required]

Uri.