User Experience APIs
Add user experience
OVERVIEW
Overview
This API call is used to add a new experience object in the system.
HTTP Request
POST
/api/5/users/experiences?userid=<USERID>
URL Parameters
Parameter | Description |
USERID | The ID of the user whose experience to be added |
HTTP Request Object
POST http://example.com/context/api/5/users/experiences?userid=123
XML Request Example
<experience> <companyname>adfd</companyname> <jobtitle>asdf</jobtitle> <location>asdfdf</location> <description></description> <companywebsite>asdfd</companywebsite> <currentlyworking>false</currentlyworking> <frommonth>January</frommonth> <fromyear>2018</fromyear> <tomonth>January</tomonth> <toyear>2018</toyear> </experience>
JSON Request Example
{ "companyname": "adfd", "jobtitle": "asdf", "location": "asdfdf", "description": "", "companywebsite": "asdfd", "currentlyworking": "false", "frommonth": "January", "fromyear": "2018", "tomonth": "January", "toyear": "2018" }
HTTP Response
Success
HTTP response 201
XML Success Response (201)
<?xml version="1.0" encoding="UTF-8" ?>
<experience>
<id>3</id>
<link>http://example.com/context/api/4/users/experiences/3</link>
</experience>
JSON Success Response (201)
{
"experience": {
"id": "3",
"link": "http://example.com/context/api/4/users/experiences/3"
}
}
Error messages
Summary | Ref Code (V4) | Ref Code (before V4) |
User id is not in proper format | 113 | |
The given userid is invalid | 342 | |
The company name is required | 328 | |
The job title is required | 329 | |
The Experience From month field is required | 330 | |
The Experience From year field is required | 331 | |
The Experience To month field is required | 332 | |
The Experience To year field is required | 333 | |
The information in the Experience From month field is not valid | 335 | |
The information in the Experience To month field is not valid | 336 | |
Please enter a year between 1900 and the current year as your start date | 337 | |
Please enter a year between 1900 and the current year as your end date | 338 | |
The information in the Experience from year field is not formatted correctly | 339 | |
The information in the Experience To year field is not formatted correctly | 340 | |
The information in the Currently working value field is not valid | 341 |
Last Updated: Nov 08,2024
Comments
0 Comments