{ "title": "Get ticket reply v1", "description": "Returns a single ticket with comments.", "$schema": "http://json-schema.org/draft-04/schema#", "id": "http://localdev/schemas/support/get_ticket_reply_v1.json", "type": "object", "properties": { "id": { "description": "The ID of the ticket.", "type": "integer" }, "nid": { "title": "Broadband NID", "description": "Carrier or circuit identification. To harmonize the way ordered broadband products are identified.", "type": [ "string", "null" ], "pattern": "^[0-9]{4}[A-Z]{2}[0-9]{5}[0-9A-Z]{4}$" }, "reference": { "description": "External support reference.", "type": [ "null", "string" ] }, "created_at": { "title": "Datetime", "description": "Datetime in UTC format YYYY-MM-DDThh:mm:ssZ", "type": "string", "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}Z$" }, "updated_at": { "title": "Datetime", "description": "Datetime in UTC format YYYY-MM-DDThh:mm:ssZ", "type": "string", "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}Z$" }, "subject": { "description": "The title of the ticket.", "type": "string" }, "description": { "description": "Opening comment of ticket. Is the same as the body of the first comment in 'comments'.", "type": "string" }, "status": { "title": "Support Ticket Status", "description": "Enum options:
new|open|pending|solved|closed. Current status of the ticket.", "type": "string", "enum": [ "new", "open", "pending", "solved", "closed" ] }, "comments": { "description": "List of all comments on ticket, ordered by date.", "type": "array", "items": { "type": "object", "properties": { "body": { "description": "Comment text. Stripped of inline attachments & HTML.", "type": "string" }, "created_at": { "title": "Datetime", "description": "Datetime in UTC format YYYY-MM-DDThh:mm:ssZ", "type": "string", "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}Z$" }, "author": { "title": "Support User", "description": "Support user information.", "type": "object", "properties": { "name": { "type": "string" }, "photo": { "description": "Profile picture of author. Can be null.", "type": [ "null", "object" ], "properties": { "thumbnail_url": { "description": "Direct URL to a thumbnail of the file.", "type": [ "null", "string" ] }, "url": { "type": "string", "description": "Direct url to file." } } } }, "required": [ "name", "photo" ] }, "attachments": { "description": "List of attached files.", "type": "array", "items": { "type": "object", "properties": { "file_name": { "type": "string" }, "size": { "description": "File size in bytes.", "type": [ "null", "integer" ] }, "url": { "type": "string", "description": "Direct url to file." }, "thumbnail_url": { "description": "Direct URL to a thumbnail of the file.", "type": [ "null", "string" ] } }, "required": [ "file_name", "size", "url", "thumbnail_url" ] } } }, "required": [ "body", "author", "attachments", "created_at" ] } } }, "additionalProperties": false, "required": [ "id", "created_at", "updated_at", "subject", "description", "status", "comments" ] }