Please find below an example of Json profile that could be submitted.
{"consent_algorithmic": {"owner": {"parsing": true,"revealing": false,"embedding": true,"searching": false,"scoring": true,"reasoning": false},"controller": {"parsing": true,"revealing": false,"embedding": true,"searching": false,"scoring": true,"reasoning": false}},"info" : {"full_name":"Harry Potter","first_name": "Harry","last_name": "Potter","email":"harry.potter@gmail.com","phone":"0202","gender": null,"urls": {"from_resume": [],"linkedin":"","twitter":"","facebook":"","github":""},"picture":null,"location":{"text": null},"summary": "Brief summary"},"text": "Harry Potter harry.potter@gmail.com 0202 Brief summary \Mathematic Departement Developping Mathematicien University Description \manual skill Creative spirit Writing skills Communication english football","experiences": [{"date_start": {"iso8601": "2016-01-01T00:00:00"},"date_end": {"iso8601": "2018-07-01T00:00:00"},"title": "Lead","company": "Mathematic Departement","location": {"text":"Paris"},"description": "Developping."}],"experiences_duration":5,"educations": [{"date_start": {"iso8601": "2016-01-01T00:00:00"},"date_end": {"iso8601": "2018-01-01T00:00:00"},"title": "Mathematicien","school": "University","description": "Description","location": {"text":"Scotland", "lat":"lat", "lng": "lng"}}],"educations_duration":4,"skills": [{"name":"manual skill", "type": "hard", "value": null},{"name":"Creative spirit", "type": "soft","value": null},{"name":"Writing skills", "type": "hard","value": null},{"name":"Communication", "type": "soft","value": null}],"languages" : [{"name":"english", "value": null}],"interests": [{"name":"football", "value": null}],"tags":[{"name":"archive", "value": false}],"metadatas":[],"labels":[{"stage":"yes", "job_key":"job_key"}],"attachments": []}
{"code": 201,"message": "Profile created","data": {"id": id,"key": "profile_key","reference": null,"archive": null,"consent_algorithmic": {"owner": {"parsing": true,"revealing": false,"embedding": true,"searching": false,"scoring": true,"reasoning": false},"controller": {"parsing": true,"revealing": false,"embedding": true,"searching": false,"scoring": true,"reasoning": false}},"source": {"id": id,"key": "source_key","name": "source name","type": "api","subtype": "http_api"},"updated_at": "2020-07-29T11:45:37+0000","created_at": "2020-07-29T11:45:37+0000","info": {"full_name": "Harry Potter","first_name": "Harry","last_name": "Potter","email": "harry.potter@gmail.com","phone": "0202","location": {"text": null,"lat": null,"lng": null,"gmaps": null,"fields": null},"urls": {"from_resume": [],"linkedin": "","twitter": "","facebook": "","github": "","picture": ""},"picture": null,"gender": null,"summary": "Brief summary"},"text_language": null,"text": null,"experiences_duration": 5,"educations_duration": 4,"experiences": [{"key": "c4ade5ca8f3ebab04acc5e91fde5f9bb400d60cb","title": "Lead","description": "Developping.","location": {"text": "Paris","lat": null,"lng": null,"gmaps": null,"fields": null},"date_start": "2018-01-01T00:00:00","date_end": "2018-07-01T00:00:00","hard_skills": null,"soft_skills": null,"company": "Mathematic Departement"}],"educations": [{"key": "3ea49b56c3dc6e4a0bde8bc2ca159560e1f57cb5","title": "Mathematicien","description": "Description","location": {"text": "Scotland","lat": "lat","lng": "lng","gmaps": null,"fields": null},"date_start": "2016-01-01T00:00:00","date_end": "2018-01-01T00:00:00","hard_skills": null,"soft_skills": null,"school": "University"}],"attachments": [],"skills": [{"name": "manual skill","type": "hard","value": null},{"name": "Creative spirit","type": "soft","value": null},{"name": "Writing skills","type": "hard","value": null},{"name": "Communication","type": "soft","value": null}],"languages": [{"name": "english","value": null}],"interests": [{"name": "football","value": null}],"labels": [{"stage": "yes","job_key": "job_key"}],"tags": [{"name": "archive","value": false}],"metadatas": []}}
{"code": 400,"message": "Invalid source fields"}
It is highly recommended to post the profile with a text field combining First Name / Last Name , Summary and education / experience 's description.
date_start and date_end in Experience and Education are objects, or conversely the GET endpoint sends you back date_start and date_end as string
{"iso8601" : "2018-01-01T00:00:00"}
from hrflow import Hrflow​client = Hrflow(api_secret="Your API Key", api_user="Your API user email")​data = {"consent_algorithmic": {"owner": {"parsing": True,"revealing": False,"embedding": True,"searching": False,"scoring": True,"reasoning": False},"controller": {"parsing": True,"revealing": False,"embedding": True,"searching": False,"scoring": True,"reasoning": False}},"info" : {"full_name":"Harry Potter","first_name": "Harry","last_name": "Potter","email":"harry.potter@gmail.com","phone":"0202","gender": None,"urls": {"from_resume": [],"linkedin":"","twitter":"","facebook":"","github":""},"picture":None,"location":{"text": None},"summary": "Brief summary"},"text": "Harry Potter harry.potter@gmail.com 0202 Brief summary Mathematic Departement Developping Mathematicien University Description manual skill Creative spirit Writing skills Communication english football","experiences": [{"date_start": {"iso8601": "2018-01-01T00:00:00"},"date_end": {"iso8601": "2018-07-01T00:00:00"},"title": "Lead","company": "Mathematic Departement","location": {"text":"Paris"},"description": "Developping."}],"experiences_duration":5,"educations": [{"date_start": {"iso8601": "2016-01-01T00:00:00"},"date_end": {"iso8601": "2018-01-01T00:00:00"},"title": "Mathematicien","school": "University","description": "Description","location": {"text":"Scotland", "lat":"lat", "lng": "lng"}}],"educations_duration":4,"skills": [{"name":"manual skill", "type": "hard", "value": None},{"name":"Creative spirit", "type": "soft","value": None},{"name":"Writing skills", "type": "hard","value": None},{"name":"Communication", "type": "soft","value": None}],"languages" : [{"name":"english", "value": None}],"interests": [{"name":"football", "value": None}],"tags":[{"name":"archive", "value": False}],"metadatas":[],"labels":[{"stage":"yes", "job_key":"job_key"}],"attachments": []};​client.profile.indexing.add_json(source_key="source_key", profile_json=data)
import Hrflow from 'hrflow';const client = new Hrflow({api_secret: 'Your API Key',api_user: 'Your API user email',});​const data = {'consent_algorithmic': {'owner': {'parsing': true,'revealing': false,'embedding': true,'searching': false,'scoring': true,'reasoning': false},'controller': {'parsing': true,'revealing': false,'embedding': true,'searching': false,'scoring': true,'reasoning': false}},'info' : {'full_name':'Harry Potter','first_name': 'Harry','last_name': 'Potter','email':'harry.potter@gmail.com','phone':'0202','gender': null,'urls': {'from_resume': [],'linkedin': '','twitter': '','facebook': '','github': ''},'picture': null,'location':{'text': null},'summary': 'Brief summary'},'text': 'Harry Potter harry.potter@gmail.com 0202 Brief summary Mathematic Departement Developping Mathematicien University Description manual skill Creative spirit Writing skills Communication english football','experiences': [{'date_start': {'iso8601': '2018-01-01T00:00:00'},'date_end': {'iso8601': '2018-07-01T00:00:00'},'title': 'Lead','company': 'Mathematic Departement','location': {'text':'Paris'},'description': 'Developping.'}],'experiences_duration':5,'educations': [{'date_start': {'iso8601': '2016-01-01T00:00:00'},'date_end': {'iso8601': '2018-01-01T00:00:00'},'title': 'Mathematicien','school': 'University','description': 'Description','location': {'text':'Scotland', 'lat':'lat', 'lng': 'lng'}}],'educations_duration':4,'skills': [{'name':'manual skill', 'type': 'hard', 'value': null},{'name':'Creative spirit', 'type': 'soft','value': null},{'name':'Writing skills', 'type': 'hard','value': null},{'name':'Communication', 'type': 'soft','value': null}],'languages' : [{'name':'english', 'value': null}],'interests': [{'name':'football', 'value': null}],'tags':[{'name':'archive', 'value': false}],'metadatas':[],'labels':[{'stage':'yes', 'job_key':'job_key'}],'attachments': []};​client.profile.indexing.addJson('source_key', data).then(response => {console.log(respone);// ...});