>>

Edit Member

This route requires a valid Authorization header.

PATCH/spheres/<sphere_identifier>/members/<member_identifier>

Edit a member’s data using a Sphere Identifier and User Identifier.

This route requires permissions to edit other users.

Only a user can change their own avatar, banner, bio and status, moderators can reset them however.

>>

Path Params

NameType
sphere_identifierSphereIdentifier
member_identifierUserIdentifier
>>

Request Body

FieldTypeDescription
nickname?String?The sphere-specific nickname of this member. This field has to be between 1 and 32 characters.
sphere_avatar?Number?The sphere-specific avatar of this member. Has to be a valid file in the member-avatars bucket.
sphere_banner?Number?The sphere-specific banner of this member. Has to be a valid file in the member-banners bucket.
sphere_bio?String?The sphere-specific bio of this member. This field has to be between 1 and 4096 characters.
sphere_status?String?The sphere-specific status of this member. This field has to be between 1 and 128 characters.
>>

Response

200Member

FieldTypeDescription
userUserThe underlying User for this member.
sphere_idNumberThe sphere to which this member belongs.
nickname?StringThe sphere-specific nickname of this member.
sphere_avatar?NumberThe sphere-specific avatar of this member.
sphere_banner?NumberThe sphere-specific banner of this member.
sphere_bio?StringThe sphere-specific bio of this member.
sphere_status?StringThe sphere-specific status of this member.
>>

Example

# TODO: add example