Post User Photo
curl --request POST \
--url https://api.studio.prisme.ai/v2/user/photo \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: multipart/form-data' \
--form photo='@example-file'const form = new FormData();
form.append('photo', '<string>');
const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
options.body = form;
fetch('https://api.studio.prisme.ai/v2/user/photo', 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/photo"
files = { "photo": ("example-file", open("example-file", "rb")) }
headers = {"Authorization": "Bearer <token>"}
response = requests.post(url, files=files, 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
Post User Photo
Update user photo
POST
/
v2
/
user
/
photo
Post User Photo
curl --request POST \
--url https://api.studio.prisme.ai/v2/user/photo \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: multipart/form-data' \
--form photo='@example-file'const form = new FormData();
form.append('photo', '<string>');
const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
options.body = form;
fetch('https://api.studio.prisme.ai/v2/user/photo', 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/photo"
files = { "photo": ("example-file", open("example-file", "rb")) }
headers = {"Authorization": "Bearer <token>"}
response = requests.post(url, files=files, 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
multipart/form-data
Photo as binary
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?