Skip to content

Payload Schema Reference ​

This document provides detailed documentation for each tool's payload schema, including required and optional fields, types, and defaults.

Ticket Search Schema ​

The TicketSearchSchema is used to filter and search for tickets.

Fields ​

FieldTypeDescriptionRequired
KeywordsstringFull-text search term.No
MaxResultsnumberMaximum results to return (1–1000). Default: 50No
StatusIDsarray of numbersFilter by ticket status IDs.No
TypeIDsarray of numbersFilter by ticket type IDs.No
PriorityIDsarray of numbersFilter by ticket priority IDs.No
UrgencyIDsarray of numbersFilter by ticket urgency IDs.No
ImpactIDsarray of numbersFilter by ticket impact IDs.No
AccountIDsarray of numbersFilter by account/department IDs.No
ResponsibleGroupIDsarray of numbersFilter by responsible group IDs.No
ResponsibleUidsarray of stringsFilter by responsible user GUIDs.No
RequestorUidsarray of stringsFilter by requestor user GUIDs.No
CreatedDateFromstringISO 8601 start date for creation date filter.No
CreatedDateTostringISO 8601 end date for creation date filter.No
ModifiedDateFromstringISO 8601 start date for last-modified filter.No
ModifiedDateTostringISO 8601 end date for last-modified filter.No
ClosedDateFromstringISO 8601 start date for closed date filter.No
ClosedDateTostringISO 8601 end date for closed date filter.No
SortBystringField name to sort results by.No
SortOrderenumSort order: A = ascending, D = descending.No

Example ​

json
{
  "Keywords": "network issue",
  "MaxResults": 50,
  "StatusIDs": [1, 2],
  "TypeIDs": [10],
  "PriorityIDs": [5],
  "AccountIDs": [100],
  "ResponsibleGroupIDs": [20],
  "ResponsibleUids": ["550e8400-e29b-41d4-a716-446655440000"],
  "RequestorUids": ["550e8400-e29b-41d4-a716-446655440000"],
  "CreatedDateFrom": "2023-01-01T00:00:00Z",
  "CreatedDateTo": "2023-12-31T23:59:59Z",
  "SortBy": "CreatedDate",
  "SortOrder": "D"
}

Ticket Create Schema ​

The TicketCreateSchema is used to create a new ticket.

Schema Fields ​

FieldTypeDescriptionRequired
TypeIDnumberTicket type ID.Yes
TitlestringTicket title/subject.Yes
AccountIDnumberAccount/department ID.No
StatusIDnumberInitial ticket status ID.No
PriorityIDnumberTicket priority ID.No
UrgencyIDnumberTicket urgency ID.No
ImpactIDnumberTicket impact ID.No
SourceIDnumberTicket source ID.No
DescriptionstringFull description/body of the ticket (HTML supported).No
RequestorUIDstringGUID of the requestor.No
ResponsibleUIDstringGUID of the responsible technician.No
ResponsibleGroupIDnumberResponsible group ID.No
FormIDnumberTicket form ID.No
Attributesarray of objectsCustom attribute values.No

Schema Example ​

json
{
  "TypeID": 10,
  "Title": "Network Outage",
  "AccountID": 100,
  "StatusID": 1,
  "PriorityID": 5,
  "UrgencyID": 3,
  "ImpactID": 2,
  "SourceID": 1,
  "Description": "The network is down in building A.",
  "RequestorUID": "550e8400-e29b-41d4-a716-446655440000",
  "ResponsibleUID": "550e8400-e29b-41d4-a716-446655440000",
  "ResponsibleGroupID": 20,
  "FormID": 1,
  "Attributes": [
    {
      "ID": 1,
      "Value": "Critical"
    }
  ]
}

Ticket Patch Schema ​

The TicketPatchSchema is used to update a ticket.

Schema Fields ​

FieldTypeDescriptionRequired
TicketIDnumberTicket ID to update.Yes
AttributesobjectFields to update as key/value pairs.Yes
NotifyRequestorbooleanNotify the requestor of the change. Default: falseNo
NotifyResponsiblebooleanNotify the responsible technician of the change. Default: falseNo
CommentsstringComment to attach to this update.No
IsPrivatebooleanWhether the comment is private. Default: falseNo

Schema Example ​

json
{
  "TicketID": 12345,
  "Attributes": {
    "StatusID": 2,
    "Title": "Updated Network Outage"
  },
  "NotifyRequestor": true,
  "NotifyResponsible": true,
  "Comments": "Status updated to In Progress.",
  "IsPrivate": false
}

Ticket Comment Schema ​

The TicketCommentSchema is used to add a comment to a ticket.

Schema Fields ​

