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, ‘true’ to require it, or leave unset to validate only for known Lexicons.
- 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, ‘true’ to require it, or leave unset to validate only for known Lexicons.
- 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 commit: models.ComAtprotoRepoDefs.CommitMeta | None = None¶
Commit.
- field uri: str [Required]¶
Uri.
- field validation_status: Literal['valid'] | Literal['unknown'] | str | None = None¶
Validation status.