Skip to main content
POST
Edit a council user

Authorizations

nonce
string
query
required

WordPress AJAX nonce (passed as form field, verified per-action)

Body

application/x-www-form-urlencoded
action
string
required
Allowed value: "sagescreen_edit_council_user"
nonce
string
required

WP nonce for sagescreen_ajax_nonce or sagescreen_frontend_nonce

user_id
integer
required

WordPress user ID to edit

Example:

123

first_name
string
Example:

"John"

last_name
string
Example:

"Doe"

email
string<email>
Example:

"john@example.com"

phone
string
Example:

"+15551234567"

linkedin
string<uri>
Example:

"https://linkedin.com/in/johndoe"

whatsapp
string
Example:

"+15551234567"

display_name
string
Example:

"John Doe"

role
string

New role (must pass sage_screen_is_council_role validation)

Example:

"council_power_user"

reset_password
boolean

If true, sends password reset email after update

Example:

false

Response

200 - application/json

Edit result

success
boolean
message
string
Example:

"User updated successfully"

data
object