FieldTypeDescriptionRequired
TicketIDnumberTicket ID to comment on.Yes
BodystringComment body (HTML supported).Yes
IsPrivatebooleanWhether this comment is private. Default: falseNo
NotifyRequestorbooleanNotify the requestor. Default: falseNo
NotifyResponsiblebooleanNotify the responsible technician. Default: falseNo

Schema Example ​

json
{
  "TicketID": 12345,
  "Body": "The issue has been resolved.",
  "IsPrivate": false,
  "NotifyRequestor": true,
  "NotifyResponsible": true
}

User Search Schema ​

The UserSearchSchema is used to search for users.

Schema Fields ​

FieldTypeDescriptionRequired
SearchTextstringName, username, or email to search for.No
IsActivebooleanFilter by active (true) or inactive (false) users.No
IsEmployeebooleanFilter to employees only.No
AppIDnumberScope search to a specific application.No
MaxResultsnumberMaximum results (1–1000). Default: 25No

Schema Example ​

json
{
  "SearchText": "John Doe",
  "IsActive": true,
  "IsEmployee": true,
  "AppID": 1,
  "MaxResults": 25
}

Group Search Schema ​

The GroupSearchSchema is used to search for groups.

Schema Fields ​

FieldTypeDescriptionRequired
NameLikestringPartial group name to search.No
IsActivebooleanFilter by active (true) or inactive (false) groups.No
AppIDnumberScope search to a specific application.No

Schema Example ​

json
{
  "NameLike": "IT Support",
  "IsActive": true,
  "AppID": 1
}

KB Article Search Schema ​

The KbArticleSearchSchema is used to search for knowledge base articles.

Schema Fields ​

FieldTypeDescriptionRequired
KeywordsstringFull-text search term.No
MaxResultsnumberMaximum results to return (1–1000). Default: 50No
CategoryIDsarray of numbersFilter by category IDs.No
StatusIDsarray of numbersFilter by status IDs.No
AuthorUidsarray of stringsFilter by author GUIDs.No
CreatedDateFromstringISO 8601 start date for creation date filter.No
CreatedDateTostringISO 8601 end date for creation date filter.No
ModifiedDateFromstringISO 8601 start date for last-modified filter.No
ModifiedDateTostringISO 8601 end date for last-modified filter.No
SortBystringField name to sort results by.No
SortOrderenumSort order: A = ascending, D = descending.No

Schema Example ​

json
{
  "Keywords": "password reset",
  "MaxResults": 50,
  "CategoryIDs": [1, 2],
  "StatusIDs": [1],
  "AuthorUids": ["550e8400-e29b-41d4-a716-446655440000"],
  "CreatedDateFrom": "2023-01-01T00:00:00Z",
  "CreatedDateTo": "2023-12-31T23:59:59Z",
  "SortBy": "CreatedDate",
  "SortOrder": "D"
}

KB Article Create Schema ​

The KbArticleCreateSchema is used to create a new knowledge base article.

Schema Fields ​

FieldTypeDescriptionRequired
TitlestringArticle title.Yes
BodystringArticle body (HTML supported).Yes
CategoryIDnumberCategory ID.Yes
StatusIDnumberArticle status ID.No
IsPublishedbooleanWhether the article is published. Default: falseNo
AuthorUIDstringGUID of the author.No
Attributesarray of objectsCustom attribute values.No

Schema Example ​

json
{
  "Title": "How to Reset Your Password",
  "Body": "<p>Follow these steps to reset your password...</p>",
  "CategoryID": 1,
  "StatusID": 1,
  "IsPublished": true,
  "AuthorUID": "550e8400-e29b-41d4-a716-446655440000",
  "Attributes": [
    {
      "ID": 1,
      "Value": "General"
    }
  ]
}

KB Article Update Schema ​

The KbArticleUpdateSchema is used to update a knowledge base article.

Schema Fields ​

FieldTypeDescriptionRequired
ArticleIDnumberArticle ID to update.Yes
AttributesobjectFields to update as key/value pairs.Yes
NotifyAuthorbooleanNotify the author of the change. Default: falseNo
CommentsstringComment to attach to this update.No
IsPrivatebooleanWhether the comment is private. Default: falseNo

Schema Example ​

json
{
  "ArticleID": 12345,
  "Attributes": {
    "Title": "Updated Password Reset Guide",
    "Body": "<p>Updated steps to reset your password...</p>"
  },
  "NotifyAuthor": true,
  "Comments": "Updated the password reset steps.",
  "IsPrivate": false
}

Next Steps ​

  • Review for Clarity: Ensure the documentation is clear, concise, and free of jargon.
  • Validate Examples: Test all examples to ensure they work as intended.
  • Address Feedback: Incorporate feedback from stakeholders to refine the documentation.

Released under the MIT License.