Patch My User
curl --request PATCH \
--url https://api.studio.prisme.ai/v2/user \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"firstName": "<string>",
"lastName": "<string>",
"meta": {},
"photo": "<string>",
"language": "<string>"
}
'const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
firstName: '<string>',
lastName: '<string>',
meta: {},
photo: '<string>',
language: '<string>'
})
};
fetch('https://api.studio.prisme.ai/v2/user', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.studio.prisme.ai/v2/user"
payload = {
"firstName": "<string>",
"lastName": "<string>",
"meta": {},
"photo": "<string>",
"language": "<string>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text){
"firstName": "<string>",
"email": "foo@prisme.ai",
"status": "pending",
"language": "<string>",
"authData": {
"anonymous": {},
"prismeai": {},
"azure": {
"id": "<string>",
"firstName": "<string>",
"lastName": "<string>",
"email": "<string>",
"language": "<unknown>"
}
},
"mfa": "totp",
"meta": {},
"orgSlugs": [
"<string>"
],
"platformRole": "<string>",
"groupAcls": {},
"createdAt": "<string>",
"updatedAt": "<string>",
"updatedBy": "<string>",
"lastName": "<string>",
"emailMasked": "<string>",
"photo": "<string>",
"groups": [
"<string>"
],
"identities": [
"<string>"
],
"membership": {
"roleSlug": "<string>",
"status": "active",
"joinedAt": "<string>",
"joinedVia": "direct",
"invitedAt": "<string>",
"invitedBy": "<string>"
},
"id": "<string>"
}{
"error": "BadParameters",
"message": "<string>",
"details": "<unknown>"
}{
"error": "AuthenticationError",
"message": "Unauthenticated"
}API Gateway
Patch My User
Update my user
PATCH
/
v2
/
user
Patch My User
curl --request PATCH \
--url https://api.studio.prisme.ai/v2/user \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"firstName": "<string>",
"lastName": "<string>",
"meta": {},
"photo": "<string>",
"language": "<string>"
}
'const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
firstName: '<string>',
lastName: '<string>',
meta: {},
photo: '<string>',
language: '<string>'
})
};
fetch('https://api.studio.prisme.ai/v2/user', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.studio.prisme.ai/v2/user"
payload = {
"firstName": "<string>",
"lastName": "<string>",
"meta": {},
"photo": "<string>",
"language": "<string>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text){
"firstName": "<string>",
"email": "foo@prisme.ai",
"status": "pending",
"language": "<string>",
"authData": {
"anonymous": {},
"prismeai": {},
"azure": {
"id": "<string>",
"firstName": "<string>",
"lastName": "<string>",
"email": "<string>",
"language": "<unknown>"
}
},
"mfa": "totp",
"meta": {},
"orgSlugs": [
"<string>"
],
"platformRole": "<string>",
"groupAcls": {},
"createdAt": "<string>",
"updatedAt": "<string>",
"updatedBy": "<string>",
"lastName": "<string>",
"emailMasked": "<string>",
"photo": "<string>",
"groups": [
"<string>"
],
"identities": [
"<string>"
],
"membership": {
"roleSlug": "<string>",
"status": "active",
"joinedAt": "<string>",
"joinedVia": "direct",
"invitedAt": "<string>",
"invitedBy": "<string>"
},
"id": "<string>"
}{
"error": "BadParameters",
"message": "<string>",
"details": "<unknown>"
}{
"error": "AuthenticationError",
"message": "Unauthenticated"
}Authorizations
BearerAuthOrgApiKeyAuthBearerAuth & OrgApiKeyAuth
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Body
application/json
Response
Success Response
Name
Example:
"foo@prisme.ai"
Available options:
pending, validated, deactivated Current MFA method (super admin only).
Available options:
totp, none, * Name
Partially masked email (e.g. "j***@acme.com"), returned to non-elevated callers in place of the clear-text email to disambiguate homonyms without exposing the full address.
Profile picture URL
Denormalized ":" tuples (super admin only).
Organization membership info (only returned when includeOrgMembership is set)
Hide child attributes
Hide child attributes
Unique id
Was this page helpful?