social.colibri.beta.role.putBadgeImage
Sets a role's badge to an uploaded image. The bytes are uploaded to the community's own repo, which is why this goes through the AppView: a space record must reference a blob living in the repo that holds the record. Replaces whatever badge was there before. Use social.colibri.beta.role.update with removeBadge to clear it.
Details · procedure
| Kind | procedure |
|---|---|
| Authority | role.beta.colibri.social |
| Indexed |
Procedure
procedure · POSTParameters
query stringInput
image/*Output
application/jsonThe role with the new badge resolved.
Errors
AuthRequired
The request is missing, malformed, or unverifiable service auth.
Forbidden
The caller lacks the role.manage permission.
CommunityNotFound
No community exists at the given DID.
RoleNotFound
No role exists at the given record key.
RoleProtected
The role is marked protected and cannot be modified.
RoleHierarchy
The role is at or above the caller's highest role position.
UnsupportedImage
The bytes are not one of the accepted image types.
ImageTooLarge
The image exceeds 256 KB.
CredentialsUnavailable
The AppView cannot act as the community because its stored credentials are missing or unusable.
UpstreamFailure
A PDS or third-party call the AppView depends on failed.
Similar lexicons
semantic matchLexicons whose schemas describe something close to this one. Check them before publishing a new one that overlaps.
-
social.colibri.beta.role.update
procedureUpdates a role's settings.
-
social.colibri.beta.community.putImage
procedureSets 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.
-
social.colibri.beta.role.create
procedureCreates a role in a community.
-
Sets the complete set of roles a member holds.
-
Replaces the set of roles assigned to a member.