You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: hrflow/hrflow/profile/storing.py
+116-7Lines changed: 116 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -1,15 +1,16 @@
1
1
importjson
2
+
2
3
from ..utilsimport (
4
+
ORDER_BY_VALUES,
5
+
SORT_BY_VALUES,
3
6
format_item_payload,
4
7
validate_boolean,
5
8
validate_key,
6
9
validate_limit,
7
10
validate_page,
8
11
validate_provider_keys,
9
-
validate_response,
10
12
validate_reference,
11
-
ORDER_BY_VALUES,
12
-
SORT_BY_VALUES,
13
+
validate_response,
13
14
validate_value,
14
15
)
15
16
@@ -22,7 +23,115 @@ def __init__(self, api):
22
23
self.client=api
23
24
24
25
defadd_json(self, source_key, profile_json):
25
-
"""Use the api to add a new profile using profile_data."""
26
+
"""This endpoint allows you to Index a Profile object.
27
+
28
+
Parameters
29
+
----------
30
+
source_key : string [required]
31
+
Identification key of the Source attached to the Profile.
32
+
profile_json : dict [required]
33
+
A dictionary representing the HrFlow.ai Profile object. The dictionary should have the following fields:
34
+
35
+
- key (str): Identification key of the Profile.
36
+
- reference (str): Custom identifier of the Profile.
37
+
- text_language (str): Code language of the Profile. Example : `en` for English.
38
+
- text (str): Full text of the content of the Profile.
39
+
- consent_algorithmic (dict) : Algorithmic consent status of the Profile.
40
+
- owner (dict) : Owner of the Profile.
41
+
- parsing (bool)
42
+
- revealing (bool)
43
+
- embedding (bool)
44
+
- searching (bool)
45
+
- scoring (bool)
46
+
- upskilling (bool)
47
+
- created_at (str): Creation date of the Profile in ISO 8601 format (YYYY-MM-DDTHH:MM:SSZ). This could be the date of the creation of the Profile in your ATS.
48
+
49
+
------------------- Profile's info -------------------
50
+
- info (dict): Object containing the Profile's info.
51
+
- full_name (str): Full name of the Profile.
52
+
- first_name (str): First name of the Profile.
53
+
- last_name (str): Last name of the Profile.
54
+
- email (str): Email of the Profile.
55
+
- phone (str): Phone number of the Profile.
56
+
- date_birth (str): Date of birth of the Profile in ISO 8601 format (YYYY-MM-DD).
0 commit comments