Update Staff Employment History
Changes one past job in a staff member’s employment history. Shared rules: see Writing data.
salarybox_idgoes in the URL path, not the body.- You never send ids. Name the entry by its current
company_name(matched trimmed and case-insensitively). If the staff member has more than one entry with that company, also send its currentjoining_date. - Send the values you want in the
new_fields. This is a PUT that sets values: anew_field that isnullor left out keeps its current value, and nothing is ever cleared. - Send at least one non-null
new_field, or you get400“Send at least one new_ field to change.” - Dates are checked against what the entry will hold once saved: a new joining date against the stored leaving date, and the other way round. Errors are reported under the
new_field you sent. salaryis returned as a string with 2 decimals, ornull.- As in the app, changing an entry cancels the staff member’s past-employment verification result, and a staff member who was marked verified shows “Details changed” in Staff Verification.
- Repeating the same request is safe. Use List Staff Employment History to read entries back.
Authentication
Format: “Api-Key {api-key}”
Path parameters
Request
The entry’s CURRENT company name. Matched trimmed and case-insensitively.
The entry’s CURRENT joining date, YYYY-MM-DD. Only needed when the staff member has more than one entry with that company.
New company name (trimmed). null or left out keeps the current value.
New job title (trimmed). null or left out keeps the current value.
YYYY-MM-DD; not in the future. null or left out keeps the current value.
YYYY-MM-DD; not in the future. null or left out keeps the current value.
A number (not text), 0 or more, up to 2 decimal places and 12 digits in total. null or left out keeps the current value.
A valid GSTIN (upper-cased for you); otherwise 400 “Invalid GSTIN.” null or left out keeps the current value.
null or left out keeps the current value.
Response
The employment history entry was updated. data has the same shape as Add Staff Employment History.
