This method can be used for the following functionality: Update Profile for a User.
Parameters
The following URL, Headers and Parameters are required for requests to this API endpoint. Where a parameter is optional, it will be indicated. Otherwise treat all parameters as mandatory.
Headers
PUT /api/ss/users/:id/profile HTTP/1.1
Host: demo.attackforge.com
X-SSAPI-KEY: APIKey
Content-Type: application/json
Connection: close
Path
id (string)
Id of the user.
Example:
GET /api/ss/users/5e8017d2e1385f0c58e8f4f8/profile HTTP/1.1
Body
job_title (string) (optional)
Job title of the user.
Example:
organization (string) (optional)
Organization of the user.
Example:
business_group (string) (optional)
Business group of the user.
Example:
office_location (string) (optional)
Office location of the user.
Example:
about_me (string) (optional)
About the user.
Example:
tags (array of strings) (optional)
Tags for the user.
Example:
certifications (array of strings) (optional)
Certifications for the user.
Example:
education (array of objects) (optional)
Education for the user.
Example:
employment (array of objects) (optional)
Employment history for the user.
"duration" must be be either "0+ Years", "1-2 Years", "2-3 Years", "3-5 Years", "5-10 Years", "10+ Years"
Example:
Example
The following example is a cURL request to update the profile for a user.
Request
Include API Token instead of stars in 'X-SSAPI-KEY: ***************************************' parameter.
{
"employment": [
{
"role": "CEO/Chairman",
"company": "Wayne Enterprises",
"duration": "10+ Years",
"description": "I focus on Philanthropy and making Gotham City safer for future generations."
}
]
}
curl -X PUT 'https://localhost:3000/api/ss/users/5e5cbecee365f1003f3b20b8/profile' -H 'Host: localhost:3000' -H 'X-SSAPI-KEY: ***************************************' -H 'Content-Type: application/json' -H 'Connection: close' -d '{
"job_title": "CEO/Chairman",
"organization": "Wayne Foundation",
"business_group": "Wayne Enterprises",
"office_location": "Gotham City",
"about_me": "It's not who I am underneath, but what I do that defines me.",
"tags": [
"Vengeance"
],
"certifications": [
"Karate Black Belt",
"10th dan Jūdan",
"Jiu-Jitsu Red Belt"
],
"education": [
{
"qualification": "Bachelor in Criminology",
"institute": "Gotham University",
"completed": "December 1955"
}
],
"employment": [
{
"role": "CEO/Chairman",
"company": "Wayne Enterprises",
"duration": "10+ Years",
"description": "I focus on Philanthropy and making Gotham City safer for future generations."
}
]
}'