Group
A group represent a collection of candidates.
Create
Create a new group.
Request
POST /api/groups
Host: api.happyrmatch.com
Authorization: Bearer eyJ0eXAi1QiLCJ...
Accept: application/vnd.api+json
Response
HTTP/1.0 201 Created
Cache-Control: no-cache, private
Content-Type: application/vnd.api+json
Date: Wed, 14 Sep 2022 05:38:55 GMT
{
"data": {
"type": "group",
"id": "5ac867b0-996a-4f3d-9b18-2e861e6aa3da",
"attributes": []
}
}
You can also create a group while adding candidates
Request
POST /api/groups
Host: api.happyrmatch.com
Authorization: Bearer eyJ0eXAi1QiLCJ...
Accept: application/vnd.api+json
{
"candidates": [
"[candidate_id]",
"[candidate_id]"
]
}
Response
HTTP/1.0 201 Created
Cache-Control: no-cache, private
Content-Type: application/vnd.api+json
Date: Wed, 14 Sep 2022 05:38:55 GMT
{
"data": {
"type": "group",
"id": "5ac867b0-996a-4f3d-9b18-2e861e6aa3da",
"attributes": []
}
}
Add candidates
Add candidates to a group.
Request
POST /api/groups/[group_id]/candidates
Host: api.happyrmatch.com
Authorization: Bearer eyJ0eXAi1QiLCJ...
Accept: application/vnd.api+json
{
"candidates": [
"[candidate_id]",
"[candidate_id]"
]
}
Response
HTTP/1.0 202 Accepted
Cache-Control: no-cache, private
Content-Type: application/vnd.api+json
Date: Wed, 14 Sep 2022 05:38:55 GMT
{
"meta": {
"message": "Accepted"
}
}
Remove candidates
Remove a candidate from a group.
Request
DELETE /api/groups/[group_id]/candidates/[candidate_id]
Host: api.happyrmatch.com
Authorization: Bearer eyJ0eXAi1QiLCJ...
Accept: application/vnd.api+json
Response
HTTP/1.0 202 Accepted
Cache-Control: no-cache, private
Content-Type: application/vnd.api+json
Date: Wed, 14 Sep 2022 05:38:55 GMT
{
"meta": {
"message": "Accepted"
}
}