Last active
September 24, 2018 19:59
-
-
Save numan/4ca5bbae6b0f21f0f3d3988df094192e to your computer and use it in GitHub Desktop.
HRIS Webhook Data Schema
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"$schema": "http://json-schema.org/draft-04/schema#", | |
"type": "object", | |
"properties": { | |
"users": { | |
"type": "array", | |
"items": { | |
"type": "object", | |
"properties": { | |
"hris_id": { | |
"type": "string", | |
"description": "An ID that uniquely identifies the user within your HRIS. You may also set this to the email address of the user if you don't have an HRIS ID available." | |
}, | |
"first_name": { | |
"type": "string" | |
}, | |
"last_name": { | |
"type": "string" | |
}, | |
"email": { | |
"type": "email" | |
}, | |
"job_title": { | |
"type": "string" | |
}, | |
"phone_number": { | |
"type": "string" | |
}, | |
"employee_id": { | |
"type": "string" | |
}, | |
"profile_image": { | |
"type": "object", | |
"properties": { | |
"url": { | |
"type": "string" | |
}, | |
"last_modified": { | |
"type": "date-time" | |
}, | |
"cache_info": { | |
"type": "string" | |
} | |
}, | |
"required": [ | |
"url" | |
] | |
}, | |
"departments": { | |
"type": "array", | |
"items": { | |
"type": "string", | |
"description": "For sub-departments, use > to indicate the department is inside a larger department. Eg 'Engineering > Mobile Team'\n\n\nNew Departments:\n\nIf a department does not exist in 7Geese, it will be created." | |
} | |
}, | |
"active": { | |
"type": "boolean" | |
}, | |
"manager": { | |
"type": "object", | |
"properties": { | |
"hris_id": { | |
"type": "string" | |
} | |
}, | |
"required": [ | |
"hris_id" | |
] | |
} | |
}, | |
"required": [ | |
"active", | |
"email", | |
"hris_id", | |
"first_name", | |
"last_name" | |
] | |
} | |
} | |
}, | |
"required": [ | |
"users" | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment