Skip to content

Instantly share code, notes, and snippets.

@numan
Last active September 24, 2018 19:59
Show Gist options
  • Save numan/4ca5bbae6b0f21f0f3d3988df094192e to your computer and use it in GitHub Desktop.
Save numan/4ca5bbae6b0f21f0f3d3988df094192e to your computer and use it in GitHub Desktop.
HRIS Webhook Data Schema
{
"$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