Notes API
Notes ¶
New Note ¶
Add NotePOST/notes
CLIENTS ONLY: Add a new note (maximum length 300 characters).
Example URI
Headers
Content-Type: application/json; charset=UTF-8
X-Account-ID: ...
X-HMAC: ...
X-Recruiter-ID: ...
Body
{
"candidate_id": 123456,
"text": "abc"
}
201
Headers
Location: http://.../notes/{id}
401
413
415
Note List ¶
Get NotesGET/notes{?account_id,candidate_id,fields,page,per_page,recruiter_id,sort}
CLIENTS, ADMIN: Get a collection of notes, paginated, filtered and sorted according to parameters.
Example URI
- account_id
int
(optional) Example: 189520ID(s) of account(s) whose notes will be displayed
- candidate_id
int
(optional) Example: 123456,456789ID(s) of candidate(s) whose notes will be displayed
- fields
string
(optional) Example: candidate_idWhich fields to display
Choices:
account_id
candidate_id
created
id
recruiter_id
revision
text
updated
- page
int
(optional) Default: 1Page number / offset
- per_page
int
(optional) Example: 10Number of notes displayed per page
- recruiter_id
int
(optional) Example: 303656ID(s) of recruiter(s) whose notes will be displayed
- sort
string
(optional)Which field to sort by
Choices:
created
-created
updated
-updated
Headers
Content-Type: application/json; charset=UTF-8
X-Account-ID: ...
X-HMAC: ...
X-Recruiter-ID: ...
200
Headers
Content-Length: ...
Link: <http://.../notes?...per_page=3&page=2>; rel="next", ...
Body
[
{
"candidate_id" : 123456,
"created" : "...",
"id" : 1,
"revision" : 1,
"text" : "foo",
"updated" : "...",
"visible" : true
}
{
"candidate_id" : 123456,
"created" : "...",
"id" : 2,
"revision" : 1,
"text" : "boo",
"updated" : "...",
"visible" : true
}
{
"candidate_id" : 123456,
"created" : "...",
"id" : 3,
"revision" : 2,
"text" : "moo",
"updated" : "...",
"visible" : true
}
]
Headers
Content-Type: application/json; charset=UTF-8
X-Admin: ...
X-HMAC: ...
200
Headers
Content-Length: ...
Link: <http://.../notes?...per_page=3&page=2>; rel="next", ...
Body
[
{
"candidate_id" : 123456,
"created" : "...",
"id" : 1,
"revision" : 1,
"text" : "foo",
"updated" : "...",
"visible" : true
}
{
"candidate_id" : 123456,
"created" : "...",
"id" : 2,
"revision" : 1,
"text" : "boo",
"updated" : "...",
"visible" : true
}
{
"candidate_id" : 123456,
"created" : "...",
"id" : 3,
"revision" : 2,
"text" : "moo",
"updated" : "...",
"visible" : true
}
]
401
415
Single Note ¶
Get NoteGET/notes/
CLIENTS, ADMIN: Get a single note
Example URI
Headers
Content-Type: application/json; charset=UTF-8
X-Account-ID: ...
X-HMAC: ...
X-Recruiter-ID: ...
200
Headers
Content-Length: ...
Content-Type: application/json; charset=UTF-8
Body
{
"candidate_id": 123456,
"created": "...",
"id": 1,
"revision": 1,
"text": "foo",
"updated": "...",
"visible": true
}
Headers
Content-Type: application/json; charset=UTF-8
X-Admin: ...
X-HMAC: ...
200
Headers
Content-Length: ...
Content-Type: application/json; charset=UTF-8
Body
{
"candidate_id": 123456,
"created": "...",
"id": 1,
"revision": 1,
"text": "foo",
"updated": "...",
"visible": true
}
401
403
404
410
415
Patch NotePATCH/notes/
CLIENTS, ADMIN: Hide (‘delete’) note, or update text
Example URI
Headers
Content-Type: application/json; charset=UTF-8
X-Account-ID: ...
X-HMAC: ...
X-Recruiter-ID: ...
Body
{
"text" : "new text"
}
{
"visible" : false
}
204
Headers
Content-Type: application/json; charset=UTF-8
X-Admin: ...
X-HMAC: ...
Body
{
"text" : "new text"
}
{
"visible" : false
}
204
401
403
404
410
413
415
Admin Notes Log ¶
Get LogGET/notes/log{?account_id,admin,fields,page,per_page,sort}
ADMIN ONLY: Get log of edits and deletions made by admin
Example URI
- account_id
int
(optional) Example: 189520ID of account whose notes will be displayed
- admin
int
(optional) Example: 123456name of admin whose edits will be displayed
- fields
string
(optional) Example: candidate_idWhich fields to display
Choices:
account_id
admin
admin_updated
candidate_id
id
old_text
recruiter_id
text
- page
int
(optional) Default: 1Page number / offset
- per_page
int
(optional) Example: 10Number of notes displayed per page
- sort
string
(optional)Which field to sort by
Choices:
updated
-updated
Headers
Content-Type: application/json; charset=UTF-8
X-Admin: ...
X-HMAC: ...
200
Headers
Content-Length: ...
Link: <http://.../notes?...per_page=3&page=2>; rel="next", ...
Body
[
{
"account_id" : 189520,
"admin" : "admin-person-1",
"admin_updated": ...,
"candidate_id" : 123456,
"id" : 1,
"old_text" : "foo",
"recruiter_id" : 303656,
"text" : "bar",
}
{
"account_id" : 189520,
"admin" : "admin-person-2",
"admin_updated": ...,
"candidate_id" : 123456,
"id" : 1,
"old_text" : "foo",
"recruiter_id" : 987654,
"text" : "",
}
]
401
415