Set Profile¶
Set the current user’s profile, all parameters are added to the profile and stored in the session. Only use it in conjunction with Studio’s Personas.
Note
Any parameter included in the request will be added as a property for the user profile, if the request is made without any parameter then profile will be cleared.
Resource Information¶
This service uses the tomcat application on port 8080 by default. To see a list of default ports click here
The context for this API is /
.
HTTP Verb
|
GET
|
URL
|
/api/1/profile/set |
Response Formats
|
JSON |
Example¶
Request¶
GET .../api/1/profile/set.json?username=john&lastname=doe&age=30
Response¶
Status 200 OK
{
"id": "65de6381b77c310708fbde2665de6381b77c310708fbde26",
"username": "john",
"lastname": "doe",
"age": "30"
}
Responses¶
Status
|
Location
|
Response Body
|
---|---|---|
200
|
See example above.
|
|
500
|
{ "message" : "Internal server error" } |