Skip to main content
PATCH
/
user
/
profile
/
{id}
Python (SDK)
import latitudesh_python_sdk
from latitudesh_python_sdk import Latitudesh
import os


with Latitudesh(
    bearer=os.getenv("LATITUDESH_BEARER", ""),
) as latitudesh:

    res = latitudesh.user_profile.update(id="user_3pwPRamaN8FKz8EELKNmH0XMvvyR", data={
        "id": "user_3pwPRamaN8FKz8EELKNmH0XMvvyR",
        "type": latitudesh_python_sdk.PatchUserProfileUserProfileType.USERS,
        "attributes": {
            "role": latitudesh_python_sdk.PatchUserProfileUserProfileRole.COLLABORATOR,
        },
    })

    # Handle response
    print(res)
{
  "data": {
    "id": "user_lGJBgAxbgeUJ4yZj56wmfrK4vag",
    "type": "users",
    "attributes": {
      "first_name": "Tamesha",
      "last_name": "Barton",
      "email": "paola@halvorson.test",
      "role": "owner",
      "created_at": null,
      "updated_at": null
    }
  },
  "meta": {}
}

Authorizations

Authorization
string
header
required

Path Parameters

id
string
required

Body

data
object
required

Response

200 - application/vnd.api+json

Success

data
object
I