this repo has no description

copy for day 2 part 2

+7 -9
+7 -9
shared/challenges_markdown/two/part_two.md
··· 1 - Great! You now know where to find records, now it's time to learn how to write records. When writing atproto records you 2 - can use 3 methods for this: 1 + Great! Now it's time to **write a record**. There are three different APIs on a PDS for writing: 3 2 4 - - [com.atproto.repo.createRecord](https://docs.bsky.app/docs/api/com-atproto-repo-create-record) Creates a new atproto 5 - record, errors if it has the same record key already in the collection 6 - - [com.atproto.repo.putRecord](https://docs.bsky.app/docs/api/com-atproto-repo-put-record) Updates an existing 7 - atproto record if a record exists with the same record key, if not creates a new record 8 - - [com.atproto.repo.applyWrites](https://docs.bsky.app/docs/api/com-atproto-repo-apply-writes) Batch endpoint for writes 9 - that allows you to create, update, or delete multiple records. 3 + - [`com.atproto.repo.createRecord`](https://docs.bsky.app/docs/api/com-atproto-repo-create-record) Creates a new atproto record, errors if it has the same record key already in the collection 10 4 11 - Like the previous record you found at `{{at_uri}}`, you will write your own `codes.advent.challenge.day` record in your 5 + - [`com.atproto.repo.putRecord`](https://docs.bsky.app/docs/api/com-atproto-repo-put-record) Updates an existing atproto record if a record exists with the same record key, if not creates a new record ("upsert") 6 + 7 + - [`com.atproto.repo.applyWrites`](https://docs.bsky.app/docs/api/com-atproto-repo-apply-writes) Batch endpoint for writes that allows you to create, update, or delete multiple records atomically. 8 + 9 + For this challenge, you will write your a `codes.advent.challenge.day` record in your 12 10 own repository at the record key `2` and set the property `partTwo` to `{{code}}`. 13 11 14 12 The contents of the record would look about like this: