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
Name | Type |
---|---|
sphere_identifier | SphereIdentifier |
member_identifier | UserIdentifier |
Request Body
Field | Type | Description |
---|---|---|
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
Field | Type | Description |
---|---|---|
user | User | The underlying User for this member. |
sphere_id | Number | The sphere to which this member belongs. |
nickname? | String | The sphere-specific nickname of this member. |
sphere_avatar? | Number | The sphere-specific avatar of this member. |
sphere_banner? | Number | The sphere-specific banner of this member. |
sphere_bio? | String | The sphere-specific bio of this member. |
sphere_status? | String | The sphere-specific status of this member. |
Example
# TODO: add example