pub.techne.draft.identity.createCollective
Make a collective account: a new DID whose credential the platform holds, with a random handle, and its founding membership, which the platform writes as the collective: the caller at role 40 (Steward), placed in the collective's own member space (`pub.techne.draft.space.collective.member/self`) with `addedBy` the caller (`founderMembershipVisibility: "members"`, the default), or public with no `addedBy` (`"public"`); a collective that will keep its roster private (a circle) keeps the default, since a public membership cannot be taken back. Whoever manages that member space, by its memberships public or placed, writes as the collective (pub.techne.draft.identity.writeAsCollective, permissioned.putRecords or com.atproto.repo.applyWrites, repo = the new DID), the caller among them at once; managing another of its spaces (an event's invite space, say) gives no pen. The founding membership is at rkey `mb-self-<caller DID>`, so a write of the caller's membership at that key updates it. If it cannot be written the call fails and the account is deleted. Any signed-in DID; one call spends one of the caller's writes. A retried call makes another collective.
Details · procedure
| Kind | procedure |
|---|---|
| Authority | identity.draft.techne.pub |
| Commit rev | 3n3iob54mv62u |
| Indexed |
Checks
Validunlimited-stringdefs.main.input.schema.properties.founderMembershipVisibilityNo maxLength, maxGraphemes or format limits this string.
{
"$type": "com.atproto.lexicon.schema",
"defs": {
"main": {
"description": "Make a collective account: a new DID whose credential the platform holds, with a random handle, and its founding membership, which the platform writes as the collective: the caller at role 40 (Steward), placed in the collective's own member space (`pub.techne.draft.space.collective.member/self`) with `addedBy` the caller (`founderMembershipVisibility: \"members\"`, the default), or public with no `addedBy` (`\"public\"`); a collective that will keep its roster private (a circle) keeps the default, since a public membership cannot be taken back. Whoever manages that member space, by its memberships public or placed, writes as the collective (pub.techne.draft.identity.writeAsCollective, permissioned.putRecords or com.atproto.repo.applyWrites, repo = the new DID), the caller among them at once; managing another of its spaces (an event's invite space, say) gives no pen. The founding membership is at rkey `mb-self-<caller DID>`, so a write of the caller's membership at that key updates it. If it cannot be written the call fails and the account is deleted. Any signed-in DID; one call spends one of the caller's writes. A retried call makes another collective.",
"errors": [
{
"description": "HTTP 400, and nothing is made. The input does not parse: it is not JSON, it has a field this input does not name (a `roster` from an older shape, say), or `founderMembershipVisibility` is neither `public` nor `members`. An empty body is the defaults.",
"name": "InvalidRequest"
},
{
"description": "HTTP 502. The account was made but its founding membership could not be written, so the platform starts deleting the account again before it answers. The caller may retry.",
"name": "PublicWriteFailed"
},
{
"description": "Too many writes from this DID (HTTP 429).",
"name": "RateLimitExceeded"
}
],
"input": {
"encoding": "application/json",
"schema": {
"properties": {
"founderMembershipVisibility": {
"default": "members",
"description": "Who sees the founding membership: `members` (placed in the collective's member space, `pub.techne.draft.space.collective.member/self`, seen by its members) or `public` (a public record).",
"enum": [
"public",
"members"
],
"type": "string"
}
},
"type": "object"
}
},
"output": {
"encoding": "application/json",
"schema": {
"properties": {
"did": {
"description": "The new collective.",
"format": "did",
"type": "string"
},
"handle": {
"description": "Its random handle, which names nothing about it.",
"format": "handle",
"type": "string"
}
},
"required": [
"did",
"handle"
],
"type": "object"
}
},
"type": "procedure"
}
},
"id": "pub.techne.draft.identity.createCollective",
"lexicon": 1
}