EXPORT - Get a user's employments
Resource URL
URL: user/export/employments
Parameters
string username | Username |
string password | Password |
int pageNumber | Page number to retrieve |
int pageSize | Maximum number of elements on each page |
Return value
employmentsInformation | A list containing emplyments data for the users |
employmentsInformation[].id | ID of the user |
employmentsInformation[].externalId | External ID of the user |
employmentsInformation[].employments | A list containing employments of the user |
employmentsInformation[].employments[].name | Name of the company |
employmentsInformation[].employments[].status | One of the values: ACTIVE, INACTIVE or NEEDS_CONFIRMATION. May be empty if the integration user does not have rights to see this status |
employmentsInformation[].employments[].employeeNumber | Employee number. May be empty |
pageNumber | Number of the current page |
pageSize | Size of the current page |
Example request
URL | https://www.trainingportal.no/mintra/rest/user/export/employments |
POST DATA | username=username&password=secret&pageNumber=10&pageSize=20 |
{
"employmentInformations": [
{
"id": 123,
"externalId": "abc",
"employments": [
{
"name": "Oil and Gas AS",
"employeeNumber": "001",
"status": "ACTIVE"
},
{
"name": "Rent a worker AS",
"employeeNumber": "",
"status": ""
}
]
}
],
"pageNumber": 10,
"pageSize": 20
}