Create a profile
const url = 'http://127.0.0.1:8765/api/profiles';const options = { method: 'POST', headers: {'Content-Type': 'application/json'}, body: '{"label":"Backend","titles":["Software Engineer"]}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url http://127.0.0.1:8765/api/profiles \ --header 'Content-Type: application/json' \ --data '{ "label": "Backend", "titles": [ "Software Engineer" ] }'Create a profile. Every profile but the default one has its own location, work mode, countries and posted window. The first profile is the default and uses the setup settings. The resume: the one named by resume_record_id and resume_revision_id; else the selected profile’s resume. With a master resume stored, a profile that named no resume then gets its own first selection of the master (made by code, with no model call, from the postings its titles match in the local index): it is made after this answer, so the response still shows the selected profile’s resume, GET /api/master/selection lists the profile under pending meanwhile, and GET /api/profiles shows its own resume once it has landed.
Request Bodyrequired
Section titled “Request Bodyrequired”object
Profile name.
Search queries (default: titles).
Stored resume record.
Stored resume revision.
This profile’s own {location, work_mode, countries, max_age_days}; omitted = a copy of the default’s, null = same as default.
object
Titles to search (non-empty).
Words or phrases: a posting whose title holds one (whole words, any case) is not in this profile’s list.
Example
{ "label": "Backend", "titles": [ "Software Engineer" ]}Responses
Section titled “Responses”Success.
object
Example
{ "profile": { "label": "Backend", "profile_id": "prof_1" }}Invalid_value
object
object
Example
{ "error": { "code": "invalid_value", "message": "..." }}Forbidden / forbidden_origin: loopback peer and Host 127.0.0.1:<port> or localhost:<port> only (Origin too on writes).
object
object
Examplegenerated
{ "error": { "allowed_keys": [ "example" ], "code": "example", "message": "example" }}Not_found
object
object
Example
{ "error": { "code": "not_found", "message": "..." }}Unsupported_media_type: writes need Content-Type: application/json.
object
object
Examplegenerated
{ "error": { "allowed_keys": [ "example" ], "code": "example", "message": "example" }}Wrong_type
object
object
Example
{ "error": { "code": "wrong_type", "message": "..." }}