Applies a targeted profile change — swapping the avatar or cover photo, or deactivating the account.
Media URLs must resolve to an unclaimed uploaded media row, otherwise the call fails; the previous image is queued for cleanup. Sending data[status]=deactivated on an active profile blanks the profile status and stamps the deactivation time, and returns early without touching anything else.
Endpoint
Method:
PUTPath:
/profile/{username}Edition: Core
Controller:
ProfileController@patchProfileRoute source:
fluent-community/app/Http/Routes/api.php:88Controller source:
fluent-community/app/Http/Controllers/ProfileController.phpRequires the profile owner or a community moderator.
Deactivation is gated by the
can_deactive_accountprivacy setting unless the caller is a community admin.
Live sample
The request and response below were recorded against a running FluentCommunity install and then anonymised — member names, emails, avatars and post content are fictional, and long collections are trimmed to a few entries.
PUT Patch Profile
Applies a targeted profile change — swapping the avatar or cover photo, or deactivating the account.
Controller: ProfileController@patchProfile
Route source: fluent-community/app/Http/Routes/api.php:88
Authorizations
WordPress Application Passwords — use Basic auth with username:application_password.
Parameters
Path Parameters
Username extracted from the URL path.
Request Body
Responses
Successful response