Create Application
Create an application in Tamago-DB.
https://demo.tamago-db.com/api/doc#post--api-application
Curl Example
curl -X POST "https://demo.tamago-db.com/api/application"
-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,"job":12}] }'
Response
Response will contain the ID of the newly created application record.
{"status":201,"data":{"id":6}}
Add Attachment
Add an attachment to an existing application record.
https://demo.tamago-db.com/api/doc#post--api-application-{id}-attachment
Curl Example
curl -X POST "https://demo.tamago-db.com/api/application/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.