Update a profile
const url = 'http://127.0.0.1:8765/api/profiles/example';const options = { method: 'PUT', 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 PUT \ --url http://127.0.0.1:8765/api/profiles/example \ --header 'Content-Type: application/json' \ --data '{ "label": "Backend", "titles": [ "Software Engineer" ] }'Update a profile. search_settings on the default profile is a 409: it uses the setup settings (PUT /api/setup). An unknown key inside search_settings lists that object’s allowed_keys.
Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”A profile id from GET /api/profiles.
Request Bodyrequired
Section titled “Request Bodyrequired”object
Profile name.
Search queries.
Stored resume record.
Stored resume revision.
Any of {location, work_mode, countries, max_age_days} to change; null = same as default.
object
Titles (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": { "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": "..." }}Scout_profile_default_search_settings
object
object
Example
{ "error": { "code": "scout_profile_default_search_settings", "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": "..." }}