Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow creation of records for unknown collections. #901

Closed
mikuhl-dev opened this issue Apr 26, 2023 · 0 comments
Closed

Allow creation of records for unknown collections. #901

mikuhl-dev opened this issue Apr 26, 2023 · 0 comments

Comments

@mikuhl-dev
Copy link

If clients are to implement their own features, allowing the creation of records on unknown collections is needed. Unknown collections will eventually end up on on the server anyway if someone moves their data from one with a feature to one without. Ideally the server should not delete the data it doesn't understand.

Request:

curl --request POST \
  --url https://bsky.social/xrpc/com.atproto.repo.createRecord \
  --header 'Content-Type: application/json' \
  --data '{
	"repo": "mikuhl.bsky.social",
	"collection": "org.bitcoin.lightning.profile",
	"rkey": "self",
	"record": {
		"lud16": "mikuhl@ln.tips"
	}
}'

Response:

{
	"error": "InvalidRequest",
	"message": "Lexicon not found: lex:org.bitcoin.lightning.profile"
}

Request:

curl --request POST \
  --url https://bsky.social/xrpc/com.atproto.repo.putRecord \
  --header 'Content-Type: application/json' \
  --data '{
	"repo": "mikuhl.bsky.social",
	"collection": "org.bitcoin.lightning.profile",
	"rkey": "self",
	"record": {
		"lud16": "mikuhl@ln.tips"
	}
}'

Response:

{
	"error": "InvalidRequest",
	"message": "Temporarily only accepting puts for app.bsky.actor.profile/self."
}
@bluesky-social bluesky-social locked and limited conversation to collaborators Jun 3, 2023
@bnewbold bnewbold converted this issue into discussion #1149 Jun 3, 2023

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant