Authorizations
Path Parameters
Body
Response
200 - application/vnd.api+json
Success
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": {}
}
Update the current user profile
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": {}
}
Show child attributes
Success
Show child attributes
Was this page helpful?