This is currently only available in beta.


API Documentation


Create Candidate


Create a candidate record in Tamago-DB. 


https://demo.tamago-db.com/api/doc#post--api-candidate


Curl Example


curl -X POST "https://demo.tamago-db.com/api/candidate"       
    -H 'Content-Type: application/json'       
    -H 'x-auth-token: api_key'       
    -d '{ "name" : { "familyName": "Smith", "givenName": "John" }, "gender": "m", "emails": [{ "value": "jsmith@email.com", "type": "work" }], "privacyPolicy" : true, "languages": [{"languageLocale":"en","ability":5}] }'


Response


Response will contain the ID of the newly created candidate record.


{"status":201,"data":{"id":6}}



Add Attachment


Add an attachment to an existing candidate record.


https://demo.tamago-db.com/api/doc#post--api-candidate-{id}-attachment


Curl Example


curl -X POST "https://demo.tamago-db.com/api/candidate/6/attachment"
    -H 'x-auth-token: <api key>'
    -H 'Content-Type: application/json'
    -d '{"attachments":[{"name":"word_test.doc","file":"http://www.remote.url/files/word_test.doc"},{"name":"test-resume.pdf","file":"<base 64 encode file data>"}]}'


Response


The response will contain feedback if any files failed to be added to the candidate.