Last active
November 7, 2016 18:31
-
-
Save sfletche/0996ea207272547a5deb0a5148626752 to your computer and use it in GitHub Desktop.
JSON response to a specific lead
This file contains 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
{ | |
"id": { "type": "string" }, | |
"status": { "enum": ["offered", "accepted", "applied", "declined", "disqualified", "expired", "unavailable"] }, | |
"archived": { "type": "boolean" }, | |
"expire_at": { "type": "datetime" }, | |
"critical_at": { "type": "datetime" }, | |
"contractor_location": { "type": "location" }, | |
"lead_contact": { | |
"type": "object", | |
"properties": { | |
"name": { "type": "string" }, | |
"phone": { "type": "string" }, | |
"email": { "type": "string" } | |
} | |
}, | |
"availability": { "type": "availability" }, | |
"project_categories": { | |
"type": "array", | |
"items": { "type": "string" } | |
}, | |
"accepted_by": { | |
"type": "object", | |
"properties": { | |
"name": { "type": "string" }, | |
"date": { "type": "datetime" } | |
} | |
}, | |
"application": { | |
"type": "object", | |
"properties": { | |
"id": { "type": "integer" }, | |
"program": { "type": "string" }, | |
"sales_rep_id": { "type": "string" }, | |
"sales_rep_name": { "type": "string" }, | |
"created_at": { "type": "datetime" } | |
} | |
}, | |
"declined_by": { | |
"type": "object", | |
"properties": { | |
"name": { "type": "string" }, | |
"reason": { "type": "string" }, | |
"date": { "type": "datetime"} | |
} | |
}, | |
"disqualified_by": { | |
"type": "object", | |
"properties": { | |
"name": { "type": "string" }, | |
"reason": { "type": "string" }, | |
"date": { "type": "datetime"} | |
} | |
}, | |
"unavailable_at": { "type": "datetime" }, | |
"decline_reasons": { | |
"type": "object", | |
"patternProperties": { | |
"\d+": { "type": "string" } | |
}, | |
"additionalProperties": false | |
}, | |
"disqualify_reasons": { | |
"type": "object", | |
"patternProperties": { | |
"\d+": { "type": "string" } | |
}, | |
"additionalProperties": false | |
} | |
} |
disqualify_reasons
is now disqualified_reasons
updating adding critical
flag
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
changed
availability
to single object (from array of objects)