updateUserProfileV2
Update User Profile information.
Note: Required Custom Scope: profapi:core-std-profile:write or profapi:core-all-profile:write. See Custom Scopes for details on scope differences and field-level access.
Template for Query:
mutation UpdateUserProfile($input: UpdateUserProfileInput!) {
updateUserProfileV2(input: $input) {
# UserProfile Fields
}
}
Template for Query Variables:
{
"input": {
"id": "<SOME-STRING-TYPE-SCALAR-VALUE>",
"firstName": "<SOME-STRING-TYPE-SCALAR-VALUE>",
"lastName": "<SOME-STRING-TYPE-SCALAR-VALUE>",
"linkedInUrl": "<SOME-STRING-TYPE-SCALAR-VALUE>",
"blogUrl": "<SOME-STRING-TYPE-SCALAR-VALUE>",
"countryCode": "<SOME-STRING-TYPE-SCALAR-VALUE>",
"language": "<SOME-STRING-TYPE-SCALAR-VALUE>",
"isOptIn": "<SOME-BOOLEAN-TYPE-SCALAR-VALUE>",
"websiteUrl": "<SOME-STRING-TYPE-SCALAR-VALUE>",
"contactInput": {
"address1": "<SOME-STRING-TYPE-SCALAR-VALUE>",
"address2": "<SOME-STRING-TYPE-SCALAR-VALUE>",
"city": "<SOME-STRING-TYPE-SCALAR-VALUE>",
"state": "<SOME-STRING-TYPE-SCALAR-VALUE>",
"country": "<SOME-STRING-TYPE-SCALAR-VALUE>",
"postalCode": "<SOME-STRING-TYPE-SCALAR-VALUE>",
"alternateEmail": "<SOME-STRING-TYPE-SCALAR-VALUE>",
"phones": [
{
"number": "<SOME-STRING-TYPE-SCALAR-VALUE>",
"countryCode": "<SOME-STRING-TYPE-SCALAR-VALUE>",
"phoneType": "<SOME-STRING-TYPE-SCALAR-VALUE>",
"extension": "<SOME-STRING-TYPE-SCALAR-VALUE>"
}
]
},
"professionalInfoInput": {
"company": "<SOME-STRING-TYPE-SCALAR-VALUE>",
"jobTitle": "<SOME-STRING-TYPE-SCALAR-VALUE>",
"aboutMe": "<SOME-STRING-TYPE-SCALAR-VALUE>",
"industry": "<SOME-STRING-TYPE-SCALAR-VALUE>",
"roleId": "<SOME-STRING-TYPE-SCALAR-VALUE>",
"industryTaxonomyIds": [
{
"industryGroupId": "<SOME-STRING-TYPE-SCALAR-VALUE>",
"segmentId": "<SOME-STRING-TYPE-SCALAR-VALUE>",
"subSegmentId": "<SOME-STRING-TYPE-SCALAR-VALUE>"
}
]
}
}
Show More
Arguments
| input* | Contains the input required to update the user’s profile. |
* Required
Possible Returns
| Value Type | Description |
|---|---|
| UserProfile | Represents the user profile. |
Examples
Example 1
Update User Profile information.
Query:
mutation UpdateUserProfile($input: UpdateUserProfileInput!) {
updateUserProfileV2(input: $input) {
personalInfo {
basicInfo {
firstName
lastName
}
contactInfo {
phones {
category
countryCode
number
extension
}
}
aboutMe
webLinks {
linkedInProfile
blog
website
facebookUrl
}
professionalInfo {
jobTitle
industry
company {
companyName
}
additionalProfessionalInfo {
roleId
industryTaxonomyIds {
industryGroupId
segmentId
subSegmentId
}
}
}
contactInfo {
address {
addressLine1
addressLine2
city
stateProvince
postalCode
country
}
}
}
}
}
Show More
Query Variables:
{
"input": {
"id": "<USER_ID>",
"firstName": "Profile",
"lastName": "Staging",
"linkedInUrl": "https://www.linkedin.com/in/profilestaging",
"blogUrl": "http://www.autodesk.com/blogs",
"countryCode": "US",
"language": "en",
"isOptIn": false,
"websiteUrl": "http://www.autodesk.com",
"contactInput": {
"address1": "1 Market Street",
"address2": "",
"city": "San Francisco",
"state": "CA",
"country": "United States",
"postalCode": "94585",
"alternateEmail": "profilestaging@gmail.com",
"phones": [
{
"number": "9916187425",
"countryCode": "91",
"phoneType": "Mobile",
"extension": "001"
}
]
},
"professionalInfoInput": {
"company": "Autodesk Inc",
"jobTitle": "Software QA Bot",
"aboutMe": "This is profile staging account.",
"industry": "",
"roleId": "",
"industryTaxonomyIds": []
}
}
}
Show More
Response:
{
"data": {
"updateUserProfileV2": {
"personalInfo": {
"basicInfo": {
"firstName": "Profile",
"lastName": "Staging"
},
"contactInfo": {
"phones": [
{
"category": "0",
"countryCode": "91",
"number": "9916187425",
"extension": "001"
}
],
"address": {
"addressLine1": "1 Market Street",
"addressLine2": "",
"city": "San Francisco",
"stateProvince": "CA",
"postalCode": "94585",
"country": "US"
}
},
"aboutMe": "This is profile staging account.",
"webLinks": {
"linkedInProfile": "https://www.linkedin.com/in/profilestaging",
"blog": "http://www.autodesk.com/blogs",
"website": "http://www.autodesk.com",
"facebookUrl": ""
},
"professionalInfo": {
"jobTitle": "Software QA Bot",
"industry": "",
"company": {
"companyName": "Autodesk Inc"
},
"additionalProfessionalInfo": {
"roleId": "",
"industryTaxonomyIds": []
}
}
}
}
}
}
Show More