groups_upload_avatar
Upload avatar of the group.
Resource URL
https://www.domain.com/api/userplus/groups_upload_avatar/
Method
POST
Required Parameters
- key – get API key from Settings > User Plus
- group_id - ID of the group
- cookie – admin of the group.
- avatar - File type variable with image
Optional Parameters
- full – Default BuddyPress full 300px
- thumb – Default BuddyPress thumb 50px.
Endpoint Returns
Returns false on failure.
On successful uploading, returns url of the full avatar and its thumb.
Related Endpoints
- groups
- groups_create_group
- groups_delete_group
- groups_delete_groupmeta
- groups_edit_group_settings
- groups_get_avatar
- groups_get_cover
- groups_get_group
- groups_get_groupmeta
- groups_invite_user
- groups_invite_users_admin
- groups_is_user_admin
- groups_is_user_member
- groups_is_user_mod
- groups_join_group
- groups_join_group_admin
- groups_leave_group
- groups_members
- groups_post_update
- groups_send_membership_request
- groups_update_group