Store a resume
POST
/api/resumes
const url = 'http://127.0.0.1:8765/api/resumes';const options = { method: 'POST', headers: {'Content-Type': 'application/json'}, body: '{"text":"..."}'};
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/resumes \ --header 'Content-Type: application/json' \ --data '{ "text": "..." }'Store a resume (pasted text or a base64 file). The resume is stored with its name and contact lines (email, phone, address, links) removed and discarded; contact_removed is {removed: {kind: count}, message} when any were, else null.
Request Body
Section titled “Request Body”Media typeapplication/json
object
content_base64
Uploaded file, base64.
string
file_name
Uploaded file name.
string
text
Resume text (exclusive with file_name).
string
Example
{ "text": "..."}Responses
Section titled “Responses”Success.
Media typeapplication/json
object
key
additional properties
any
Example
{ "record_id": "rec_1", "revision_id": "rev_1"}Forbidden / forbidden_origin: loopback peer and Host 127.0.0.1:<port> or localhost:<port> only (Origin too on writes).
Media typeapplication/json
object
error
required
object
allowed_keys
Array<string>
code
required
string
message
required
string
key
additional properties
any
Examplegenerated
{ "error": { "allowed_keys": [ "example" ], "code": "example", "message": "example" }}Unsupported_media_type: writes need Content-Type: application/json.
Media typeapplication/json
object
error
required
object
allowed_keys
Array<string>
code
required
string
message
required
string
key
additional properties
any
Examplegenerated
{ "error": { "allowed_keys": [ "example" ], "code": "example", "message": "example" }}Unknown_key, wrong_type, resume_input_invalid, resume_too_large
Media typeapplication/json
object
error
required
object
allowed_keys
Array<string>
code
required
string
message
required
string
key
additional properties
any
Example
{ "error": { "code": "unknown_key", "message": "..." }}