(Quick Reference) Service: Upsert a group of employee

Description: This web service is used to insert a group of employee to the database if it does not already exist, or update it.

URL with external_id:


Method: POST

Request content type: application/json


NameDescriptionTypeRequiredExample values
namethe name of the new employee groupStringYes 
descriptionsome details of the new groupStringNo 
reference must be unique

Success Output

Success case: response.status=201
    "id": 6,
    "name": "okawa",
    "reference": "9999",
    "organization": "Lyon",
    "description": null,
    "dateCreated": "2016-08-17T14:59:43Z",
    "lastUpdated": "2016-08-17T14:59:43Z"

Failure Output

Failure case:response.status = 400
    "error": "missing_param",
    "error_description": "reference parameter is missing"
    "error": "not_unique",
    "error_description": "reference already used"
     "error": "save_failed",
     "error_description": "Failed to save instance"

Failure case:response.status = 500
     "error": "server_error",
     "error_description": "Oops! Something went wrong..."