Trying to modify the Experience_Details" list via API
Hey there,
I've built a candidate portal for my candidates to be able to update their experience themselves on this portal app, and I've connected it to my zoho recruit, via API.
What I'm struggling to do is to remove an experience (called "Experience_Details" in the API)
I'm making this call:
To update a specific record;
https://recruit.zoho.com/recruit/v2/Candidates/{record_id}
and I'm sending this body :
- {
- "data": [{
- "id": "<zoho_record_id>",
- "Experience_Details": [<experience_list>]
- }]
- }
<experience_list> is my list of experiences, like this instance:
- {
- "Company": "Acme1",
- "I_currently_work_here": false,
- "Summary": "dec",
- "Work_Duration": {
- "from": "2022-07-01",
- "to": "2024-07-01"
- },
- "id": "480513000008992002",
- "Occupation_Title": "Dev"
- },
- {
- "Company": "Bouygues construction",
- "I_currently_work_here": false,
- "Summary": "renovation",
- "Work_Duration": {
- "from": "2022-07-01",
- "to": "2024-07-01"
- },
- "id": "480513000008979001",
- "Occupation_Title": "CHAUFFAGISTE"
- }
Here is the success response I get from Zoho API :
- {
"data": [
{
"code": "SUCCESS",
"details": {
"Modified_Time": "2024-06-20T10:47:03+02:00",
"Modified_By": {
"name": "Matthieu Bouilde",
"id": "480513000000216003"
},
"Experience_Details": [
{
"id": "480513000008979001"
}
],
"Created_Time": "2024-05-30T11:01:47+02:00",
"id": "480513000008909087",
"Created_By": {
"name": "Matthieu Bouilde",
"id": "480513000000216003"
}
},
"message": "record updated",
"status": "success"
}
]
}
It seems to be a sucess... But when I check my candidate, there are still ALL of the old experiences...
What am I doing wrong ?