PUT
/
api
/
v1
/
users
/
import os
from syllable_sdk import SyllableSDK


with SyllableSDK(
    api_key_header=os.getenv("SYLLABLESDK_API_KEY_HEADER", ""),
) as ss_client:

    res = ss_client.v1.update(request={
        "email": "user@email.com",
        "first_name": "Jane",
        "last_name": "Smith",
        "role_id": 1,
        "last_updated_comments": "Updated to change which role was assigned",
    })

    # Handle response
    print(res)
{
  "email": "user@email.com",
  "first_name": "Jane",
  "last_name": "Smith",
  "role_id": 1,
  "last_updated_comments": "Updated to change which role was assigned",
  "id": 1,
  "last_updated": "2023-11-07T05:31:56Z",
  "last_updated_by": "admin@email.com",
  "last_session_at": "2025-01-01T12:00:00Z"
}

Authorizations

Syllable-API-Key
string
header
required

Body

application/json

Request model to update an existing user.

Response

200
application/json

Successful Response

Information about a user.