PUT: /profile/indexing
This endpoint allows you to update a Profile object.
Please find below an example of Profile json to update.
1
{
2
"consent_algorithmic": {
3
"owner": {
4
"parsing": true,
5
"revealing": false,
6
"embedding": true,
7
"searching": false,
8
"scoring": true,
9
"reasoning": false
10
},
11
"controller": {
12
"parsing": true,
13
"revealing": false,
14
"embedding": true,
15
"searching": false,
16
"scoring": true,
17
"reasoning": false
18
}
19
},
20
"info" : {
21
"full_name":"Harry Potter",
22
"first_name": "Harry",
23
"last_name": "Potter",
24
"date_birth": "1990-08-09T00:00:00+0000"
25
"email":"[email protected]",
26
"phone":"0202",
27
"gender": null,
28
"urls": {
29
"from_resume": [],
30
"linkedin":"",
31
"twitter":"",
32
"facebook":"",
33
"github":""},
34
"picture": "picture public url",
35
"location":{"text": null},
36
"summary": "Brief summary"
37
},
38
"text": "Harry Potter [email protected] 0202 Brief summary \
39
Mathematic Departement Developping Mathematicien University Description \
40
manual skill Creative spirit Writing skills Communication english football",
41
"experiences": [{
42
"date_start": {"iso8601": "2016-01-01T00:00:00"},
43
"date_end": {"iso8601": "2018-07-01T00:00:00"},
44
"title": "Lead",
45
"company": "Mathematic Departement",
46
"description": "Developping."
47
"location": {"text":"Paris"},
48
"certifications": [{
49
"name": "certificate exp",
50
"value": null
51
}],
52
"courses": [{
53
"name": "course exp",
54
"value": null
55
}],
56
"tasks": [{
57
"name": "task exp",
58
'value': null
59
}],
60
"skills": [{
61
"name": "skill exp",
62
"value": null,
63
"type" : "hard"
64
}]
65
}],
66
"experiences_duration":5,
67
"educations": [{
68
"date_start": {"iso8601": "2016-01-01T00:00:00"},
69
"date_end": {"iso8601": "2018-01-01T00:00:00"},
70
"title": "Mathematicien",
71
"school": "University",
72
"description": "Description",
73
"location": {"text":"Scotland", "lat":"lat", "lng": "lng"},
74
"certifications": [{
75
"name": "certificate edu",
76
"value": null
77
}],
78
"courses": [{
79
"name": "course edu",
80
"value": null
81
}],
82
"tasks": [{
83
"name": "task edu",
84
"value": null
85
}],
86
"skills": [{
87
"name": "skill edu",
88
"value": null,
89
"type" : "hard"
90
}]
91
}],
92
"educations_duration":4,
93
"certifications": [
94
{"name": "certificate exp", "value": null},
95
{"name": "certificate edu", "value": null}
96
],
97
"courses": [
98
{"name": "course exp", "value": null},
99
{"name": "cours edu", "value": null}],
100
"tasks": [
101
{"name": "task exp", "value": null},
102
{"name": "task edu", "value": null}],
103
"skills": [{"name":"manual skill", "type": "hard", "value": null},
104
{"name":"Creative spirit", "type": "soft", "value": null},
105
{"name":"Writing skills", "type": "hard", "value": null},
106
{"name":"Communication", "type": "soft", "value": null},
107
{"name": "skill edu", 'value': null, "type": "hard"}
108
{"name": "skill exp", 'value': null, "type": "hard"}],
109
"languages" : [{"name":"english", "value": null}],
110
"interests": [{"name":"football", "value": null}],
111
"tags":[{"name":"archive", "value": false}],
112
"metadatas":[],
113
"labels":[{"stage":"yes", "job_key":"job_key"}],
114
"attachments": []
115
}
Copied!
put
https://api.hrflow.ai
/v1/profile/indexing
/profile/indexing
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
1
{"iso8601" : "2018-01-01T00:00:00"}
Copied!
Python
Javascript
1
from hrflow import Hrflow
2
3
client = Hrflow(api_secret="Your API Key", api_user="Your API user email")
4
5
data = {
6
"consent_algorithmic": {
7
"owner": {
8
"parsing": True,
9
"revealing": False,
10
"embedding": True,
11
"searching": False,
12
"scoring": True,
13
"reasoning": False
14
},
15
"controller": {
16
"parsing": True,
17
"revealing": False,
18
"embedding": True,
19
"searching": False,
20
"scoring": True,
21
"reasoning": False
22
}
23
},
24
"info" : {
25
"full_name":"Harry Potter",
26
"first_name": "Harry",
27
"last_name": "Potter",
28
"date_birth": "1990-08-09T00:00:00+0000"
29
"email":"[email protected]",
30
"phone":"0202",
31
"gender": None,
32
"urls": {
33
"from_resume": [],
34
"linkedin":"",
35
"twitter":"",
36
"facebook":"",
37
"github":""},
38
"picture":None,
39
"location":{"text": None},
40
"summary": "Brief summary"
41
},
42
"text": "Harry Potter [email protected] 0202 Brief summary Mathematic Departement Developping Mathematicien University Description manual skill Creative spirit Writing skills Communication english football",
43
"experiences": [{
44
"date_start": {"iso8601": "2018-01-01T00:00:00"},
45
"date_end": {"iso8601": "2018-07-01T00:00:00"},
46
"title": "Lead",
47
"company": "Mathematic Departement",
48
"description": "Developping.",
49
"location": {"text":"Paris", "lat":"lat", "lng": "lng"},
50
"certifications": [{"name": "certificate exp", "value": None}],
51
"courses": [{"name": "course exp", "value": None}],
52
"tasks": [{"name": "task exp", "value": None}],
53
"skills": [{"name": "skill exp", "type" : "hard", "value": None}]
54
}],
55
"experiences_duration":5,
56
"educations": [{
57
"date_start": {"iso8601": "2016-01-01T00:00:00"},
58
"date_end": {"iso8601": "2018-01-01T00:00:00"},
59
"title": "Mathematicien",
60
"school": "University",
61
"description": "Description",
62
"location": {"text":"Scotland", "lat":"lat", "lng": "lng"},
63
"certifications": [{"name": "certificate edu", "value": None}],
64
"courses": [{"name": "course edu", "value": None}],
65
"tasks": [{"name": "task edu", "value": None}],
66
"skills": [{"name": "skill edu", "type": "hard", "value": None}]
67
}],
68
"educations_duration":4,
69
"certifications": [
70
{"name": "certificate exp", "value": None},
71
{"name": "certificate edu", "value": None}
72
],
73
"courses": [
74
{"name": "course exp", "value": None},
75
{"name": "course edu", "value": None}],
76
"tasks": [
77
{"name": "task exp", "value": None},
78
{"name": "task edu", "value": None}],
79
"skills": [
80
{"name":"manual skill", "type": "hard", "value": None},
81
{"name":"Creative spirit", "type": "soft", "value": None},
82
{"name":"Writing skills", "type": "hard", "value": None},
83
{"name":"Communication", "type": "soft", "value": None},
84
{"name": "skill edu", "type": "hard", "value": None}
85
{"name": "skill exp", "type": "hard", "value": None}],
86
"languages" : [{"name":"english", "value": None}],
87
"interests": [{"name":"football", "value": None}],
88
"tags":[{"name":"archive", "value": False}],
89
"metadatas":[],
90
"labels":[{"stage":"yes", "job_key":"job_key"}],
91
"attachments": []
92
}
93
94
client.profile.indexing.edit(source_key="source_key", key="profile_key", profile_json=data)
Copied!
1
import Hrflow from 'hrflow';
2
const client = new Hrflow({
3
api_secret: 'Your API Key',
4
api_user: 'Your API user email',
5
});
6
7
const data = {
8
'consent_algorithmic': {
9
'owner': {
10
'parsing': true,
11
'revealing': false,
12
'embedding': true,
13
'searching': false,
14
'scoring': true,
15
'reasoning': false
16
},
17
'controller': {
18
'parsing': true,
19
'revealing': false,
20
'embedding': true,
21
'searching': false,
22
'scoring': true,
23
'reasoning': false
24
}
25
},
26
'info' : {
27
'full_name':'Harry Potter',
28
'first_name': 'Harry',
29
'last_name': 'Potter',
30
'date_birth': '1990-08-09T00:00:00+0000',
31
'email':'[email protected]',
32
'phone':'0202',
33
'gender': null,
34
'urls': {
35
'from_resume': [],
36
'linkedin': '',
37
'twitter': '',
38
'facebook': '',
39
'github': ''},
40
'picture': null,
41
'location':{'text': null},
42
'summary': 'Brief summary'
43
},
44
'text': 'Harry Potter [email protected] 0202 Brief summary Mathematic Departement Developping Mathematicien University Description manual skill Creative spirit Writing skills Communication english football',
45
'experiences': [{
46
'date_start': {'iso8601': '2018-01-01T00:00:00'},
47
'date_end': {'iso8601': '2018-07-01T00:00:00'},
48
'title': 'Lead',
49
'company': 'Mathematic Departement',
50
'description': 'Developping.',
51
'location': {'text':'Paris', "lat":"lat", "lng": "lng"},
52
'certifications': [{'name': 'certificate exp', 'value': null}],
53
'courses': [{'name': 'course exp', 'value': null}],
54
'tasks': [{'name': 'task exp', 'value': null}],
55
'skills': [{'name': 'skill exp', 'value' : null, 'type' : 'hard'}]
56
}],
57
'experiences_duration':5,
58
'educations': [{
59
'date_start': {'iso8601': '2016-01-01T00:00:00'},
60
'date_end': {'iso8601': '2018-01-01T00:00:00'},
61
'title': 'Mathematicien',
62
'school': 'University',
63
'description': 'Description',
64
'location': {'text':'Scotland', 'lat':'lat', 'lng': 'lng'},
65
'certifications': [{'name': 'certificate edu', 'value': null}],
66
'courses': [{'name': 'course edu', 'value': null}],
67
'tasks': [{'name': 'task edu', 'value': null}],
68
'skills': [{'name': 'skill edu', 'value': null, 'type' : 'hard'}]
69
}],
70
'educations_duration':4,
71
'certifications': [
72
{'name': 'certificate exp', 'value': null},
73
{'name': 'certificate edu', 'value': null}
74
],
75
'courses': [
76
{'name': 'course exp', 'value': null},
77
{'name': 'course edu', 'value': null}],
78
'tasks': [
79
{'name': 'task exp', 'value': null},
80
{'name': 'task edu', 'value': null}],
81
'skills': [
82
{'name': 'manual skill', 'type': 'hard', 'value': null},
83
{'name': 'Creative spirit', "type": 'soft', 'value': null},
84
{'name': 'Writing skills', "type": 'hard', 'value': null},
85
{'name': 'Communication', 'type': 'soft', "value": null},
86
{'name': 'skill edu', 'value': null, 'type': "hard"}
87
{'name': 'skill exp', 'value': null, 'type': "hard"}],
88
'languages' : [{'name':'english', 'value': null}],
89
'interests': [{'name':'football', 'value': null}],
90
'tags':[{'name':'archive', 'value': false}],
91
'metadatas':[],
92
'labels':[{'stage':'yes', 'job_key':'job_key'}],
93
'attachments': []
94
};
95
96
client.profile.indexing.edit(
97
'source_key',
98
'profile_key',
99
data
100
).then(response => {
101
console.log(respone);
102
// ...
103
});
Copied!
Last modified 4mo ago
Copy link