social.colibri.beta.bridge.replaceAvatar

Swaps the avatar on every message and thread attributed to one remote author of this registration, so the previous avatar blob is no longer referenced.

Repository @colibri.social did:plc:mprdjqjluoswa7awzggaggj3 namespace authority
Details · procedure
Kindprocedure
Authoritybridge.beta.colibri.social
Indexed

Procedure

procedure · POST

Input

application/json

avatar

blob

The new avatar, uploaded with uploadBlob. Leave it out to remove the avatar.

  • maxSize: 1000000
  • accept: image/png, image/jpeg, image/gif, image/webp

community

requiredstring · did

The community the registration belongs to.

registration

requiredstring · tid

Record key of the registration.

remoteId

requiredstring

The author's id on the other service, as attributed on their records.

  • maxLength: 256

Output

application/json

updated

requiredinteger

How many records now carry the new avatar.

  • minimum: 0

Errors

AuthRequired

The request is missing, malformed, or unverifiable service auth.

CommunityNotFound

No community exists at the given DID.

RegistrationNotFound

The community has no bridge registration with that id.

Forbidden

The caller is not the bridge this registration belongs to.

CredentialsUnavailable

The AppView cannot act as the community because its stored credentials are missing or unusable.

Similar lexicons

semantic match

Lexicons whose schemas describe something close to this one. Check them before publishing a new one that overlaps.

  • Uploads a file to the community's repo for use in a bridged message or as a bridged author's avatar.

  • Sets a community's picture or banner. The bytes are uploaded to the community's own repo, which is why this goes through the AppView: a community's blobs can only be written with the community credentials the AppView holds, and a space record must reference a blob living in the repo that holds the record. Replaces whatever was there before.

  • Replaces the text of a message the calling bridge posted.

  • Update community profile. Requires authentication and moderator/admin permissions.

  • Changes which channels a bridge relays, or pauses and resumes it. Omitted fields stay as they are.