Public
Members
Import (create or update) members (employees) through a csv file
post/v1/public/members/import-file
Request
- Base URLhttps://api.evolia.com
- AuthHTTP basic
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Query parameters
stopOnErrorsboolean
When true, if the file contains errors like duplicate emails, a 422 is return with an error response. It is set to false if not specified.
idField'code' | 'email'
You can choose between employee code or email field contained in the file to match and update existing employee, if no match a new employee will be created. The chosen idField is mandatory for every row in the file. The code is used by default if not specified.
fileunknown required
<p>Csv file with comma delemiter.</p><p>Notes:</p><p>All members imported from the csv file are put in a queue executed each 20 minutes.</p><ul><li>You can add query string parameters in the request url: "stopOnErrors": boolean = false and / or "idField": code | email = "code".</li><li>You can use any fields in the ImportMemberRequest schema.</li><li>"fName" and "lName" fields are mandatory for a member creation.</li><li>The "idField", code (default) or email, is mandatory.</li><li>If idField (row.code | row.email) is set and no member has this idField (member.code | member.email) => a new member will be created.</li><li>If idField (row.code | row.email) is set and a member has this idField (row.code | row.email) => this member will be updated.</li><li>All fields containing more than 1 element must be separate with a semicolon ";" (ex: tslCodes, tslNames, skillWages, initialExperienceHoursBySkill).</li><li>For customFields, add new column(s) with the prefix "custom:" for the column name (ex: "custom:key 1", "custom:key 2").</li></ul>
Request body multipart/form-data
Example request
{
"fName": "John",
"lName": "Doe",
"email": "johndoe@email.com",
"phone": "5551112222",
"code": "1",
"hiringDate": "2021-01-31",
"hourlyWage": 18,
"maxHoursPerWeek": 40,
"maxHoursPerPayPeriod": 80,
"locale": "en",
"skillCodes": "S1;S2",
"skillNames": "SkillName1;SkillName2",
"skillWages": "S1:12.50;S2:15.25",
"initialExperienceHoursBySkill": "S1:150;S2:250.5;S3:100",
"teamCodes": "T1;T2",
"teamNames": "TeamName1;TeamName2",
"locationCodes": "L1;L2",
"locationNames": "LocationName1;LocationName2",
"pin": "654321",
"birthdate": "2001-01-31"
}Response
Changes
No recorded changes to this operation across all 8 revisions of this API.