{"openapi":"3.0.1","info":{"title":"Desk365 API Reference","description":"<span style='font-size:20px;font-weight:500'>Welcome to the Desk365 API program!</span> <br><br>You can now integrate Desk365 with other applications using the Desk365 API.<br><br>If you are interested in using Microsoft Power Automate, Azure Logic Apps or Microsoft Power Apps, please check it out at: <a href=\"https://learn.microsoft.com/en-us/connectors/desk365/\" target=\"_blank\">https://learn.microsoft.com/en-us/connectors/desk365/</a> <br><br>All the API endpoints require you to pass your API Key in the authorization header.You can try out the API using the web interface below.<br><ul><li>Click on the Authorize button to enter your API Key.</li><li>In each API endpoint, click 'Try it out', enter any input parameters if needed and then click 'Execute' to see the results from that endpoint.</li></ul><br>For suggestions, questions or to report bugs, contact us at <a href=\"mailto:help@desk365.io\" target=\"_blank\">help@desk365.io</a>.","version":"3.0"},"servers":[{"url":"https://apps.desk365.io/apis","description":"Generated server url"}],"security":[{"APIKey":[]}],"tags":[{"name":"01. Ping","description":"Check Desk365 API server status"},{"name":"02. Tickets","description":"Ticket related API endpoints"},{"name":"03. Contacts","description":"Contacts related API endpoints"},{"name":"04. Companies","description":"Companies related API endpoints"},{"name":"05. Time entries","description":"Time entries related API endpoints"},{"name":"06. Surveys","description":"Surveys related API endpoints"},{"name":"07. KB Categories","description":"Knowledge Base Categories related API endpoints"},{"name":"08. KB Folders","description":"Knowledge Base Folders related API endpoints"},{"name":"09. KB Articles","description":"Knowledge Base Article related API endpoints"},{"name":"10. Assets","description":"Asset Management — Asset related API endpoints"},{"name":"11. Asset Types & Fields","description":"Asset Management — Asset Types & Field related API endpoints"},{"name":"12. Products","description":"Asset Management — Product Inventory related API endpoints."},{"name":"13. Vendors","description":"Asset Management — Vendor related API endpoints"},{"name":"14. Depreciations","description":"Asset Management — Depreciation method related API endpoints"},{"name":"15. Locations","description":"Asset Management — Location related API endpoints"},{"name":"16. Softwares","description":"Asset Management — Software related API endpoints"},{"name":"17. Software Fields","description":"Asset Management — Software Field related API endpoints"},{"name":"18. Contracts","description":"For special access to contract-related API endpoints, please email help@desk365.io."}],"paths":{"/v3/time_entries/update":{"put":{"tags":["05. Time entries"],"summary":"Update a time entry","description":"<p>Request and Response objects contain fixed numerical values.</p><ul><li>For \"billable\": Non-billable = 0, Billable = 1.</li><li>For \"run_timer\": Stop timer = 0, Start timer = 1.</li></ul><p>category_name is optional. When provided, it must match an existing Time Entry Category name for the helpdesk (case-insensitive); use an empty string to clear the category. Omitting the field leaves the current category unchanged.</p>","operationId":"UpdateTimeEntryFromApi","parameters":[{"name":"time_entry_id","in":"query","description":"Unique ID of the time entry","required":true,"schema":{"type":"string"}}],"requestBody":{"description":"A JSON Object with ticket properties.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateTimeEntryModel"}}},"required":true},"responses":{"404":{"description":"The resource you were trying to reach is not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseResourceNotFound"}}}},"500":{"description":"Application failed to process the request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseProcessFailed"}}}},"401":{"description":"You are not authorized to access the resource","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseUnauthorizedAccess"}}}},"403":{"description":"Accessing the resource you were trying to reach is forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseForbiddenAccess"}}}},"200":{"description":"Successfully added time entry details","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TimeEntryModel"}}}}}}},"/v3/tickets/update":{"put":{"tags":["02. Tickets"],"summary":"Update a ticket","description":"Request and Response objects contain fixed numerical values to indicate Priority.<br/><ul><li>For \"Priority\": Low=1, Medium=5, High=10, Urgent=20.</li></ul><p>Request Object Customization:</p><ul><li>Assign To, Group, Category and Subcategory can be updated to unassigned by sending '- -' as the input.</li><li>For first_replied_duration,first_assigned_duration,resolved_duration and closed_duration , the values are represented in minutes.</li><li>For \"updated_by_type\" and \"closed_by_type\": System=1, Agent=2, Contact=3.</li><li>Ticket properties that are not required and that are not part of the request body will not be changed.</li><li>Please click on the model below to know more about the input JSON Object with ticket properties.</li></ul>","operationId":"UpdateTicketFromAPI","parameters":[{"name":"ticket_number","in":"query","description":"Ticket number to update the details of that ticket.","required":true,"schema":{"type":"string"}}],"requestBody":{"description":"A JSON Object with ticket properties.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateTicketModel"}}},"required":true},"responses":{"200":{"description":"Successfully updated ticket","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateTicketResponseModel"}}}},"404":{"description":"The resource you were trying to reach is not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseResourceNotFound"}}}},"500":{"description":"Application failed to process the request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseProcessFailed"}}}},"401":{"description":"You are not authorized to access the resource","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseUnauthorizedAccess"}}}},"403":{"description":"Accessing the resource you were trying to reach is forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseForbiddenAccess"}}}}}}},"/v3/kb/folder/update":{"put":{"tags":["08. KB Folders"],"summary":"Update a KB Folder","description":"<p>Request Object Customization:</p><ul><li>Folder properties that are not part of the request body will not be changed.</li><li>Please click on the model below to know more about the input JSON Object with KB folder properties.</li></ul>","operationId":"UpdateKBFolder","parameters":[{"name":"category_name","in":"query","description":"Category name","required":true,"schema":{"type":"string"}},{"name":"folder_name","in":"query","description":"Folder name","required":true,"schema":{"type":"string"}}],"requestBody":{"description":"A JSON Object with KB folder properties.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateKBFolderRequestModel"}}},"required":true},"responses":{"200":{"description":"Successfully updated KB folder","content":{"application/json":{"schema":{"$ref":"#/components/schemas/KBFolderDetailsModel"}}}},"404":{"description":"The resource you were trying to reach is not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseResourceNotFound"}}}},"500":{"description":"Application failed to process the request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseProcessFailed"}}}},"401":{"description":"You are not authorized to access the resource","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseUnauthorizedAccess"}}}},"403":{"description":"Accessing the resource you were trying to reach is forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseForbiddenAccess"}}}}}}},"/v3/kb/category/update":{"put":{"tags":["07. KB Categories"],"summary":"Update KB Category","description":"<p>Request Object Customization:</p><ul><li>Category properties that are not part of the request body will not be changed.</li><li>Please click on the model below to know more about the input JSON Object with KB category properties.</li></ul>This API endpoint uses constant integers to represent predefined categories or states. Below is a summary of their meanings:<br/><ul><li>For \"support_portal_visibility\": 1 - \"Not visible in the Support Portal\", 2 - \"All visitors to the Support Portal\", 3 - \"Only signed in users of the Support Portal\", 4 - \"Support Portal signed in users from specific companies\"</li><li>For \"agent_portal_visibility\": 1 - \"All agents\", 2 - \"All agents in my group(s)\".</li></ul>","operationId":"UpdateKBCategory","parameters":[{"name":"category_name","in":"query","description":"The name of the category.","required":true,"schema":{"type":"string"}}],"requestBody":{"description":"A JSON Object with update category properties.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateKBCategoryRequestModel"}}},"required":true},"responses":{"404":{"description":"The resource you were trying to reach is not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseResourceNotFound"}}}},"500":{"description":"Application failed to process the request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseProcessFailed"}}}},"401":{"description":"You are not authorized to access the resource","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseUnauthorizedAccess"}}}},"403":{"description":"Accessing the resource you were trying to reach is forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseForbiddenAccess"}}}},"200":{"description":"Successfully updated KB category","content":{"application/json":{"schema":{"$ref":"#/components/schemas/KBCategoryDetailsModel"}}}}}}},"/v3/kb/article/update":{"put":{"tags":["09. KB Articles"],"summary":"Update KB Article","description":"<p>Request Object Customization:</p><ul><li>Article properties that are not part of the request body will not be changed.</li><li>Please click on the model below to know more about the input JSON Object with KB article properties.</li></ul>This API endpoint uses constant integers to represent predefined categories or states. Below is a summary of their meanings:<br/><ul><li>For \"status\": 0 - \"Draft\", 1 - \"Published\"</li></ul><b> Inline images are not supported through API request. </b>","operationId":"UpdateKBCategory_1","parameters":[{"name":"article_name","in":"query","description":"The name of the article.","required":true,"schema":{"type":"string"}}],"requestBody":{"description":"A JSON Object with update KB article properties.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateKBArticleRequestModel"}}},"required":true},"responses":{"404":{"description":"The resource you were trying to reach is not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseResourceNotFound"}}}},"500":{"description":"Application failed to process the request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseProcessFailed"}}}},"401":{"description":"You are not authorized to access the resource","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseUnauthorizedAccess"}}}},"200":{"description":"Successfully updated KB article","content":{"application/json":{"schema":{"$ref":"#/components/schemas/KBArticleDetailsModel"}}}},"403":{"description":"Accessing the resource you were trying to reach is forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseForbiddenAccess"}}}}}}},"/v3/contracts/update":{"put":{"tags":["18. Contracts"],"summary":"Update a contract","description":"Response object contains fixed numerical values to indicate bill_cycle, contract_type and rollover_type.</p><ul><li>For \"bill_cycle\": Monthly = 1, Contract Length=2.</li><li>For \"contract_type\": Block Hours = 2, Block Tickets = 3.</li><li>For \"rollover_type\": Monthly = 1.</li></ul><p>Request Object Customization:</p><ul><li>Contract category can be updated to unassigned by sending '- -' as the input.</li><li>Contract properties that are not required and that are not part of the request body will not be changed.</li><li>If there are multiple contracts with the same name, a reference number is required for identification purposes.</li><li>Please click on the model below to know more about the input JSON Object with contract properties.</li></ul>","operationId":"UpdateContract","parameters":[{"name":"contract_name","in":"query","description":"The name of the contract.","required":false,"schema":{"type":"string"}},{"name":"reference_number","in":"query","description":"The reference number of the contract.","required":false,"schema":{"type":"string"}}],"requestBody":{"description":"A JSON Object with contract properties.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContractUpdateRequestModel"}}},"required":true},"responses":{"200":{"description":"Successfully updated contact","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContractUpdateRequestModel"}}}},"404":{"description":"The resource you were trying to reach is not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseResourceNotFound"}}}},"500":{"description":"Application failed to process the request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseProcessFailed"}}}},"401":{"description":"You are not authorized to access the resource","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseUnauthorizedAccess"}}}},"403":{"description":"Accessing the resource you were trying to reach is forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseForbiddenAccess"}}}}}}},"/v3/contacts/update":{"put":{"tags":["03. Contacts"],"summary":"Update a contact","description":"<p>Request Object Customization:</p><ul><li>Contact properties that are not required and that are not part of the request body will not be changed.</li><li>Please click on the model below to know more about the input JSON Object with contact properties.</li></ul>","operationId":"updateContact","parameters":[{"name":"primary_email","in":"query","description":"The primary email address of the contact.","required":true,"schema":{"type":"string"}}],"requestBody":{"description":"A JSON Object with contact properties.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateContactRequestModel"}}},"required":true},"responses":{"200":{"description":"Successfully updated contact","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContactResponseModel"}}}},"404":{"description":"The resource you were trying to reach is not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseResourceNotFound"}}}},"500":{"description":"Application failed to process the request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseProcessFailed"}}}},"401":{"description":"You are not authorized to access the resource","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseUnauthorizedAccess"}}}},"403":{"description":"Accessing the resource you were trying to reach is forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseForbiddenAccess"}}}}}}},"/v3/companies/update":{"put":{"tags":["04. Companies"],"summary":"Update a company","description":"<p>Request Object Customization:</p><ul><li>To change the SLA of the company to the Helpdesk wide Default SLA, set the value of the \"sla\" property to \"helpdesk default\".</li><li>Please click on the model below to know more about the input JSON Object with company properties.</li></ul>","operationId":"updateCompany","parameters":[{"name":"company_name","in":"query","description":"The name of the company.","required":true,"schema":{"type":"string"}}],"requestBody":{"description":"A JSON Object with company properties.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CompanyRequestModel"}}},"required":true},"responses":{"404":{"description":"The resource you were trying to reach is not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseResourceNotFound"}}}},"200":{"description":"Successfully updated company","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CompanyRequestModel"}}}},"500":{"description":"Application failed to process the request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseProcessFailed"}}}},"401":{"description":"You are not authorized to access the resource","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseUnauthorizedAccess"}}}},"403":{"description":"Accessing the resource you were trying to reach is forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseForbiddenAccess"}}}}}}},"/v3/asset_mgmt/vendors/update":{"put":{"tags":["13. Vendors"],"summary":"Update a vendor","description":"Updates the vendor identified by the given vendor name. Only the fields present in the request body are updated.<br/><br/><p><b>Query Parameters:</b></p><ul><li><b>vendor_name</b> (query parameter, required): The current name of the vendor to update.</li></ul>","operationId":"UpdateVendor","parameters":[{"name":"vendor_name","in":"query","description":"vendor_name (query parameter, required): The current name of the vendor to update.","required":true,"schema":{"type":"string"}}],"requestBody":{"description":"Vendor object (request body, required): JSON object with vendor properties to update. Only included fields are changed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VendorUpdateRequestModel"}}},"required":true},"responses":{"200":{"description":"Vendor updated successfully","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VendorCreateOrUpdateResponseModel"}}}},"404":{"description":"The resource you were trying to reach is not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseResourceNotFound"}}}},"500":{"description":"Application failed to process the request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseProcessFailed"}}}},"401":{"description":"You are not authorized to access the resource","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseUnauthorizedAccess"}}}},"403":{"description":"Accessing the resource you were trying to reach is forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseForbiddenAccess"}}}},"409":{"description":"A vendor with that name already exists","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseModel"}}}},"400":{"description":"Validation failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseModel"}}}}}}},"/v3/asset_mgmt/softwares/update":{"put":{"tags":["16. Softwares"],"summary":"Update a software","description":"Updates the properties of the software identified by software_num or software_name. Only the fields present in the request body are updated. Precedence: software_num > software_name. At least one must be provided.<br/><br/><p><b>Query Parameters:</b></p><ul><li><b>software_num</b> (query parameter, optional): The unique software number. Takes highest precedence. At least one identifier must be provided.</li><li><b>software_name</b> (query parameter, optional): The software name. Used if software_num is not provided.</li></ul>","operationId":"UpdateSoftwareProperties","parameters":[{"name":"software_num","in":"query","description":"software_num (query parameter, optional): The unique software number. Takes highest precedence. At least one identifier must be provided.","required":false,"schema":{"type":"string"}},{"name":"software_name","in":"query","description":"software_name (query parameter, optional): The software name. Used if software_num is not provided.","required":false,"schema":{"type":"string"}}],"requestBody":{"description":"Software object (request body, required): JSON object with software properties to update. Only included fields are changed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SoftwareUpdateRequestModel"}}},"required":true},"responses":{"200":{"description":"Software updated successfully","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SoftwareResponseModel"}}}},"404":{"description":"The resource you were trying to reach is not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseResourceNotFound"}}}},"500":{"description":"Application failed to process the request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseProcessFailed"}}}},"401":{"description":"You are not authorized to access the resource","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseUnauthorizedAccess"}}}},"403":{"description":"Accessing the resource you were trying to reach is forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseForbiddenAccess"}}}},"400":{"description":"Validation failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseModel"}}}}}}},"/v3/asset_mgmt/software_fields/update_field":{"put":{"tags":["17. Software Fields"],"summary":"Update a software field","description":"<p>Updates an existing software field identified by name. The field type cannot be changed after creation.</p><p>Request and Response objects contain fixed numerical values to indicate Field Type.</p><ul><li>For \"field_type\": Text Input=1, Paragraph=2, Checkbox=3, Dropdown=4, Date=5, Number=6, Decimal=7.</li></ul><p>Request fields (all optional — only provided fields are updated):</p><ul><li>'name': The new field name. It must not exceed 50 characters. System-default fields cannot be renamed.</li><li>'is_required': Indicates whether the field is mandatory.</li><li>'field_order': An integer greater than or equal to 1 that moves the field to a new position. Values exceeding the total number of fields are capped at the last available position. Moving a field automatically shifts adjacent fields as needed.</li><li>'dropdown_choices': An object containing 'add' and/or 'remove' arrays. This field applies only to dropdown fields where type is 4.<ul><li>'add': An array of new option names to add. Each option must not exceed 50 characters.</li><li>'remove': An array of existing option names to remove. Attempting to remove a system-default option returns a 400 error. Providing an option name that does not exist also returns a 400 error.</li></ul></li></ul><p><b>Query Parameters:</b></p><ul><li><b>field_name</b> (query parameter, required): The name of the software field to update.</li></ul>","operationId":"UpdateSoftwareField","parameters":[{"name":"field_name","in":"query","description":"field_name (query parameter, required): The name of the software field to update.","required":true,"schema":{"type":"string"}}],"requestBody":{"description":"Software field object (request body, required): JSON object with field properties to update. Only included fields are changed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SoftwareFieldUpdateRequestModel"}}},"required":true},"responses":{"409":{"description":"A software field with that name already exists","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseModel"}}}},"500":{"description":"Application failed to process the request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseProcessFailed"}}}},"401":{"description":"You are not authorized to access the resource","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseUnauthorizedAccess"}}}},"200":{"description":"Software field updated successfully","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SoftwareFieldResponseModel"}}}},"404":{"description":"Software field not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseResourceNotFound"}}}},"403":{"description":"Accessing the resource you were trying to reach is forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseForbiddenAccess"}}}},"400":{"description":"Validation failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseModel"}}}}}}},"/v3/asset_mgmt/products/update":{"put":{"tags":["12. Products"],"summary":"Update a product","description":"Updates the product identified by the given name. Only the fields present in the request body are updated.<br/><br/><p><b>Query Parameters:</b></p><ul><li><b>product_name</b> (query parameter, required): The current name of the product to update.</li></ul><p>All fields are optional: 'name', 'asset_type_name', 'manufacturer', 'status', 'depreciation_name', 'description', 'mode_of_procurement'.</p><p>'name' can be updated, but it must remain unique.</p><p>'asset_type_name' can also be changed. If the asset is moved to a consumable asset type, any existing depreciation setting is automatically removed.</p><p>To remove depreciation manually, set 'depreciation_name' to an empty string. Depreciation cannot be assigned to consumable asset types.</p><p>Status: 1 = In Production, 2 = In Pipeline, 3 = Retired. Mode of Procurement: 1 = Buy, 2 = Lease.</p>","operationId":"UpdateProduct","parameters":[{"name":"product_name","in":"query","description":"product_name (query parameter, required): The current name of the product to update.","required":true,"schema":{"type":"string"}}],"requestBody":{"description":"Product object (request body, required): JSON object with product properties to update. Only included fields are changed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProductUpdateRequestModel"}}},"required":true},"responses":{"409":{"description":"A product with that name already exists","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseModel"}}}},"404":{"description":"The resource you were trying to reach is not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseResourceNotFound"}}}},"500":{"description":"Application failed to process the request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseProcessFailed"}}}},"401":{"description":"You are not authorized to access the resource","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseUnauthorizedAccess"}}}},"403":{"description":"Accessing the resource you were trying to reach is forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseForbiddenAccess"}}}},"200":{"description":"Product updated successfully","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProductResponseModel"}}}},"400":{"description":"Validation failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseModel"}}}}}}},"/v3/asset_mgmt/locations/update":{"put":{"tags":["15. Locations"],"summary":"Update a location","description":"Updates the location identified by the given name. Only the fields provided in the request body are updated.<br/><br/><p><b>Note:</b> 'parent_location_name' cannot be updated. Including it in the request returns a 400 error because the parent location cannot be changed after the location is created.</p><p><b>Query Parameters:</b></p><ul><li><b>location_name</b> (query parameter, required): The current name of the location to update.</li></ul>","operationId":"UpdateLocation","parameters":[{"name":"location_name","in":"query","description":"location_name (query parameter, required): The current name of the location to update.","required":true,"schema":{"type":"string"}}],"requestBody":{"description":"Location object (request body, required): JSON object with location properties to update. Only included fields are changed. 'parent_location_name' cannot be changed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LocationUpdateRequestModel"}}},"required":true},"responses":{"404":{"description":"The resource you were trying to reach is not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseResourceNotFound"}}}},"200":{"description":"Location updated successfully","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LocationResponseModel"}}}},"500":{"description":"Application failed to process the request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseProcessFailed"}}}},"401":{"description":"You are not authorized to access the resource","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseUnauthorizedAccess"}}}},"403":{"description":"Accessing the resource you were trying to reach is forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseForbiddenAccess"}}}},"409":{"description":"A location with that name already exists","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseModel"}}}},"400":{"description":"Validation failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseModel"}}}}}}},"/v3/asset_mgmt/depreciations/update":{"put":{"tags":["14. Depreciations"],"summary":"Update a depreciation method","description":"Updates the depreciation method identified by the given depreciation_name. Only 'depreciation_name', 'useful_life_in_years', and 'depreciation_description' can be updated. 'depreciation_type' cannot be changed after creation.<br/><br/><p><b>Query Parameters:</b></p><ul><li><b>depreciation_name</b> (query parameter, required): The current name of the depreciation method to update.</li></ul>","operationId":"UpdateDepreciation","parameters":[{"name":"depreciation_name","in":"query","description":"depreciation_name (query parameter, required): The current name of the depreciation method to update.","required":true,"schema":{"type":"string"}}],"requestBody":{"description":"Depreciation object (request body, required): JSON object with depreciation properties to update. Only included fields are changed. 'depreciation_type' cannot be changed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DepreciationUpdateRequestModel"}}},"required":true},"responses":{"404":{"description":"The resource you were trying to reach is not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseResourceNotFound"}}}},"500":{"description":"Application failed to process the request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseProcessFailed"}}}},"401":{"description":"You are not authorized to access the resource","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseUnauthorizedAccess"}}}},"403":{"description":"Accessing the resource you were trying to reach is forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseForbiddenAccess"}}}},"409":{"description":"A depreciation method with that name already exists","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseModel"}}}},"200":{"description":"Depreciation method updated successfully","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DepreciationResponseModel"}}}},"400":{"description":"Validation failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseModel"}}}}}}},"/v3/asset_mgmt/assets/update":{"put":{"tags":["10. Assets"],"summary":"Update an asset","description":"Updates the asset identified by asset_num, asset_name, or asset_tag. Only the fields present in the request body are updated.<br/><br/><p><b>Query Parameters:</b></p><ul><li><b>asset_num</b> (query parameter, optional): The unique asset number. Takes highest precedence. At least one identifier must be provided.</li><li><b>asset_name</b> (query parameter, optional): The asset name. Used if asset_num is not provided.</li><li><b>asset_tag</b> (query parameter, optional): The unique asset tag. Used if neither asset_num nor asset_name is provided.</li></ul><p>The request body uses the same structure as assets/create endpoint, but all sections and fields are optional — including asset_name and asset_type, which are required only on assets/create endpoint.</p><p><b>book_value</b> is the current value after depreciation, rounded to 2 decimals and never below salvage_value. It is <b>null</b> unless the asset has a depreciation method with useful life above zero and valid purchase_cost, salvage_value and purchase_date, with salvage_value not exceeding purchase_cost.</p>","operationId":"UpdateAssetProperties","parameters":[{"name":"asset_num","in":"query","description":"asset_num (query parameter, optional): The unique asset number. Takes highest precedence. At least one identifier must be provided.","required":false,"schema":{"type":"string"}},{"name":"asset_name","in":"query","description":"asset_name (query parameter, optional): The asset name. Used if asset_num is not provided.","required":false,"schema":{"type":"string"}},{"name":"asset_tag","in":"query","description":"asset_tag (query parameter, optional): The unique asset tag. Used if neither asset_num nor asset_name is provided.","required":false,"schema":{"type":"string"}}],"requestBody":{"description":"Asset object (request body, required): JSON object with asset properties to update. Only included fields are changed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssetUpdateRequestModel"}}},"required":true},"responses":{"404":{"description":"The resource you were trying to reach is not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseResourceNotFound"}}}},"409":{"description":"An asset with that name or asset tag already exists","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseModel"}}}},"500":{"description":"Application failed to process the request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseProcessFailed"}}}},"401":{"description":"You are not authorized to access the resource","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseUnauthorizedAccess"}}}},"403":{"description":"Accessing the resource you were trying to reach is forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseForbiddenAccess"}}}},"200":{"description":"Asset updated successfully","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssetResponseModel"}}}},"400":{"description":"Validation failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseModel"}}}}}}},"/v3/asset_mgmt/asset_types_fields/asset_type_update":{"put":{"tags":["11. Asset Types & Fields"],"summary":"Rename an asset type","description":"Renames an existing asset type. Only the 'name' field is accepted in the request body — any other fields will be rejected.<br/><br/><p><b>Query Parameters:</b></p><ul><li><b>name</b> (query parameter, required): The current name of the asset type to rename.</li></ul><p>'name' in the request body is the new name to assign. Must not exceed 128 characters.</p>","operationId":"UpdateAssetType","parameters":[{"name":"name","in":"query","description":"name (query parameter, required): The current name of the asset type to rename.","required":true,"schema":{"type":"string"}}],"requestBody":{"description":"Asset type object (request body, required): JSON object containing the new name.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssetTypeUpdateRequestModel"}}},"required":true},"responses":{"404":{"description":"The resource you were trying to reach is not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseResourceNotFound"}}}},"500":{"description":"Application failed to process the request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseProcessFailed"}}}},"401":{"description":"You are not authorized to access the resource","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseUnauthorizedAccess"}}}},"403":{"description":"Accessing the resource you were trying to reach is forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseForbiddenAccess"}}}},"200":{"description":"Asset type renamed successfully","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssetTypeResponseModel"}}}},"409":{"description":"An asset type with that name already exists","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseModel"}}}},"400":{"description":"Validation failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseModel"}}}}}}},"/v3/asset_mgmt/asset_types_fields/asset_field_update":{"put":{"tags":["11. Asset Types & Fields"],"summary":"Update an asset type field","description":"<p><b>Query Parameters:</b></p><ul><li><b>type_name</b> (query parameter, required): The name of the asset type containing the field.</li><li><b>field_name</b> (query parameter, required): The current name of the field to update.</li></ul><p>Request and Response objects contain fixed numerical values to indicate Field Type.</p><ul><li>For \"type\": Text Input=1, Paragraph=2, Checkbox=3, Dropdown=4, Date=5, Number=6, Decimal=7.</li></ul><p>Additional notes on field update:</p><ul><li>All body fields are optional — only the fields provided will be updated.</li><li>'name' must not exceed 50 characters if provided. Cannot be set to an empty string.</li><li>'is_required' (boolean) — update whether the field is mandatory.</li><li>'field_order' (integer, &ge; 1) — move the field to a new position. Values exceeding the total number of fields are capped to the maximum position. Changing the order automatically shifts adjacent fields to accommodate the move.</li></ul><p><b>Dropdown choices (type=4 only):</b></p><ul><li>'dropdown_choices' must be a <b>JSON object</b> (not an array) with optional 'add' and/or 'remove' sub-arrays: {\"add\": [\"Choice A\"], \"remove\": [\"Old Choice\"]}. This differs from the create endpoint, where 'dropdown_choices' is a flat array of strings.</li><li>Choices in 'add' must not exceed 50 characters each. New choices are appended after existing ones.</li><li>Choices in 'remove' are matched by name — unrecognised names are silently ignored.</li><li>The field must retain at least one dropdown option after removals. Attempting to remove all options returns 400.</li><li>Passing 'dropdown_choices' for a non-dropdown field is silently ignored.</li></ul><p><b>Protected system-default fields:</b></p><ul><li>The following fields cannot be modified <b>in any way</b> (including 'field_order' and 'dropdown_choices') and will return 400: Asset Name, Asset Type, Product (Hardware), Product (Consumable). Any update request targeting these fields is rejected entirely.</li><li>All other default fields (e.g. Impact, Location) allow updates to 'is_required', 'field_order', and 'dropdown_choices', but do not allow renaming — passing 'name' for them will return 400.</li><li>Asset State (Hardware) is always required — passing 'is_required' for it will return 400.</li></ul>","operationId":"UpdateAssetTypeField","parameters":[{"name":"type_name","in":"query","description":"type_name (query parameter, required): The name of the asset type containing the field.","required":true,"schema":{"type":"string"}},{"name":"field_name","in":"query","description":"field_name (query parameter, required): The current name of the field to update.","required":true,"schema":{"type":"string"}}],"requestBody":{"description":"Asset field object (request body, required): JSON object with field properties to update.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssetTypeFieldUpdateRequestModel"}}},"required":true},"responses":{"200":{"description":"Asset field updated successfully","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssetTypeFieldResponseModel"}}}},"500":{"description":"Application failed to process the request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseProcessFailed"}}}},"401":{"description":"You are not authorized to access the resource","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseUnauthorizedAccess"}}}},"404":{"description":"Asset type or field not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseResourceNotFound"}}}},"403":{"description":"Accessing the resource you were trying to reach is forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseForbiddenAccess"}}}},"400":{"description":"Validation failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseModel"}}}},"409":{"description":"A field with that name already exists for this asset type","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseModel"}}}}}}},"/v3/time_entries/add":{"post":{"tags":["05. Time entries"],"summary":"Add time entry","description":"<p>Request and Response objects contain fixed numerical values.</p><ul><li>For \"time_entry_type\": Specific Time = 1, Run Timer = 2.</li><li>For \"billable\": Non-billable = 0, Billable = 1.</li></ul><p>Request Object Customization:</p><ul><li>If time_entry_type = 1 (Specific Time), the request must include:</li><ul><li>agent_email – Email address of the agent adding the time entry.</li><li>start_time – Start date and time in yyyy-MM-dd HH:mm format.</li><li>time_spent_in_mins – Total time spent in minutes.</li></ul><li>If time_entry_type = 2 (Run Timer), the fields agent_email, start_time and time_spent_in_mins should not be included in the request.</li><li>category_name – Optional. Name of a Time Entry Category configured for the helpdesk. Must match an existing category name; omit or leave empty for no category.</li></ul>","operationId":"AddTimeEntryFromApi","parameters":[{"name":"ticket_number","in":"query","description":"Ticket number to add the time entry for that ticket.","required":true,"schema":{"type":"string"}}],"requestBody":{"description":"A JSON Object with ticket properties.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AddTimeEntryModel"}}},"required":true},"responses":{"404":{"description":"The resource you were trying to reach is not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseResourceNotFound"}}}},"500":{"description":"Application failed to process the request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseProcessFailed"}}}},"401":{"description":"You are not authorized to access the resource","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseUnauthorizedAccess"}}}},"403":{"description":"Accessing the resource you were trying to reach is forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseForbiddenAccess"}}}},"200":{"description":"Successfully added time entry details","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TimeEntryModel"}}}}}}},"/v3/tickets/import_conversations":{"post":{"tags":["02. Tickets"],"summary":"Import conversations for existing ticket","description":"<p>Appends conversation items (agent replies, contact replies, notes, or forwards) to an existing ticket for migration purposes. No automation or outbound notifications are triggered.</p><p>The required query parameter \"ticket_number\" is the ticket number to append conversations to.</p><p>Conversation item fields (each item in the \"conversations\" array):</p><ul><li>\"type\" (required) is one of \"reply\", \"note\" or \"forward\".</li><li>\"sender_type\" is \"agent\" by default or \"contact\". It is required when the type is set to \"reply\". A note with sender_type \"contact\" creates a private contact note (reply to forwarded tickets).</li><li>\"body\" (required) is HTML or plain text content. Inline images with public src URLs are re-uploaded automatically; images larger than the helpdesk's inline image size limit are skipped and left as the original URL.</li><li>\"created_on\" is the date and time in yyyy-MM-dd HH:mm:ss format in UTC, and must not be a future date.</li><li>\"created_by\" is the email of the agent or contact who authored the item. If omitted or unmatched: reply (agent) defaults to Admin, reply (contact) auto-creates a contact, note (agent) defaults to System, and note (contact) defaults to the ticket contact.</li><li>\"public_note\" is true for a public note or false for a private note (note type only; default false). It is ignored when sender_type is \"contact\" since contact notes are always private.</li><li>\"notified_agents\" is a comma-separated list of agent emails to notify (note type only).</li><li>\"cc_address\" is a comma-separated list of CC addresses (reply and forward types).</li><li>\"bcc_address\" is a comma-separated list of BCC addresses (agent reply and forward types only; not stored for contact replies).</li><li>\"to_address\" (required for forward) is the recipient addresses for the forwarded message.</li><li>\"attachment_public_urls\" is a comma-separated list of publicly accessible URLs for attachments on this item. The number of URLs is limited to the helpdesk's maximum attachment count, and any excess URLs are skipped with a warning. Each file is virus-scanned before being stored.</li></ul><p>A successful response may include a \"warnings\" array listing non-fatal substitutions, such as an unresolved \"created_by\" email or skipped \"notified_agents\" or attachments.</p><p>Please click on the model below to know more about the input JSON Object.</p><br/><b>Note:</b> Each request to this endpoint consumes 5 rate limit tokens due to the resource-intensive nature of bulk conversation import.","operationId":"ImportConversationsForExistingTicket","parameters":[{"name":"ticket_number","in":"query","description":"Ticket number to append conversations to.","required":true,"schema":{"type":"string"}}],"requestBody":{"description":"Object containing the conversations array. The conversations field is required; all conversation item fields except type and body are optional.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConversationImportApiRequest"}}},"required":true},"responses":{"500":{"description":"Application failed to process the request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseProcessFailed"}}}},"401":{"description":"You are not authorized to access the resource","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseUnauthorizedAccess"}}}},"403":{"description":"Accessing the resource you were trying to reach is forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseForbiddenAccess"}}}},"200":{"description":"Conversations imported successfully","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConversationImportApiResponse"}}}},"400":{"description":"Validation failed, ticket not found, or import error (see errors array in response)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseProcessFailed"}}}}}}},"/v3/tickets/import":{"post":{"tags":["02. Tickets"],"summary":"Import ticket with conversations","description":"<p>Creates one ticket with optional conversations for migration purposes. No automation, round robin, or outbound notifications are triggered. Source is set to Agent Portal.</p><p>The only required field is \"contact_email\". All field names use snake_case.</p><p>Ticket field notes:</p><ul><li>Timestamp fields \"created_on\", \"resolved_on\" and \"closed_on\" use the yyyy-MM-dd HH:mm:ss format in UTC and must not be future dates.</li><li>For \"priority\": Low=1, Medium=5, High=10, Urgent=20.</li><li>\"group\", \"assign_to\" (agent email), \"category\", \"sub_category\", \"type\", \"status\" and \"form_name\" are resolved by name or email. Invalid values return a 400 error.</li><li>\"sub_category\" requires \"category\" to be set.</li><li>\"sla_plan_name\" is not specified the contact’s company default SLA plan is used. If the specified plan name is not found, a 400 error is returned.</li><li>\"custom_fields\" is a JSON object of custom field values. Keys must use the cf_ prefix, for example cf_employee_id.</li><li>\"watchers\" is a comma-separated list of agent emails to add as ticket watchers.</li><li>\"share_to\" is a comma-separated list of contact emails to share the ticket with.</li><li>\"attachment_public_urls\" is a comma-separated list of publicly accessible URLs. The number of URLs is limited to the helpdesk's maximum attachment count, and any excess URLs are skipped with a warning. Each file is virus-scanned and the combined size must stay within the plan limit.</li></ul><p>Conversation item fields (each item in the \"conversations\" array):</p><ul><li>\"type\" (required) is one of \"reply\", \"note\" or \"forward\".</li><li>\"sender_type\" is \"agent\" by default or \"contact\". It is required when the type is set to \"reply\". A note with sender_type \"contact\" creates a private contact note (reply to forwarded tickets).</li><li>\"body\" (required) is HTML or plain text content. Inline images with public src URLs are re-uploaded automatically; images larger than the helpdesk's inline image size limit are skipped and left as the original URL.</li><li>\"created_on\" is the date and time in yyyy-MM-dd HH:mm:ss format in UTC, and must not be a future date.</li><li>\"created_by\" is the email of the agent or contact who authored the item. If omitted or unmatched: reply (agent) defaults to Admin, reply (contact) auto-creates a contact, note (agent) defaults to System, and note (contact) defaults to the ticket contact.</li><li>\"public_note\" is true for a public note or false for a private note (note type only; default false). It is ignored when sender_type is \"contact\" since contact notes are always private.</li><li>\"notified_agents\" is a comma-separated list of agent emails to notify (note type only).</li><li>\"cc_address\" is a comma-separated list of CC addresses (reply and forward types).</li><li>\"bcc_address\" is a comma-separated list of BCC addresses (agent reply and forward types only; not stored for contact replies).</li><li>\"to_address\" (required for forward) is the recipient addresses for the forwarded message.</li><li>\"attachment_public_urls\" is a comma-separated list of publicly accessible URLs for attachments on this item. The number of URLs is limited to the helpdesk's maximum attachment count, and any excess URLs are skipped with a warning. Each file is virus-scanned before being stored.</li></ul><p>A successful response may include a \"warnings\" array listing non-fatal substitutions, such as an unresolved \"created_by\" email or skipped \"notified_agents\" or attachments.</p><p>Please click on the model below to know more about the input JSON Object with all available fields.</p><br/><b>Note:</b> Each request to this endpoint consumes 5 rate limit tokens due to the resource-intensive nature of bulk ticket import.","operationId":"ImportTicketWithConversations","requestBody":{"description":"Ticket import payload. All field names are snake_case. Only contact_email is required; all other fields are optional.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TicketImportApiRequest"}}},"required":true},"responses":{"400":{"description":"Validation failed or import error (see errors array in response)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseProcessFailed"}}}},"500":{"description":"Application failed to process the request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseProcessFailed"}}}},"401":{"description":"You are not authorized to access the resource","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseUnauthorizedAccess"}}}},"200":{"description":"Ticket imported successfully","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TicketImportApiResponse"}}}},"403":{"description":"Accessing the resource you were trying to reach is forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseForbiddenAccess"}}}}}}},"/v3/tickets/create_with_attachment":{"post":{"tags":["02. Tickets"],"summary":"Create a ticket with attachment","description":"<p>Request and Response objects contain fixed numerical values to indicate Priority.</p><ul><li>For \"Priority\": Low=1, Medium=5, High=10, Urgent=20.</li></ul><p>Response object contains fixed numerical value to indicate Source.</p><ul><li>For \"Source\": Email=1, Microsoft Teams=5, Support Portal=6, Phone or Other=7, Web Form=12, Web Widget=13, API=15, AI Agent=16.</li><li>For first_replied_duration,first_assigned_duration,resolved_duration and closed_duration , the values are represented in minutes.</li><li>For \"updated_by_type\" and \"closed_by_type\": System=1, Agent=2, Contact=3.</li></ul><p>Request Object Customization:</p><ul><li>If you have set up custom ticket fields, use the same name along with the matching case here in \"custom_fields\" object of the request body to fetch the right results.</li><li>If you haven't set up any custom ticket fields, remove the \"custom_fields\" object in the request body and proceed.</li><li>If you want to use a specific ticket form in the Agent Portal, specify the \"form_name\" in the object of the request body.</li><li>If the \"form_name\" is not specified, the default Agent Portal form will be used to create the ticket.</li><li>Ticket properties that are not part of the request body will not be changed.</li></ul><p>Attachments:</p><ul><li>Only files on your local machine can be attached using API.</li><li>The Content-Type of the request should always be 'multipart/form-data'.</li><li><strong>If you need to attach multiple files, the 'files' parameter should be used instead of 'file'.</strong></li><li>Sample curl command for 'files' instead of 'file':</li></ul><pre style=\"background-color: white; padding: 10px; margin-top: 10px; margin-left: 40px; color: black; border: 1px black solid;\">curl -X POST \"https://&lt;&lt;yoursubdomain&gt;&gt;.desk365.io/apis/v3/tickets/create_with_attachment\" -H \"accept: */*\" -H \"Authorization: YourAPIKey\" -H \"Content-Type: multipart/form-data\" -F \"files=@path/to/File1.png\" -F \"files=@path/to/File2.txt\" -F \"files=@path/to/File3.pdf\" -F \"ticket_object = \"{\\\"email\\\": \\\"contact@contoso.com\\\", \\\"form_name\\\": \\\"Create Ticket\\\", \\\"subject\\\": \\\"Printer not working\\\", \\\"description\\\": \\\"Please fix it\\\", \\\"status\\\": \\\"open\\\", \\\"priority\\\": 1, \\\"type\\\": \\\"Question\\\", \\\"assign_to\\\": \\\"agent@contoso.com\\\", \\\"group\\\": \\\"Sales\\\", \\\"category\\\": \\\"Billing\\\", \\\"sub_category\\\": \\\"Disputed Charge\\\", \\\"custom_fields\\\": {\\\"department\\\": \\\"string\\\", \\\"dob\\\": \\\"string\\\", \\\"employee_id\\\": 0}, \\\"watchers\\\": [\\\"johndoe@contoso.com\\\"], \\\"share_to\\\": [\\\"johndoe@contoso.com\\\"]}\"</pre>","operationId":"CreateNewTicketWithAttachmentFromAPI","parameters":[{"name":"ticket_object","in":"query","description":"Sample ticket object : <br><span style=\"font-size: 13px\">{\"email\":\"contact@contoso.com\", \"form_name\":\"Create Ticket\", \"subject\":\"Printer not working\", \"description\":\"Please fix it\", \"status\":\"open\", \"priority\":1, \"type\":\"Question\", \"assign_to\":\"agent@contoso.com\", \"group\":\"Sales\", \"category\":\"Billing\", \"sub_category\":\"Disputed Charge\", \"custom_fields\": {\"department\":\"string\", \"dob\":\"string\", \"employee_id\":0}, \"watchers\": [\"johndoe@contoso.com\"], \"share_to\": [\"johndoe@contoso.com\"]}</span>","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"multipart/form-data":{"schema":{"type":"object","properties":{"file":{"type":"string","description":"Attachment to that ticket.","format":"binary"}}}}}},"responses":{"404":{"description":"The resource you were trying to reach is not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseResourceNotFound"}}}},"500":{"description":"Application failed to process the request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseProcessFailed"}}}},"200":{"description":"Successfully created ticket","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateTicketModel"}}}},"401":{"description":"You are not authorized to access the resource","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseUnauthorizedAccess"}}}},"403":{"description":"Accessing the resource you were trying to reach is forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseForbiddenAccess"}}}}}}},"/v3/tickets/create":{"post":{"tags":["02. Tickets"],"summary":"Create a ticket","description":"<p>Request and Response objects contain fixed numerical values to indicate Priority.</p><ul><li>For \"Priority\": Low=1, Medium=5, High=10, Urgent=20.</li></ul><p>Response object contains fixed numerical value to indicate Source.</p><ul><li>For \"Source\": Email=1, Microsoft Teams=5, Support Portal=6, Phone or Other=7, Web Form=12, Web Widget=13, API=15, AI Agent=16.</li><li>For first_replied_duration,first_assigned_duration,resolved_duration and closed_duration , the values are represented in minutes.</li><li>For \"updated_by_type\" and \"closed_by_type\": System=1, Agent=2, Contact=3.</li></ul><p>Request Object Customization:</p><ul><li>If you have set up custom ticket fields, use the same name along with the matching case here in \"custom_fields\" object of the request body to fetch the right results.</li><li>If you haven't set up any custom ticket fields, remove the \"custom_fields\" object in the request body and proceed.</li><li>If you want to use a specific ticket form in the Agent Portal, specify the \"form_name\" in the object of the request body.</li><li>If the \"form_name\" is not specified, the default Agent Portal form will be used to create the ticket.</li><li>Ticket properties that are not part of the request body will not be changed.</li><li>Please click on the model below to know more about the input JSON Object with ticket properties.</li></ul>","operationId":"CreateNewTicketFromAPI","requestBody":{"description":"A JSON Object with ticket properties.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateTicketModel"}}},"required":true},"responses":{"404":{"description":"The resource you were trying to reach is not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseResourceNotFound"}}}},"500":{"description":"Application failed to process the request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseProcessFailed"}}}},"401":{"description":"You are not authorized to access the resource","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseUnauthorizedAccess"}}}},"200":{"description":"Successfully created ticket","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TicketDetailsModel"}}}},"403":{"description":"Accessing the resource you were trying to reach is forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseForbiddenAccess"}}}}}}},"/v3/tickets/associate_assets":{"post":{"tags":["02. Tickets"],"summary":"Associate assets to a ticket","description":"<p>Associates one or more assets to a ticket. A maximum of 10 assets can be associated per request.</p><p>The request body must contain an array of asset numbers.</p><p>Request Object Customization:</p><ul><li>Please click on the model below to know more about the input JSON Object with asset numbers.</li></ul>","operationId":"AssociateAssetsToTicket","parameters":[{"name":"ticket_number","in":"query","description":"Ticket number to associate assets to.","required":true,"schema":{"type":"string"}}],"requestBody":{"description":"A JSON object containing an array of asset numbers to associate.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TicketAssetAssociateRequestModel"}}},"required":true},"responses":{"404":{"description":"The resource you were trying to reach is not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseResourceNotFound"}}}},"500":{"description":"Application failed to process the request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseProcessFailed"}}}},"401":{"description":"You are not authorized to access the resource","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseUnauthorizedAccess"}}}},"403":{"description":"Accessing the resource you were trying to reach is forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseForbiddenAccess"}}}},"200":{"description":"Assets associated successfully","content":{"application/json":{}}},"400":{"description":"Validation failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseModel"}}}}}}},"/v3/tickets/add_reply_with_attachment":{"post":{"tags":["02. Tickets"],"summary":"Add reply to a ticket with attachment","description":"<p>Request and Response objects contain fixed numerical values as follows.</p><ul><li>For \"include_prev_ccs\": 0 - do not notify previously added CC email addresses in the ticket conversation, 1 - notify previously added CC email addresses in the ticket conversation</li><li>For \"include_prev_messages\": 0 - do not include previous messages in the ticket conversation, 1 -  include previous messages in the ticket conversation</li></ul><p>Request Object Customizations:</p><ul><li>By default, the previous CCs will not be notified. If you wish to notify previous CCs, set the 'include_prev_ccs' property to 1.</li><li>By default, the previous messages will not be included. If you wish to include previous messages, set the 'include_prev_messages' property to 1.</li></ul><p>Attachments:</p><ul><li>Only files on your local machine can be attached using API.</li><li>The Content-Type of the request should always be 'multipart/form-data'.</li><li><strong>If you need to attach multiple files, the 'files' parameter should be used instead of 'file'.</strong></li><li>Sample curl command for 'files' instead of 'file':</li></ul><pre style=\"background-color: white; padding: 10px; margin-top: 10px; margin-left: 40px; color: black; border: 1px black solid;\">curl -X POST \"https://apps.desk365.io/apis/tickets/add_reply_with_attachment\" -H \"accept: */*\" -H \"Authorization: YourAPIKey\" -H \"Content-Type: multipart/form-data\" -F \"files=@path/to/File1.png\" -F \"files=@path/to/File2.txt\" -F \"files=@path/to/File3.pdf\" -F \"ticket_number=465\" -F \"reply_object={\\\"body\\\": \\\"We are working on this issue. Will keep you updated.\\\", \\\"cc_emails\\\": \\\"jon@contoso.com\\\", \\\"bcc_emails\\\": \\\"jon@contoso.com\\\", \\\"agent_email\\\": \\\"agent@contoso.com\\\", \\\"from_email\\\": \\\"support@domain.desk365.io\\\", \\\"include_prev_ccs\\\": 0, \\\"include_prev_messages\\\": 0}\"</pre>","operationId":"ReplyToTicketWithAttachmentFromAPI","parameters":[{"name":"ticket_number","in":"query","description":"Ticket number to add reply to that ticket.","required":true,"schema":{"type":"string"}},{"name":"reply_object","in":"query","description":"Sample reply object : <br><span style=\"font-size: 13px;\">{\"body\": \"We are working on this issue. Will keep you updated.\", \"cc_emails\":\"jon@contoso.com\", \"bcc_emails\":\"jon@contoso.com\", \"agent_email\":\"agent@contoso.com\", \"from_email\":\"support@domain.desk365.io\", \"include_prev_ccs\":0, \"include_prev_messages\":0</span>}","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"multipart/form-data":{"schema":{"type":"object","properties":{"file":{"type":"string","description":"Attachment to that ticket.","format":"binary"}}}}}},"responses":{"200":{"description":"Successfully replied to the ticket","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AddReplyWithAttachmentResponseModel"}}}},"404":{"description":"The resource you were trying to reach is not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseResourceNotFound"}}}},"500":{"description":"Application failed to process the request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseProcessFailed"}}}},"401":{"description":"You are not authorized to access the resource","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseUnauthorizedAccess"}}}},"403":{"description":"Accessing the resource you were trying to reach is forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseForbiddenAccess"}}}}}}},"/v3/tickets/add_reply":{"post":{"tags":["02. Tickets"],"summary":"Add reply to a ticket","description":"Request and Response objects contain fixed numerical values as follows.<br><ul><li>For \"include_prev_ccs\": 0 - do not notify previously added CC email addresses in the ticket conversation, 1 - notify previously added CC email addresses in the ticket conversation</li><li>For \"include_prev_messages\": 0 - do not include previous messages in the ticket conversation, 1 -  include previous messages in the ticket conversation</li></ul><p>Request Object Customization:</p><ul><li>By default, the previous CCs will not be notified. If you wish to notify previous CCs, set the 'include_prev_ccs' property to 1.</li><li>By default, the previous messages will not be included. If you wish to include previous messages, set the 'include_prev_messages' property to 1.</li><li>Please click on the model below to know more about the input JSON Object with ticket reply content.</li></ul>","operationId":"ReplyToTicketFromAPI","parameters":[{"name":"ticket_number","in":"query","description":"Ticket number to add reply to that ticket.","required":true,"schema":{"type":"string"}}],"requestBody":{"description":"A JSON Object with ticket reply content.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AddReplyModel"}}},"required":true},"responses":{"404":{"description":"The resource you were trying to reach is not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseResourceNotFound"}}}},"500":{"description":"Application failed to process the request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseProcessFailed"}}}},"401":{"description":"You are not authorized to access the resource","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseUnauthorizedAccess"}}}},"200":{"description":"Successfully replied to the ticket","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AddReplyResponseModel"}}}},"403":{"description":"Accessing the resource you were trying to reach is forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseForbiddenAccess"}}}}}}},"/v3/tickets/add_note_with_attachment":{"post":{"tags":["02. Tickets"],"summary":"Add note to a ticket with attachment","description":"<p>Request and Response objects contain fixed numerical values to indicate whether it is a private or public note.</p><ul><li>0 - Public note, 1 - Private note</li></ul><p>Request Object Customizations:</p><ul><li>By default, any note that you add will be private. If you wish to add a public note, set the 'private_note' property to 0</li></ul><p>Attachments:</p><ul><li>Only files on your local machine can be attached using API.</li><li>The Content-Type of the request should always be 'multipart/form-data'.</li><li><strong>If you need to attach multiple files, the 'files' parameter should be used instead of 'file'.</strong></li><li>Sample curl command for 'files' instead of 'file':</li></ul><pre style=\"background-color: white; padding: 10px; margin-top: 10px; margin-left: 40px; color: black; border: 1px black solid;\">curl -X POST \"https://apps.desk365.io/apis/tickets/add_note_with_attachment\" -H \"accept: */*\" -H \"Authorization: YourAPIKey\" -H \"Content-Type: multipart/form-data\" -F \"files=@path/to/File1.png\" -F \"files=@path/to/File2.txt\" -F \"files=@path/to/File3.pdf\" -F \"ticket_number=465\" -F \"note_object={\\\"body\\\": \\\"We are working on this issue. Will keep you updated.\\\", \\\"agent_email\\\": \\\"agent1@contoso.com\\\", \\\"notify_emails\\\": \\\"agent2@contoso.com\\\", \\\"private_note\\\": 1}\"</pre>","operationId":"AddNoteToTicketWithAttachmentFromAPI","parameters":[{"name":"ticket_number","in":"query","description":"Ticket number to add reply to that ticket.","required":true,"schema":{"type":"string"}},{"name":"note_object","in":"query","description":"Sample note object :                                        <br><span style=\"font-size: 13px\">{\"body\":\"We are working on this issue. Will keep you updated.\", \"agent_email\":\"agent1@contoso.com\", \"notify_emails\":\"agent2@contoso.com\", \"private_note\":1}</span>","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"multipart/form-data":{"schema":{"type":"object","properties":{"file":{"type":"string","description":"Attachment to that ticket.","format":"binary"}}}}}},"responses":{"404":{"description":"The resource you were trying to reach is not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseResourceNotFound"}}}},"500":{"description":"Application failed to process the request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseProcessFailed"}}}},"200":{"description":"Successfully added a note to the ticket","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AddNoteWithAttachmentResponseModel"}}}},"401":{"description":"You are not authorized to access the resource","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseUnauthorizedAccess"}}}},"403":{"description":"Accessing the resource you were trying to reach is forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseForbiddenAccess"}}}}}}},"/v3/tickets/add_note":{"post":{"tags":["02. Tickets"],"summary":"Add note to a ticket","description":"Request and Response objects contain fixed numerical values to indicate whether it is a private or public note.<br><ul><li>0 - Public note, 1 - Private note</li></ul><p>Request Object Customization:</p><ul><li>By default, any note that you add will be private. If you wish to add a public note, set the 'private_note' property to 0</li><li>Please click on the model below to know more about the input JSON Object with ticket note content.</li></ul>","operationId":"AddNoteToTicketFromAPI","parameters":[{"name":"ticket_number","in":"query","description":"Ticket number to add note to that ticket.","required":true,"schema":{"type":"string"}}],"requestBody":{"description":"A JSON Object with ticket note content.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AddNoteModel"}}},"required":true},"responses":{"200":{"description":"Successfully added a note to the ticket","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AddNoteResponseModel"}}}},"404":{"description":"The resource you were trying to reach is not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseResourceNotFound"}}}},"500":{"description":"Application failed to process the request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseProcessFailed"}}}},"401":{"description":"You are not authorized to access the resource","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseUnauthorizedAccess"}}}},"403":{"description":"Accessing the resource you were trying to reach is forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseForbiddenAccess"}}}}}}},"/v3/kb/folder/create":{"post":{"tags":["08. KB Folders"],"summary":"Add a KB Folder","description":"<p>Request Object Customization:</p><ul><li>Please click on the model below to know more about the input JSON Object with KB folder properties.</li></ul>","operationId":"CreateKBFolder","requestBody":{"description":"A JSON Object with KB folder properties.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateKBFolderRequestModel"}}},"required":true},"responses":{"200":{"description":"Successfully created KB folder","content":{"application/json":{"schema":{"$ref":"#/components/schemas/KBFolderDetailsModel"}}}},"404":{"description":"The resource you were trying to reach is not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseResourceNotFound"}}}},"500":{"description":"Application failed to process the request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseProcessFailed"}}}},"401":{"description":"You are not authorized to access the resource","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseUnauthorizedAccess"}}}},"403":{"description":"Accessing the resource you were trying to reach is forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseForbiddenAccess"}}}}}}},"/v3/kb/category/create":{"post":{"tags":["07. KB Categories"],"summary":"Add a KB Category","description":"<p>Request Object Customization:</p><ul><li>Please click on the model below to know more about the input JSON Object with KB category properties.</li></ul>This API endpoint uses constant integers to represent predefined categories or states. Below is a summary of their meanings:<br/><ul><li>For \"support_portal_visibility\": 1 - \"Not visible in the Support Portal\", 2 - \"All visitors to the Support Portal\", 3 - \"Only signed in users of the Support Portal\", 4 - \"Support Portal signed in users from specific companies\"</li><li>For \"agent_portal_visibility\": 1 - \"All agents\", 2 - \"All agents in my group(s)\".</li></ul>","operationId":"CreateKBCategory","requestBody":{"description":"A JSON Object with KB category properties.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateKBCategoryRequestModel"}}},"required":true},"responses":{"200":{"description":"Successfully created KB category","content":{"application/json":{"schema":{"$ref":"#/components/schemas/KBCategoryDetailsModel"}}}},"404":{"description":"The resource you were trying to reach is not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseResourceNotFound"}}}},"500":{"description":"Application failed to process the request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseProcessFailed"}}}},"401":{"description":"You are not authorized to access the resource","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseUnauthorizedAccess"}}}},"403":{"description":"Accessing the resource you were trying to reach is forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseForbiddenAccess"}}}}}}},"/v3/kb/article/create":{"post":{"tags":["09. KB Articles"],"summary":"Add a KB Article","description":"<p>Request Object Customization:</p><ul><li>Please click on the model below to know more about the input JSON Object with KB article properties.</li></ul>This API endpoint uses constant integers to represent predefined categories or states. Below is a summary of their meanings:<br/><ul><li>For \"status\": 0 - \"Draft\", 1 - \"Published\"</li></ul><b> Inline images are not supported through API request. </b>","operationId":"CreateKBArticle","requestBody":{"description":"A JSON Object with KB article properties.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateKBArticleRequestModel"}}},"required":true},"responses":{"404":{"description":"The resource you were trying to reach is not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseResourceNotFound"}}}},"500":{"description":"Application failed to process the request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseProcessFailed"}}}},"401":{"description":"You are not authorized to access the resource","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseUnauthorizedAccess"}}}},"200":{"description":"Successfully created KB article","content":{"application/json":{"schema":{"$ref":"#/components/schemas/KBArticleDetailsModel"}}}},"403":{"description":"Accessing the resource you were trying to reach is forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseForbiddenAccess"}}}}}}},"/v3/contracts/create":{"post":{"tags":["18. Contracts"],"summary":"Create a contract","description":"<p>Request and Response objects contain fixed numerical values to indicate bill_cycle, contract_type and rollover_type.</p><ul><li>For \"bill_cycle\": Monthly = 1, Contract Length=2.</li><li>For \"contract_type\": Block Hours = 2, Block Tickets = 3.</li><li>For \"rollover_type\": Monthly = 1.</li></ul><p>Request Object Customization:</p><ul><li>If the contract_type value is set to 2, you should use only the block_hours object and remove the block_tickets object from the request body.</li><li>If the contract_type value is set to 3, you should use only the block_tickets object and remove the block_hours object from the request body.</li><li>Please click on the model below to know more about the input JSON Object with contract properties.</li></ul>","operationId":"CreateContract","requestBody":{"description":"A JSON Object with contract properties.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContractCreateOrUpdateResponseModel"}}},"required":true},"responses":{"404":{"description":"The resource you were trying to reach is not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseResourceNotFound"}}}},"500":{"description":"Application failed to process the request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseProcessFailed"}}}},"401":{"description":"You are not authorized to access the resource","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseUnauthorizedAccess"}}}},"403":{"description":"Accessing the resource you were trying to reach is forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseForbiddenAccess"}}}},"200":{"description":"Successfully created contract","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContractCreateOrUpdateResponseModel"}}}}}}},"/v3/contacts/create_with_attachment":{"post":{"tags":["03. Contacts"],"summary":"Create a contact with attachment","description":"<p>Request Object Customization:</p><ul><li>If you have set up custom contact fields, use the same field names (matching case) inside the 'custom_fields' object of the request body.</li><li>If you haven't set up any custom contact fields, remove the 'custom_fields' object and proceed.</li><li>Contact properties not present in the request body will not be changed.</li></ul><p>Attachments:</p><ul><li>Only files on your local machine can be attached using API.</li><li>The Content-Type of the request should always be 'multipart/form-data'.</li><li><strong>If you need to attach multiple files, the 'files' parameter should be used instead of 'file'.</strong></li><li>Sample curl command for 'files' instead of 'file':</li></ul><pre style=\"background-color: white; padding: 10px; margin-top: 10px; margin-left: 40px; color: black; border: 1px black solid;\">curl -X POST \"https://&lt;&lt;yoursubdomain&gt;&gt;.desk365.io/apis/v3/contacts/create_with_attachment\" -H \"accept: */*\" -H \"Authorization: YourAPIKey\" -H \"Content-Type: multipart/form-data\" -F \"files=@path/to/File1.png\" -F \"files=@path/to/File2.txt\" -F \"files=@path/to/File3.pdf\" -F \"contact_object={\\\"name\\\":\\\"Joe\\\",\\\"primary_email\\\":\\\"contact@contoso.com\\\",\\\"secondary_emails\\\":\\\"joe@contoso.com\\\",\\\"title\\\":\\\"Manager\\\",\\\"mobile\\\":\\\"123456789\\\",\\\"phone\\\":\\\"123456789\\\",\\\"company_name\\\":\\\"Contoso\\\",\\\"primary_department\\\":\\\"Developers\\\",\\\"secondary_departments\\\":\\\"Sales, Marketing\\\",\\\"custom_fields\\\":{\\\"cf_employee_id\\\":2022542,\\\"cf_DOB\\\":\\\"1991-06-22\\\"}}\"</pre>","operationId":"CreateNewContactWithAttachmentFromAPI","parameters":[{"name":"contact_object","in":"query","description":"Sample contact object: { \"name\": \"Joe\", \"primary_email\": \"contact@contoso.com\", \"secondary_emails\": \"joe@contoso.com\", \"title\": \"Manager\", \"mobile\": \"123456789\", \"phone\": \"123456789\", \"company_name\": \"Contoso\", \"primary_department\": \"Developers\", \"secondary_departments\": \"Sales, Marketing\", \"custom_fields\": { \"cf_employee_id\": 2022542, \"cf_DOB\": \"1991-06-22\" } }","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"multipart/form-data":{"schema":{"type":"object","properties":{"file":{"type":"string","description":"Attachment to that contact.","format":"binary"}}}}}},"responses":{"404":{"description":"The resource you were trying to reach is not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseResourceNotFound"}}}},"200":{"description":"Successfully created contact","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateContactRequestModel"}}}},"500":{"description":"Application failed to process the request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseProcessFailed"}}}},"401":{"description":"You are not authorized to access the resource","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseUnauthorizedAccess"}}}},"403":{"description":"Accessing the resource you were trying to reach is forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseForbiddenAccess"}}}}}}},"/v3/contacts/create":{"post":{"tags":["03. Contacts"],"summary":"Add a contact","description":"<p>Request Object Customization:</p><ul><li>Contact properties that are not part of the request body will not be changed.</li><li>Please click on the model below to know more about the input JSON Object with contact properties.</li></ul>","operationId":"CreateContact","requestBody":{"description":"A JSON Object with contact properties.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateContactRequestModel"}}},"required":true},"responses":{"404":{"description":"The resource you were trying to reach is not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseResourceNotFound"}}}},"200":{"description":"Successfully added contact","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateContactRequestModel"}}}},"500":{"description":"Application failed to process the request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseProcessFailed"}}}},"401":{"description":"You are not authorized to access the resource","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseUnauthorizedAccess"}}}},"403":{"description":"Accessing the resource you were trying to reach is forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseForbiddenAccess"}}}}}}},"/v3/companies/create_with_attachment":{"post":{"tags":["04. Companies"],"summary":"Create a company with attachment","description":"<p>Request Object Customization:</p><ul><li>If you have set up custom company fields, use the same field names (matching case) inside the 'custom_fields' object of the request body.</li><li>If you haven't set up any custom company fields, remove the 'custom_fields' object and proceed.</li><li>Company properties not present in the request body will not be changed.</li></ul><p>Attachments:</p><ul><li>Only files on your local machine can be attached using API.</li><li>The Content-Type of the request should always be 'multipart/form-data'.</li><li><strong>If you need to attach multiple files, the 'files' parameter should be used instead of 'file'.</strong></li><li>Sample curl command:</li></ul><pre style=\"background-color: white; padding: 10px; margin-top: 10px; margin-left: 40px; color: black; border: 1px black solid;\">curl -X POST \"https://&lt;&lt;yoursubdomain&gt;&gt;.desk365.io/apis/v3/companies/create_with_attachment\" -H \"accept: */*\" -H \"Authorization: YourAPIKey\" -F \"files=@path/to/File1.png\" -F \"files=@path/to/File2.txt\" -F \"files=@path/to/File3.pdf\" -F \"company_object={\\\"name\\\":\\\"Contoso\\\",\\\"description\\\":\\\"string\\\",\\\"phone\\\":\\\"123456789\\\",\\\"address\\\":\\\"string\\\",\\\"city\\\":\\\"string\\\",\\\"state\\\":\\\"string\\\",\\\"country\\\":\\\"string\\\",\\\"zipcode\":\\\"string\\\",\\\"sla\\\":\\\"No Sla Policy\\\",\\\"domains\":\\\"contoso.com, orcael.com\",\\\"departments\":\\\"Developers, Sales, Marketing\\\",\\\"custom_fields\\\":{\\\"cf_employee_id\\\":2022542,\\\"cf_DOB\\\":\\\"1991-06-22\\\"}}\"</pre>","operationId":"CreateNewCompanyWithAttachmentFromAPI","parameters":[{"name":"company_object","in":"query","description":"Sample company object: { \"name\": \"Contoso\", \"description\": \"string\", \"phone\": \"123456789\", \"address\": \"string\", \"city\": \"string\", \"state\": \"string\", \"country\": \"string\", \"zipcode\": \"string\", \"sla\": \"No Sla Policy\", \"domains\": \"contoso.com, orcael.com\", \"departments\":\"Developers, Sales, Marketing\", \"custom_fields\": { \"cf_employee_id\": 2022542, \"cf_DOB\": \"1991-06-22\" } }","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"multipart/form-data":{"schema":{"type":"object","properties":{"file":{"type":"string","description":"Attachment to that company.","format":"binary"}}}}}},"responses":{"404":{"description":"The resource you were trying to reach is not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseResourceNotFound"}}}},"500":{"description":"Application failed to process the request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseProcessFailed"}}}},"401":{"description":"You are not authorized to access the resource","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseUnauthorizedAccess"}}}},"200":{"description":"Successfully created company","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CompanyRequestModel"}}}},"403":{"description":"Accessing the resource you were trying to reach is forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseForbiddenAccess"}}}}}}},"/v3/companies/create":{"post":{"tags":["04. Companies"],"summary":"Create a company","description":"<p>Request Object Customization:</p><ul><li>Company properties that are not part of the request body will not be changed.</li><li>To set the SLA of the company to the Helpdesk wide Default SLA, set the value of the \"sla\" property to \"helpdesk default\". </li><li>Please click on the model below to know more about the input JSON Object with company properties.</li></ul>","operationId":"CreateCompany","requestBody":{"description":"A JSON Object with company properties.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CompanyRequestModel"}}},"required":true},"responses":{"200":{"description":"Successfully added company","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CompanyRequestModel"}}}},"404":{"description":"The resource you were trying to reach is not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseResourceNotFound"}}}},"500":{"description":"Application failed to process the request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseProcessFailed"}}}},"401":{"description":"You are not authorized to access the resource","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseUnauthorizedAccess"}}}},"403":{"description":"Accessing the resource you were trying to reach is forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseForbiddenAccess"}}}}}}},"/v3/asset_mgmt/vendors/create":{"post":{"tags":["13. Vendors"],"summary":"Create a vendor","description":"Creates a new vendor. The 'vendor_name' field is required. All other fields are optional.","operationId":"CreateVendor","requestBody":{"description":"Vendor object (request body, required): JSON object with vendor properties. 'vendor_name' is required.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VendorRequestModel"}}},"required":true},"responses":{"404":{"description":"The resource you were trying to reach is not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseResourceNotFound"}}}},"500":{"description":"Application failed to process the request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseProcessFailed"}}}},"401":{"description":"You are not authorized to access the resource","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseUnauthorizedAccess"}}}},"403":{"description":"Accessing the resource you were trying to reach is forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseForbiddenAccess"}}}},"409":{"description":"A vendor with that name already exists","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseModel"}}}},"201":{"description":"Vendor created successfully","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VendorCreateOrUpdateResponseModel"}}}},"400":{"description":"Validation failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseModel"}}}}}}},"/v3/asset_mgmt/vendors/associate_product":{"post":{"tags":["13. Vendors"],"summary":"Associate a product with a vendor","description":"Associates the specified product with the vendor identified by the given vendor name. The product must not already be associated with this vendor.<br/><br/><p><b>Query Parameters:</b></p><ul><li><b>vendor_name</b> (query parameter, required): The name of the vendor to associate the product with.</li></ul>","operationId":"AssociateProductWithVendor","parameters":[{"name":"vendor_name","in":"query","description":"vendor_name (query parameter, required): The name of the vendor to associate the product with.","required":true,"schema":{"type":"string"}}],"requestBody":{"description":"Product association object (request body, required): JSON object with association details. 'product_name' and 'quantity' are required.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VendorProductAssociationRequestModel"}}},"required":true},"responses":{"404":{"description":"The resource you were trying to reach is not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseResourceNotFound"}}}},"409":{"description":"Product is already associated with this vendor","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseModel"}}}},"500":{"description":"Application failed to process the request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseProcessFailed"}}}},"401":{"description":"You are not authorized to access the resource","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseUnauthorizedAccess"}}}},"403":{"description":"Accessing the resource you were trying to reach is forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseForbiddenAccess"}}}},"201":{"description":"Product associated with vendor successfully","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VendorProductAssociationResponseModel"}}}},"400":{"description":"Validation failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseModel"}}}}}}},"/v3/asset_mgmt/softwares/create":{"post":{"tags":["16. Softwares"],"summary":"Create a software","description":"Creates a new software. The 'software_name' field is required. All other fields are optional.","operationId":"CreateSoftware","requestBody":{"description":"Software object (request body, required): JSON object with software properties. 'software_name' is required.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SoftwareRequestModel"}}},"required":true},"responses":{"404":{"description":"The resource you were trying to reach is not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseResourceNotFound"}}}},"500":{"description":"Application failed to process the request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseProcessFailed"}}}},"201":{"description":"Software created successfully","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SoftwareResponseModel"}}}},"401":{"description":"You are not authorized to access the resource","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseUnauthorizedAccess"}}}},"403":{"description":"Accessing the resource you were trying to reach is forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseForbiddenAccess"}}}},"400":{"description":"Validation failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseModel"}}}}}}},"/v3/asset_mgmt/softwares/add_users":{"post":{"tags":["16. Softwares"],"summary":"Add users to a software","description":"Add users (by email) to the specified software. Only active contacts can be added. Precedence: software_num > software_name. At least one must be provided.<br/><br/><p><b>Query Parameters:</b></p><ul><li><b>software_num</b> (query parameter, optional): The unique software number. Takes highest precedence. At least one identifier must be provided.</li><li><b>software_name</b> (query parameter, optional): The software name. Used if software_num is not provided.</li></ul>","operationId":"AddSoftwareUsers","parameters":[{"name":"software_num","in":"query","description":"software_num (query parameter, optional): The unique software number. Takes highest precedence. At least one identifier must be provided.","required":false,"schema":{"type":"string"}},{"name":"software_name","in":"query","description":"software_name (query parameter, optional): The software name. Used if software_num is not provided.","required":false,"schema":{"type":"string"}}],"requestBody":{"description":"Users object (request body, required): JSON object with an 'add' array of email addresses.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SoftwareAddUsersRequestModel"}}},"required":true},"responses":{"500":{"description":"Application failed to process the request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseProcessFailed"}}}},"401":{"description":"You are not authorized to access the resource","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseUnauthorizedAccess"}}}},"400":{"description":"Validation failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseModel"}}}},"200":{"description":"Users added to software successfully","content":{"application/json":{}}},"404":{"description":"Software or contact not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseResourceNotFound"}}}}}}},"/v3/asset_mgmt/software_fields/create_field":{"post":{"tags":["17. Software Fields"],"summary":"Create a software field","description":"<p>Creates a new custom software field. System-default fields are created automatically and cannot be duplicated via this endpoint.</p><p>Request and Response objects contain fixed numerical values to indicate Field Type.</p><ul><li>For \"field_type\": Text Input=1, Paragraph=2, Checkbox=3, Dropdown=4, Date=5, Number=6, Decimal=7.</li></ul><p>Request fields:</p><ul><li>'name': Required. The field name. It must not exceed 50 characters.</li><li>'type': Required. The field type, represented by a value from 1 to 7. This value is returned as 'field_type' in the response.</li><li>'is_required': Optional. Indicates whether the field is mandatory. Defaults to false.</li><li>'field_order': Optional. An integer greater than or equal to 1 that specifies the field's position. Values exceeding the total number of fields are capped at the last available position. If omitted, the field is added at the end.</li><li>'dropdown_choices': Required when type is 4. An array of option strings, each limited to 50 characters.</li></ul>","operationId":"CreateSoftwareField","requestBody":{"description":"Software field object (request body, required): JSON object with field properties. 'name' and 'type' are required.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SoftwareFieldRequestModel"}}},"required":true},"responses":{"409":{"description":"A software field with that name already exists","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseModel"}}}},"201":{"description":"Software field created successfully","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SoftwareFieldResponseModel"}}}},"500":{"description":"Application failed to process the request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseProcessFailed"}}}},"401":{"description":"You are not authorized to access the resource","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseUnauthorizedAccess"}}}},"403":{"description":"Accessing the resource you were trying to reach is forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseForbiddenAccess"}}}},"400":{"description":"Validation failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseModel"}}}}}}},"/v3/asset_mgmt/products/create":{"post":{"tags":["12. Products"],"summary":"Create a product","description":"Creates a new product. 'name', 'asset_type_name', 'status', and 'mode_of_procurement' are required. Optional fields: 'manufacturer', 'depreciation_name', 'description'.<br/><br/>Status: 1 = In Production, 2 = In Pipeline, 3 = Retired. Mode of Procurement: 1 = Buy, 2 = Lease.<br/><br/><b>Note:</b> Consumable asset types cannot have a depreciation. Providing 'depreciation_name' for a consumable asset type will return a validation error.","operationId":"CreateProduct","requestBody":{"description":"Product object (request body, required): JSON object with product properties. 'name', 'asset_type_name', 'status', and 'mode_of_procurement' are required.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProductRequestModel"}}},"required":true},"responses":{"409":{"description":"A product with that name already exists","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseModel"}}}},"201":{"description":"Product created successfully","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProductResponseModel"}}}},"404":{"description":"Asset type or depreciation not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseResourceNotFound"}}}},"500":{"description":"Application failed to process the request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseProcessFailed"}}}},"401":{"description":"You are not authorized to access the resource","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseUnauthorizedAccess"}}}},"403":{"description":"Accessing the resource you were trying to reach is forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseForbiddenAccess"}}}},"400":{"description":"Validation failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseModel"}}}}}}},"/v3/asset_mgmt/locations/create":{"post":{"tags":["15. Locations"],"summary":"Create a location","description":"<p>Creates a new location.</p><p>'location_name' is required. To create the location beneath an existing location, optionally provide 'parent_location_name'. The parent location cannot be changed after creation.</p>","operationId":"CreateLocation","requestBody":{"description":"Location object (request body, required): JSON object with location properties. 'location_name' is required. 'parent_location_name' cannot be changed after creation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LocationRequestModel"}}},"required":true},"responses":{"500":{"description":"Application failed to process the request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseProcessFailed"}}}},"401":{"description":"You are not authorized to access the resource","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseUnauthorizedAccess"}}}},"404":{"description":"Parent location not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseResourceNotFound"}}}},"403":{"description":"Accessing the resource you were trying to reach is forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseForbiddenAccess"}}}},"201":{"description":"Location created successfully","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LocationResponseModel"}}}},"409":{"description":"A location with that name already exists","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseModel"}}}},"400":{"description":"Validation failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseModel"}}}}}}},"/v3/asset_mgmt/depreciations/create":{"post":{"tags":["14. Depreciations"],"summary":"Create a depreciation method","description":"<p>Creates a new depreciation method. 'depreciation_name', 'depreciation_type', and 'useful_life_in_years' are required. 'depreciation_type' cannot be changed after creation.</p><p>Depreciation types: 1 = Declining Balance, 2 = Straight Line, 3 = Sum of Years' Digits.</p>","operationId":"CreateDepreciation","requestBody":{"description":"Depreciation object (request body, required): JSON object with depreciation properties. 'depreciation_name', 'depreciation_type', and 'useful_life_in_years' are required. Depreciation types: 1 = Declining Balance, 2 = Straight Line, 3 = Sum of Years' Digits.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DepreciationRequestModel"}}},"required":true},"responses":{"500":{"description":"Application failed to process the request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseProcessFailed"}}}},"401":{"description":"You are not authorized to access the resource","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseUnauthorizedAccess"}}}},"201":{"description":"Depreciation method created successfully","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DepreciationResponseModel"}}}},"403":{"description":"Accessing the resource you were trying to reach is forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseForbiddenAccess"}}}},"409":{"description":"A depreciation method with that name already exists","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseModel"}}}},"400":{"description":"Validation failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseModel"}}}}}}},"/v3/asset_mgmt/assets/create":{"post":{"tags":["10. Assets"],"summary":"Create an asset","description":"Creates a new asset.<br/><br/><p>The request body has three top-level objects:</p><ul><li><b>identification</b> (request body, required) — Core fields: asset_name (required), asset_type (required), asset_tag (optional — if omitted and auto-generation is enabled, a tag is generated automatically; if provided, must be unique), asset_description, impact (Low/Medium/High), end_of_life (yyyy-MM-dd).</li><li><b>ownership</b> (request body, required) — Assignment fields: location, managed_by_group, managed_by_agent, company, department, used_by, assigned_on (yyyy-MM-dd).</li><li><b>asset_type_details</b> (request body, required) — Type-specific field sections are identified by the asset type’s lower & snake_case name. All ancestor types in the hierarchy must be present as sub-objects. Field names must match those defined for the corresponding asset type</li></ul><p><b>book_value</b> is the current value after depreciation, rounded to 2 decimals and never below salvage_value. It is <b>null</b> unless the asset has a depreciation method with useful life above zero and valid purchase_cost, salvage_value and purchase_date, with salvage_value not exceeding purchase_cost.</p>","operationId":"CreateAsset","requestBody":{"description":"Asset object (request body, required): JSON object with asset properties. 'asset_name' and 'asset_type' are required.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssetRequestModel"}}},"required":true},"responses":{"404":{"description":"The resource you were trying to reach is not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseResourceNotFound"}}}},"409":{"description":"An asset with that name or asset tag already exists","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseModel"}}}},"500":{"description":"Application failed to process the request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseProcessFailed"}}}},"401":{"description":"You are not authorized to access the resource","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseUnauthorizedAccess"}}}},"403":{"description":"Accessing the resource you were trying to reach is forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseForbiddenAccess"}}}},"201":{"description":"Asset created successfully","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssetResponseModel"}}}},"400":{"description":"Validation failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseModel"}}}}}}},"/v3/asset_mgmt/assets/associate-tickets":{"post":{"tags":["10. Assets"],"summary":"Associate tickets to an asset","description":"Associates one or more tickets to the asset identified by asset_num, asset_name, or asset_tag.<br/><br/><p><b>Query Parameters:</b></p><ul><li><b>asset_num</b> (query parameter, optional): The unique asset number. Takes highest precedence. At least one identifier must be provided.</li><li><b>asset_name</b> (query parameter, optional): The asset name. Used if asset_num is not provided.</li><li><b>asset_tag</b> (query parameter, optional): The unique asset tag. Used if neither asset_num nor asset_name is provided.</li></ul><p>The request body must contain a single key:</p><ul><li><b>ticket_numbers</b> (required) — A JSON array of ticket numbers (integers) to associate with the asset.</li></ul><p><b>Validation rules:</b></p><ul><li>ticket_numbers must not be empty.</li><li>Maximum 10 tickets per request.</li><li>Each element must be a valid positive integer.</li><li>All ticket numbers must correspond to existing tickets — if any are not found, the entire request is rejected with a 400 listing the invalid numbers.</li></ul><p>On success, returns a JSON object with a 'message' field.</p>","operationId":"AssociateTicketsToAsset","parameters":[{"name":"asset_num","in":"query","description":"asset_num (query parameter, optional): The unique asset number. Takes highest precedence. At least one identifier must be provided.","required":false,"schema":{"type":"string"}},{"name":"asset_name","in":"query","description":"asset_name (query parameter, optional): The asset name. Used if asset_num is not provided.","required":false,"schema":{"type":"string"}},{"name":"asset_tag","in":"query","description":"asset_tag (query parameter, optional): The unique asset tag. Used if neither asset_num nor asset_name is provided.","required":false,"schema":{"type":"string"}}],"requestBody":{"description":"Ticket association object (request body, required): JSON object containing a 'ticket_numbers' array of ticket numbers to associate with the asset.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssetTicketAssociateRequestModel"}}},"required":true},"responses":{"404":{"description":"The resource you were trying to reach is not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseResourceNotFound"}}}},"500":{"description":"Application failed to process the request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseProcessFailed"}}}},"401":{"description":"You are not authorized to access the resource","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseUnauthorizedAccess"}}}},"403":{"description":"Accessing the resource you were trying to reach is forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseForbiddenAccess"}}}},"200":{"description":"Tickets associated successfully","content":{"application/json":{}}},"400":{"description":"Validation failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseModel"}}}}}}},"/v3/asset_mgmt/asset_types_fields/asset_type_create":{"post":{"tags":["11. Asset Types & Fields"],"summary":"Create an asset type","description":"<p>Creates a new asset type. Request fields:</p><ul><li>'name' is required and must not exceed 128 characters.</li><li>'asset_parent_type_name' is optional. Provide the name of an existing asset type to create the new asset type as its child. Omit this field or pass an empty value to create a top-level asset type.</li></ul><p>The response returns the created asset type with 'asset_type_name' and 'asset_parent_type_name'.</p>","operationId":"CreateAssetType","requestBody":{"description":"Asset type object (request body, required): JSON object with asset type properties. 'name' is required. 'asset_parent_type_name' is optional.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssetTypeRequestModel"}}},"required":true},"responses":{"201":{"description":"Asset type created successfully","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssetTypeResponseModel"}}}},"404":{"description":"Parent asset type not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseResourceNotFound"}}}},"500":{"description":"Application failed to process the request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseProcessFailed"}}}},"401":{"description":"You are not authorized to access the resource","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseUnauthorizedAccess"}}}},"403":{"description":"Accessing the resource you were trying to reach is forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseForbiddenAccess"}}}},"409":{"description":"An asset type with that name already exists","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseModel"}}}},"400":{"description":"Validation failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseModel"}}}}}}},"/v3/asset_mgmt/asset_types_fields/asset_field_create":{"post":{"tags":["11. Asset Types & Fields"],"summary":"Create an asset type field","description":"<p><b>Query Parameters:</b></p><ul><li><b>type_name</b> (query parameter, required): The name of the asset type to add the field to.</li></ul><p>Request and Response objects contain fixed numerical values to indicate Field Type.</p><ul><li>For \"type\": Text Input=1, Paragraph=2, Checkbox=3, Dropdown=4, Date=5, Number=6, Decimal=7.</li></ul><p>Additional notes on field creation:</p><ul><li>'name' is required and must not exceed 50 characters.</li><li>'type' is required and must be one of the values listed above.</li><li>'is_required' is optional. Deceides whether the field is mandatory. Defaults to false.</li><li>'field_order' is required and must be a positive integer.</li><li>'dropdown_choices' is required when type=4 (Dropdown). Must contain at least one entry, each not exceeding 50 characters.</li><li>'dropdown_choices' is not applicable for non-dropdown field types.</li></ul>","operationId":"CreateAssetTypeField","parameters":[{"name":"type_name","in":"query","description":"type_name (query parameter, required): The name of the asset type to add the field to.","required":true,"schema":{"type":"string"}}],"requestBody":{"description":"Asset field object (request body, required): JSON object with field properties.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssetTypeFieldRequestModel"}}},"required":true},"responses":{"500":{"description":"Application failed to process the request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseProcessFailed"}}}},"401":{"description":"You are not authorized to access the resource","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseUnauthorizedAccess"}}}},"404":{"description":"Asset type not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseResourceNotFound"}}}},"403":{"description":"Accessing the resource you were trying to reach is forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseForbiddenAccess"}}}},"201":{"description":"Asset field created successfully","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssetTypeFieldResponseModel"}}}},"400":{"description":"Validation failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseModel"}}}},"409":{"description":"A field with that name already exists for this asset type","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseModel"}}}}}}},"/v3/time_entries":{"get":{"tags":["05. Time entries"],"summary":"List All Time Entries","description":"Default response is to list all the time entries. There are eight optional fields that can be used while calling this endpoint: <br><ol><li>agent_email - When provided, only time entries that are associated with this agent will be returned.</li><br><li>billable - You can use this field to filter the time entries based on whether the time entry is billable or not.</li><br><li>company_name - When provided, only time entries that are associated with this company will be returned.</li><br><li>offset - Paginate through the resulting time entries list using this field.</li><br/><li>started_after - When provided, only time entries that were started after this time will be returned.</li><br/><li>started_before - When provided, only time entries that were started before this time will be returned.</li><br/><li>created_after - When provided, only time entries that were created after this time will be returned.</li><br/><li>updated_after - When provided, only time entries that were updated after this time will be returned.</li><br/><li>ticket_number - When provided, only time entries of this ticket will be returned.</li><br/><li>time_entries_count - By default you will retrieve 30 time_entries per API call. You can customize the count to retrieve 30, 50 or 100 time_entries per call.</li><br/><li>timer_running - You can use this field to filter the time entries based on whether the time entry is currently running or not.</li></ol><br/>","operationId":"GetTimeEntriesList","parameters":[{"name":"ticket_number","in":"query","description":"Unique ID of the ticket.","required":false,"schema":{"type":"integer","format":"int32"}},{"name":"time_entries_count","in":"query","description":"Select number of time_entries to retrieve per call.","required":false,"schema":{"type":"string","enum":["30","50","100"],"default":"30"}},{"name":"agent_email","in":"query","description":"The email address of the agent to whom the time entry is associated.","required":false,"schema":{"type":"string"}},{"name":"company_name","in":"query","description":"The name of the company.","required":false,"schema":{"type":"string"}},{"name":"started_before","in":"query","description":"Get a list of time entries started before the specified time yyyy-mm-dd hh:mm:ss.","required":false,"schema":{"type":"string"}},{"name":"started_after","in":"query","description":"Get a list of time entries started after the specified time yyyy-mm-dd hh:mm:ss.","required":false,"schema":{"type":"string"}},{"name":"created_after","in":"query","description":"Get a list of time entries created after the specified time yyyy-mm-dd hh:mm:ss.","required":false,"schema":{"type":"string"}},{"name":"updated_after","in":"query","description":"Get a list of time entries updated after the specified time yyyy-mm-dd hh:mm:ss.","required":false,"schema":{"type":"string"}},{"name":"billable","in":"query","description":"0 - Non Billable, 1 - Billable","required":false,"schema":{"type":"integer","format":"int32"}},{"name":"timer_running","in":"query","description":"0 - Timer is not running, 1 - Timer is running","required":false,"schema":{"type":"integer","format":"int32"}},{"name":"offset","in":"query","description":"Get next 30 time entries from the offset value","required":false,"schema":{"type":"string","default":"0"}}],"responses":{"404":{"description":"The resource you were trying to reach is not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseResourceNotFound"}}}},"500":{"description":"Application failed to process the request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseProcessFailed"}}}},"200":{"description":"Successfully retrieved all time entries","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TimeEntriesListModel"}}}},"401":{"description":"You are not authorized to access the resource","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseUnauthorizedAccess"}}}},"403":{"description":"Accessing the resource you were trying to reach is forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseForbiddenAccess"}}}}}}},"/v3/time_entries/details":{"get":{"tags":["05. Time entries"],"summary":"Get time entry details","description":"Get time entry details for the given time entry id.","operationId":"GetTimeEntryByID","parameters":[{"name":"id","in":"query","description":"Unique ID of the time entry","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"404":{"description":"The resource you were trying to reach is not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseResourceNotFound"}}}},"500":{"description":"Application failed to process the request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseProcessFailed"}}}},"401":{"description":"You are not authorized to access the resource","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseUnauthorizedAccess"}}}},"403":{"description":"Accessing the resource you were trying to reach is forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseForbiddenAccess"}}}},"200":{"description":"Successfully retrieved time entry details","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TimeEntryModel"}}}}}}},"/v3/tickets":{"get":{"tags":["02. Tickets"],"summary":"List all tickets","description":"Default response is to list all tickets ordered by the created date in descending order without description. There are nine optional fields that can be used while calling this endpoint: <br><ol> <li>ticket_count - By default you will retrieve 30 tickets per API call. You can customize the count to retrieve 30, 50 or 100 tickets per call.</li><br/><li>offset - Paginate through the resulting ticket list using this field.</li><br/><li>include_description - By default, description is not included in the response. You can include description in the response using this field.</li><br><li>include_custom_fields - If you use custom ticket fields, you can add them to the response using this field.</li><br><li>include_survey_details - By default, survey ratings are not included in the response. You can include it in the response using this field. 'survey_ratings' is populated only if the survey is sent. If there are multiple ratings for a ticket, the latest survey rating is populated.</li><br><li>nested_fields - If you do not want custom fields and survey details in a nested structure, set this to 1.</li><br/><li>order_by - Indicates the sorting criteria.</li><br/><li>order_type - ascending or descending.</li><br/><li>updated_since - When provided, only tickets that were updated after this time will be returned.</li><br/><li>filters - Filter the tickets based on 'status', 'priority', 'type', 'group', 'assigned_to', 'category', 'subcategory', 'source', 'contact', 'company_name' and custom dropdown fields. The 'filters' object should contain an array of string values enclosed in double quotes. Ensure that double quotes, single quotes, and backslashes within the strings are properly escaped with a backslash (\\\\).</li><br><ul><li> Use \"--\" to indicate an unassigned value for the filter </li><li> Omit fields from the filter if you prefer not to include them in the filtering process </li><li> Merged tickets are included by default. Set 'include_merged' in the filters to 0 to exclude merged tickets from the response.</li></ul><h4>Sample filters: </h4><pre>{\n    \"status\": [\"Open\", \"Pending\"],\n    \"priority\": [\"1\", \"10\"],\n    \"type\": [\"Printer \\\\'Out of Ink\\\\' Complaint\", \"Customer\\\\'s Request\"],\n    \"group\": [\"\\\\\"Sales\\\\\" Department\", \"\\\\\"Marketing\\\\\" Department\"],\n    \"assigned_to\": [\"user1@example.com\", \"user2@example.com\"],\n    \"category\": [\"Hardware\", \"Software\"],\n    \"subcategory\": [\"Printer\", \"Laptop\"],\n    \"source\": [\"1\", \"6\"],\n    \"contact\": [\"customer1@example.com\", \"customer2@example.com\"],\n    \"company_name\": [\"Sample Inc\", \"Contoso Ltd\"],\n    \"custom_fields\": {\"cf_Country\": [\"India\", \"USA\"]},\n    \"include_merged\": 0\n}</pre><h4>More information on use of filters can be found <a href=\"https://help.desk365.io/en/articles/desk365-api-version-3/#:~:text=Adding%20Filters%20and%20Retrieving%20Tickets\" target=\"_blank\">here</a></h4></ol><br/><p>Response contains fixed numerical values for the below fields:<p/><ul><li>For \"Priority\": Low=1, Medium=5, High=10, Urgent=20.</li><li>For \"Source\": Email=1, Microsoft Teams=5, Support Portal=6, Phone or Other=7, Web Form=12, Web Widget=13, API=15, Chat Widget (AI Agent)=16, Microsoft Teams(AI Agent)=17, Support Portal (AI Agent)=18</li><li>For first_replied_duration,first_assigned_duration,resolved_duration and closed_duration , the values are represented in minutes.</li><li>For \"updated_by_type\" and \"closed_by_type\": System=1, Agent=2, Contact=3.</li><li>For \"sv_type\": Customer Satisfaction = 1, Five Star Rating = 2, Net Promoter Score = 3.</li><li>For \"sv_cs_neutral_type\": 'Neither satisfied nor dissatisfied' should be categorized as Positive = 1, Neutral = 2, Negative = 3.</li><li>For \"sv_cs_ratings\": Possible values are -3, -2, -1, 0, 1, 2, 3. The text mapped to these values can be retrieved from survey details endpoint for the survey type 'Customer Satisfaction' using sv_name.</li><li>For \"conversation_count\":Total number of ticket conversations including notes, replies, and forwarded messages.</li></ul>","operationId":"GetTicketList","parameters":[{"name":"ticket_count","in":"query","description":"Select number of tickets to retrieve per call.","required":false,"schema":{"type":"string","enum":["30","50","100"],"default":"30"}},{"name":"offset","in":"query","description":"Get next 30, 50 or 100 tickets from offset value based on selected ticket_count.","required":false,"schema":{"type":"string","default":"0"}},{"name":"include_description","in":"query","description":"0 - do not include description, 1 - include description in the result.","required":false,"schema":{"type":"string","default":"0"}},{"name":"include_custom_fields","in":"query","description":"0 - do not include, 1 - include custom fields in the result.","required":false,"schema":{"type":"string","default":"0"}},{"name":"include_survey_details","in":"query","description":"0 - do not include survey details, 1 - include survey detials in the result.","required":false,"schema":{"type":"string","default":"0"}},{"name":"nested_fields","in":"query","description":"0 - nested, 1 - not nested","required":false,"schema":{"type":"string","default":"0"}},{"name":"order_by","in":"query","description":"created_time - sort by created time, updated_time - sort by updated time","required":false,"schema":{"type":"string","default":"created_time"}},{"name":"order_type","in":"query","description":"asc - sort in ascending order, desc - sort in descending order","required":false,"schema":{"type":"string","default":"desc"}},{"name":"updated_since","in":"query","description":"Get a list of tickets that have shown any activity since the specified time yyyy-mm-dd hh:mm:ss.","required":false,"schema":{"type":"string"}},{"name":"filters","in":"query","description":"Sample filters : <span style=\"font-size: 13px\">{\"status\": [\"Open\", \"Pending\"], \"priority\": [\"1\", \"10\"], \"type\": [\"Printer \\\\'Out of Ink\\\\' Complaint\", \"Customer\\\\'s Request\"], \"group\": [\"\\\\\"Sales\\\\\" Department\", \"\\\\\"Marketing\\\\\" Department\"], \"assigned_to\": [\"user1@example.com\", \"user2@example.com\"], \"category\": [\"Hardware\", \"Software\"], \"subcategory\": [\"Printer\", \"Laptop\"], \"source\": [\"1\", \"6\"], \"contact\": [\"customer1@example.com\", \"customer2@example.com\"], \"company_name\": [\"Sample Inc\", \"Contoso Ltd\"], \"custom_fields\": {\"cf_Country\": [\"India\", \"USA\"]}, \"include_merged\": 0}</span><br>","required":false,"schema":{"type":"string","default":"{}"}}],"responses":{"404":{"description":"The resource you were trying to reach is not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseResourceNotFound"}}}},"500":{"description":"Application failed to process the request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseProcessFailed"}}}},"200":{"description":"Successfully retrieved all tickets","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TicketList"}}}},"401":{"description":"You are not authorized to access the resource","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseUnauthorizedAccess"}}}},"403":{"description":"Accessing the resource you were trying to reach is forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseForbiddenAccess"}}}}}}},"/v3/tickets/search":{"get":{"tags":["02. Tickets"],"summary":"Search tickets","description":"Search and retrieve tickets matching your search query. By default, results are sorted by relevance and do not include the ticket description. The following fields are supported by this endpoint:<br><ol><li>search_type - Specifies the search mode. Use 1 for default search or 2 for advanced search.</li><br/><li>search_query - The JSON search object that defines your query. Refer to the format and sample requests below.</li><br/><li>ticket_count - By default you will retrieve 30 tickets per API call. You can customize the count to retrieve 30, 50 or 100 tickets per call.</li><br/><li>offset - Paginate through the resulting ticket list using this field.</li><br/><li>include_description - By default, description is not included in the response. You can include description in the response using this field.</li><br/><li>include_custom_fields - If you use custom ticket fields, you can add them to the response using this field.</li><br/><li>include_survey_details - By default, survey ratings are not included in the response. You can include it in the response using this field.</li><br/><li>nested_fields - If you do not want custom fields and survey details in a nested structure, set this to 1.</li><br/><li>order_by - Sort results by relevance (default), created_time, or updated_time.</li><br/><li>include_merged - Merged tickets are included by default. Set to 0 to exclude merged tickets from the response.</li><br/></ol><h4>Sample search_query for search_type = 1:</h4>For search_type=1 (Default search), use the following search_query format.<br/><pre>{\n&nbsp;&nbsp;&nbsp;&nbsp;\"query\": \"printer not working\",\n&nbsp;&nbsp;&nbsp;&nbsp;\"search_in\": [1, 2, 3, 4, 5, 6, 7]\n}</pre><ol><li>query - The text you want to search for. The query is searched in the fields specified in search_in.</li><br/><li>search_in - An array of integers (1-7) representing the fields to search. If search_in is not specified, the query is searched across all supported fields. The following values are supported:<br/><br/><ul><li>Use 1 for Subject and ticket number - Searches the ticket subject and ticket number.</li><li>Use 2 for Description - Searches the full ticket description.</li><li>Use 3 for Replies and notes - Searches all replies and notes on the ticket.</li><li>Use 4 for Attachment file names - Searches the names of files attached to the ticket.</li><li>Use 5 for Custom ticket fields - Searches across custom text and paragraph field values on the ticket.</li><li>Use 6 for Contacts and companies - Searches the associated contact and company names.</li><li>Use 7 to include archived tickets - Includes archived tickets in the results.</li></ul></li></ol><br/><h4>Sample search_query for search_type = 2:</h4>For search_type=2 (Advanced search), use the following search_query format.<br/><pre>{\n&nbsp;&nbsp;&nbsp;&nbsp;\"search_term\": [\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\"query\": \"Health concern\",\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\"search_in\": [\"subject\"]\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;},\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\"query\": \"130,131\",\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\"search_in\": [\"ticket_number\"]\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;},\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\"query\": \"urgent\",\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\"search_in\": [\"cf_priority_note\"]\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}\n&nbsp;&nbsp;&nbsp;&nbsp;]\n}</pre><ol><li>query - The text you want to search for. The query is searched in the fields specified in search_in.</li><br/><li>search_in - Specifies the field in which the corresponding query is searched. The query can be searched in subject, ticket_number, or cf_&lt;field_label&gt; (Text and Paragraph custom fields only).</li></ol>The above example searches the subject for &quot;Health concern&quot;, the ticket_number for 130 or 131, and the cf_priority_note custom field for &quot;urgent&quot;. A ticket is returned only if all three conditions match.<br/><br/><h4>Search tips</h4>By default, the search returns tickets that contain all the words in your query, in any order, including possible word variations. Use the following tips to run more specific searches:<br/><ul><li>Use double quotes to find an exact match. For example, <b>&#92;&#92;&quot;desk365&#92;&#92;&quot;</b> finds tickets containing exactly desk365.</li><li>Add an asterisk (&#42;) before the text to find words that end with it. For example, <b>&#42;365</b> will include results like Desk365.</li><li>Add an asterisk (&#42;) before and after the text to find matches that contain it. For example, <b>&#42;pass&#42;</b> will include results like password and compassion.</li></ul><br/><h4>Response field values:</h4><ul><li>For \"Priority\": Low=1, Medium=5, High=10, Urgent=20.</li><li>For \"Source\": Email=1, Microsoft Teams=5, Support Portal=6, Phone or Other=7, Web Form=12, Web Widget=13, API=15, Chat Widget (AI Agent)=16, Microsoft Teams(AI Agent)=17, Support Portal (AI Agent)=18</li><li>For first_replied_duration,first_assigned_duration,resolved_duration and closed_duration , the values are represented in minutes.</li><li>For \"updated_by_type\" and \"closed_by_type\": System=1, Agent=2, Contact=3.</li><li>For \"sv_type\": Customer Satisfaction = 1, Five Star Rating = 2, Net Promoter Score = 3.</li><li>For \"sv_cs_neutral_type\": 'Neither satisfied nor dissatisfied' should be categorized as Positive = 1, Neutral = 2, Negative = 3.</li><li>For \"sv_cs_ratings\": Possible values are -3, -2, -1, 0, 1, 2, 3. The text mapped to these values can be retrieved from survey details endpoint for the survey type 'Customer Satisfaction' using sv_name.</li><li>For \"conversation_count\":Total number of ticket conversations including notes, replies, and forwarded messages.</li></ul><br/><b>Note:</b><ul><li>Search results are limited to a maximum of 1,000 tickets. Results are paginated based on the ticket_count value (30, 50, or 100).</li><li>Each request to this endpoint consumes 5 rate limit tokens due to the resource-intensive nature of full-text search.</li></ul>","operationId":"SearchTickets","parameters":[{"name":"search_type","in":"query","description":"Use 1 for default search or 2 for advanced search.","required":true,"schema":{"type":"string","enum":["1","2"]}},{"name":"search_query","in":"query","description":"Example: {\"query\":\"printer not working\",\"search_in\":[1,3]}","required":true,"schema":{"type":"string"}},{"name":"ticket_count","in":"query","description":"Select number of tickets to retrieve per call.","required":false,"schema":{"type":"string","enum":["30","50","100"],"default":"30"}},{"name":"offset","in":"query","description":"Get next 30, 50 or 100 tickets from offset value based on selected ticket_count.","required":false,"schema":{"type":"string","default":"0"}},{"name":"include_description","in":"query","description":"0 - do not include description, 1 - include description in the result.","required":false,"schema":{"type":"string","default":"0"}},{"name":"include_custom_fields","in":"query","description":"0 - do not include, 1 - include custom fields in the result.","required":false,"schema":{"type":"string","default":"0"}},{"name":"include_survey_details","in":"query","description":"0 - do not include survey details, 1 - include survey details in the result.","required":false,"schema":{"type":"string","default":"0"}},{"name":"nested_fields","in":"query","description":"0 - nested, 1 - not nested.","required":false,"schema":{"type":"string","default":"0"}},{"name":"order_by","in":"query","description":"relevance - sort by search relevance (default), created_time - sort by created date, updated_time - sort by updated date.","required":false,"schema":{"type":"string","default":"relevance"}},{"name":"include_merged","in":"query","description":"1 - include merged tickets in results (default), 0 - exclude merged tickets.","required":false,"schema":{"type":"string","default":"1"}}],"responses":{"500":{"description":"Application failed to process the request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseProcessFailed"}}}},"200":{"description":"Successfully retrieved search results","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TicketList"}}}},"401":{"description":"You are not authorized to access the resource","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseUnauthorizedAccess"}}}},"403":{"description":"Accessing the resource you were trying to reach is forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseForbiddenAccess"}}}},"400":{"description":"Validation error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseProcessFailed"}}}}}}},"/v3/tickets/details":{"get":{"tags":["02. Tickets"],"summary":"Get Ticket Details","description":"Get all the ticket details for a given ticket number<br/><br/>Response contains fixed numerical values to indicate Priority and Source.<br/><ul><li>For \"Priority\": Low=1, Medium=5, High=10, Urgent=20.</li><li>For \"Source\": Email=1, Microsoft Teams=5, Support Portal=6, Phone or Other=7, Web Form=12, Web Widget=13, API=15, AI Agent=16.</li><li>For first_replied_duration,first_assigned_duration,resolved_duration and closed_duration , the values are represented in minutes.</li><li>For \"updated_by_type\" and \"closed_by_type\": System=1, Agent=2, Contact=3.</li></ul>","operationId":"GetTicketDetails","parameters":[{"name":"ticket_number","in":"query","description":"Ticket number to get the details of that ticket.","required":true,"schema":{"type":"string"}}],"responses":{"404":{"description":"The resource you were trying to reach is not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseResourceNotFound"}}}},"500":{"description":"Application failed to process the request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseProcessFailed"}}}},"401":{"description":"You are not authorized to access the resource","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseUnauthorizedAccess"}}}},"200":{"description":"Successfully retrieved ticket details","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TicketDetailsModel"}}}},"403":{"description":"Accessing the resource you were trying to reach is forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseForbiddenAccess"}}}}}}},"/v3/tickets/conversations":{"get":{"tags":["02. Tickets"],"summary":"Get Ticket Conversations","description":"Get all the ticket conversations for a given ticket number<br/><br/><p>Request Object Customization:</p><ul><li>By default, the conversations are sorted by earliest conversation first. If you wish to sort by latest conversation first, set the 'sort_by' property to 'latest_on_top'.</li><li>By default, the contact replies are included. If you wish to exclude the contact replies, set the 'include_contact_replies' property to 0.</li><li>By default, the agent replies are included. If you wish to exclude the agent replies, set the 'include_agent_replies' property to 0.</li><li>By default, the private notes are included. If you wish to exclude the private notes, set the 'include_private_notes' property to 0.</li><li>By default, the public notes are included. If you wish to exclude the public notes, set the 'include_public_notes' property to 0.</li><li>By default, the forwarded messages are included. If you wish to exclude the forward messages, set the 'include_forward_messages' property to 0.</li></ul><p>Response contains possible values for the below fields:<p/><ul><li>\"sender_type\": \"agent\" or \"contact\".</li>","operationId":"GetTicketConversations","parameters":[{"name":"ticket_number","in":"query","description":"Ticket number to get the conversations of that ticket.","required":true,"schema":{"type":"string"}},{"name":"sort_by","in":"query","description":"earliest_on_top - sort by earliest conversation first, latest_on_top - sort by latest conversation first","required":false,"schema":{"type":"string","enum":["earliest_on_top","latest_on_top"],"default":"earliest_on_top"}},{"name":"include_contact_replies","in":"query","description":"1 - include contact replies, 0 - do not include contact replies","required":false,"schema":{"type":"string","enum":["1","0"],"default":"1"}},{"name":"include_agent_replies","in":"query","description":"1 - include agent replies, 0 - do not include agent replies","required":false,"schema":{"type":"string","enum":["1","0"],"default":"1"}},{"name":"include_private_notes","in":"query","description":"1 - include private notes, 0 - do not include private notes","required":false,"schema":{"type":"string","enum":["1","0"],"default":"1"}},{"name":"include_public_notes","in":"query","description":"1 - include public notes, 0 - do not include public notes","required":false,"schema":{"type":"string","enum":["1","0"],"default":"1"}},{"name":"include_forward_messages","in":"query","description":"1 - include forward messages, 0 - do not include forward messages","required":false,"schema":{"type":"string","enum":["1","0"],"default":"1"}}],"responses":{"404":{"description":"The resource you were trying to reach is not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseResourceNotFound"}}}},"500":{"description":"Application failed to process the request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseProcessFailed"}}}},"401":{"description":"You are not authorized to access the resource","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseUnauthorizedAccess"}}}},"403":{"description":"Accessing the resource you were trying to reach is forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseForbiddenAccess"}}}},"200":{"description":"Successfully retrieved ticket conversations","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TicketConversationsModel"}}}}}}},"/v3/tickets/activities":{"get":{"tags":["02. Tickets"],"summary":"Get Ticket Activities","description":"Get all activities for a given ticket number.<br/><br/><p>Request customization:</p><ul><li>Each page returns up to 50 activities.</li><li>Use 'offset' to paginate through the results.</li><li>Activities are shown from oldest to newest by default. Set 'sort_by' to 'latest_on_top' to show the newest first.</li></ul><p>Response fields:</p><ul><li>'actions': Details of the activity.</li><li>'count': Total number of activities for the ticket.</li><li>'actor': The person who performed the action.</li></ul><p>Note: Activity history is available only for tickets created after June 06, 2026.</p>","operationId":"GetTicketActivities","parameters":[{"name":"ticket_number","in":"query","description":"Ticket number to get activities for.","required":true,"schema":{"type":"string"}},{"name":"offset","in":"query","description":"Get next 50 activities from offset value.","required":false,"schema":{"type":"string"}},{"name":"sort_by","in":"query","description":"earliest_on_top - sort by earliest activity first, latest_on_top - sort by latest activity first","required":false,"schema":{"type":"string","enum":["earliest_on_top","latest_on_top"],"default":"earliest_on_top"}}],"responses":{"404":{"description":"The resource you were trying to reach is not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseResourceNotFound"}}}},"500":{"description":"Application failed to process the request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseProcessFailed"}}}},"401":{"description":"You are not authorized to access the resource","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseUnauthorizedAccess"}}}},"403":{"description":"Accessing the resource you were trying to reach is forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseForbiddenAccess"}}}},"200":{"description":"Successfully retrieved ticket activities","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TicketActivitiesModel"}}}},"400":{"description":"Validation failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseModel"}}}}}}},"/v3/surveys":{"get":{"tags":["06. Surveys"],"summary":"List all survey details","description":"Default response is to list all surveys ordered by their creation time in ascending order. <br><p>This API endpoint contains fields that use constant integers to represent specific predefined categories or states within the system. The following is a detailed explanation of the constants and their meanings:<p><ul><li>For \"survey_type\": Customer Satisfaction = 1, Five Star Rating = 2, Net Promoter Score = 3.</li><li>For \"cs_rating_order\": Good to Bad = 1, Bad to Good = 2</li><li>For \"cs_neutral_type\": 'Neither satisfied nor dissatisfied' should be categorized as Positive = 1, Neutral = 2, Negative = 3.</li><li>For \"notify_type\": Ticket resolved = 7, Ticket closed = 8</li></ul>","operationId":"GetAllSurveyDetails","responses":{"404":{"description":"The resource you were trying to reach is not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseResourceNotFound"}}}},"500":{"description":"Application failed to process the request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseProcessFailed"}}}},"401":{"description":"You are not authorized to access the resource","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseUnauthorizedAccess"}}}},"403":{"description":"Accessing the resource you were trying to reach is forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseForbiddenAccess"}}}},"200":{"description":"Successfully retrieved all survey details","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SurveyListModel"}}}}}}},"/v3/surveys/ratings":{"get":{"tags":["06. Surveys"],"summary":"List all survey ratings","description":"Default response is to list all survey ratings by their replied time in ascending order.<br><p>This API endpoint contains fields that use constant integers to represent specific predefined categories or states within the system. The following is a detailed explanation of the constants and their meanings:<p><ul><li>For \"survey_type\": Customer Satisfaction = 1, Five Star Rating = 2, Net Promoter Score = 3.</li><li>For \"cs_neutral_type\": 'Neither satisfied nor dissatisfied' should be categorized as Positive = 1, Neutral = 2, Negative = 3.</li></ul>","operationId":"GetAllSurveyResponses","parameters":[{"name":"offset","in":"query","description":"Get next 30 survey ratings from offset value.","required":false,"schema":{"type":"string","default":"0"}}],"responses":{"404":{"description":"The resource you were trying to reach is not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseResourceNotFound"}}}},"500":{"description":"Application failed to process the request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseProcessFailed"}}}},"401":{"description":"You are not authorized to access the resource","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseUnauthorizedAccess"}}}},"200":{"description":"Successfully retrieved all survey ratings","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SurveyRatingsListModel"}}}},"403":{"description":"Accessing the resource you were trying to reach is forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseForbiddenAccess"}}}}}}},"/v3/surveys/details":{"get":{"tags":["06. Surveys"],"summary":"Get survey details","description":"Get the survey details for a given survey name. Deleted surveys cannot be retrieved through this endpoint.<br><p>This API endpoint contains fields that use constant integers to represent specific predefined categories or states within the system. The following is a detailed explanation of the constants and their meanings:<p><ul><li>For \"survey_type\": Customer Satisfaction = 1, Five Star Rating = 2, Net Promoter Score = 3.</li><li>For \"cs_rating_order\": Good to Bad = 1, Bad to Good = 2</li><li>For \"cs_neutral_type\": 'Neither satisfied nor dissatisfied' should be categorized as Positive = 1, Neutral = 2, Negative = 3.</li><li>For \"notify_type\": Ticket resolved = 7, Ticket closed = 8</li></ul>","operationId":"GetSurveyDetails","parameters":[{"name":"survey_name","in":"query","description":"Survey name","required":true,"schema":{"type":"string"}}],"responses":{"404":{"description":"The resource you were trying to reach is not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseResourceNotFound"}}}},"200":{"description":"Successfully retrieved survey details","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SurveyDetailsModel"}}}},"500":{"description":"Application failed to process the request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseProcessFailed"}}}},"401":{"description":"You are not authorized to access the resource","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseUnauthorizedAccess"}}}},"403":{"description":"Accessing the resource you were trying to reach is forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseForbiddenAccess"}}}}}}},"/v3/ping":{"get":{"tags":["01. Ping"],"operationId":"checkStatus","responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"string"}}}}}}},"/v3/kb/folder/details":{"get":{"tags":["08. KB Folders"],"summary":"Get Folder Details","description":"Get folder details for a given category and folder name.<br/><br/>","operationId":"GetFolderDetails","parameters":[{"name":"category_name","in":"query","description":"Category name","required":true,"schema":{"type":"string"}},{"name":"folder_name","in":"query","description":"Folder name","required":true,"schema":{"type":"string"}}],"responses":{"404":{"description":"The resource you were trying to reach is not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseResourceNotFound"}}}},"500":{"description":"Application failed to process the request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseProcessFailed"}}}},"200":{"description":"Successfully retrieved folder details","content":{"application/json":{"schema":{"$ref":"#/components/schemas/KBFolderDetailsModel"}}}},"401":{"description":"You are not authorized to access the resource","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseUnauthorizedAccess"}}}},"403":{"description":"Accessing the resource you were trying to reach is forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseForbiddenAccess"}}}}}}},"/v3/kb/category/details":{"get":{"tags":["07. KB Categories"],"summary":"Get Category Details","description":"Get category details for a given category name.<br/><br/>This API endpoint uses constant integers to represent predefined categories or states. Below is a summary of their meanings:<br/><ul><li>For \"support_portal_visibility\": 1 - \"Not visible in the Support Portal\", 2 - \"All visitors to the Support Portal\", 3 - \"Only signed in users of the Support Portal\", 4 - \"Support Portal signed in users from specific companies\"</li><li>For \"agent_portal_visibility\": 1 - \"All agents\", 2 - \"All agents in my group(s)\".</li></ul>","operationId":"GetCategoryDetails","parameters":[{"name":"category_name","in":"query","description":"Category name","required":true,"schema":{"type":"string"}}],"responses":{"404":{"description":"The resource you were trying to reach is not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseResourceNotFound"}}}},"500":{"description":"Application failed to process the request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseProcessFailed"}}}},"401":{"description":"You are not authorized to access the resource","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseUnauthorizedAccess"}}}},"403":{"description":"Accessing the resource you were trying to reach is forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseForbiddenAccess"}}}},"200":{"description":"Successfully retrieved category details","content":{"application/json":{"schema":{"$ref":"#/components/schemas/KBCategoryDetailsModel"}}}}}}},"/v3/kb/article/details":{"get":{"tags":["09. KB Articles"],"summary":"Get Article Details","description":"Get live article details for a given article name.<br/><br/>This API endpoint uses constant integers to represent predefined categories or states. Below is a summary of their meanings:<br/><ul><li>For \"status\": 0 - \"Draft\", 1 - \"Published\"</li></ul>","operationId":"GetArticleDetails","parameters":[{"name":"article_name","in":"query","description":"Article name","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successfully retrieved article details","content":{"application/json":{"schema":{"$ref":"#/components/schemas/KBArticleDetailsModel"}}}},"404":{"description":"The resource you were trying to reach is not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseResourceNotFound"}}}},"500":{"description":"Application failed to process the request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseProcessFailed"}}}},"401":{"description":"You are not authorized to access the resource","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseUnauthorizedAccess"}}}},"403":{"description":"Accessing the resource you were trying to reach is forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseForbiddenAccess"}}}}}}},"/v3/kb/article/":{"get":{"tags":["09. KB Articles"],"summary":"List All Articles","description":"Get a list of all the live KB article titles.<br/><br/>","operationId":"GetAllArticleTitles","responses":{"200":{"description":"Successfully retrieved article titles","content":{"application/json":{"schema":{"$ref":"#/components/schemas/KBArticleListModel"}}}},"404":{"description":"The resource you were trying to reach is not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseResourceNotFound"}}}},"500":{"description":"Application failed to process the request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseProcessFailed"}}}},"401":{"description":"You are not authorized to access the resource","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseUnauthorizedAccess"}}}},"403":{"description":"Accessing the resource you were trying to reach is forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseForbiddenAccess"}}}}}}},"/v3/contracts":{"get":{"tags":["18. Contracts"],"summary":"List all contracts","description":"<p>Default response is to list all contracts ordered by the contract name in alphabetical order. There are six optional fields that can be used while calling this endpoint:</p> <br><ol><li>contract_category - When provided, only the contracts that belong to this category will be returned.</li><br><li>company - When provided, only the contracts that belong to this company will be returned.</li><br><li>include_expired_contracts - By default, all contracts will be returned including expired ones. If you want to remove the expired contracts from the response, you can set the value of this field to 0.</li><br/><li>include_inactive_contracts - By default, all contracts will be returned including inactive ones. If you want to remove the inactive contracts from the response, you can set the value of this field to 0.</li><br/><li>include_upcoming_contracts - By default, all contracts will be returned including upcoming ones. If you want to remove the upcoming contracts from the response, you can set the value of this field to 0.</li><br/><li>offset - Paginate through the resulting contract list using this field.</li></ol><br/><p>Response object contain fixed numerical values to indicate bill_cycle, contract_type and rollover_type.</p><ul><li>For \"bill_cycle\": Monthly = 1, Contract Length=2.</li><li>For \"contract_type\": Block Hours = 2, Block Tickets = 3.</li><li>For \"rollover_type\": Monthly = 1.</li></ul>","operationId":"GetContractList","parameters":[{"name":"offset","in":"query","description":"Get next 30 contracts from offset value.","required":false,"schema":{"type":"string","default":"0"}},{"name":"company","in":"query","description":"Enter the company name to get the contracts associated with the company.","required":false,"schema":{"type":"string"}},{"name":"contract_category","in":"query","description":"Enter the category name to get the contracts from the category.","required":false,"schema":{"type":"string"}},{"name":"include_inactive_contracts","in":"query","description":"0 - do not include inactive contracts, 1 - include inactive contracts in the result.","required":false,"schema":{"type":"string","default":"1"}},{"name":"include_expired_contracts","in":"query","description":"0 - do not include expired contracts, 1 - include expired contracts in the result.","required":false,"schema":{"type":"string","default":"1"}},{"name":"include_upcoming_contracts","in":"query","description":"0 - do not include upcoming contracts, 1 - include upcoming contracts in the result.","required":false,"schema":{"type":"string","default":"1"}}],"responses":{"404":{"description":"The resource you were trying to reach is not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseResourceNotFound"}}}},"500":{"description":"Application failed to process the request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseProcessFailed"}}}},"401":{"description":"You are not authorized to access the resource","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseUnauthorizedAccess"}}}},"403":{"description":"Accessing the resource you were trying to reach is forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseForbiddenAccess"}}}},"200":{"description":"Successfully retrieved all contracts","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContractListModel"}}}}}}},"/v3/contracts/details":{"get":{"tags":["18. Contracts"],"summary":"Get Contract Details","description":"Get all the contract details for a given contract name or reference number <br/><br/><p>Request Parameter Customization:</p><ul><li>If there are multiple contracts with the same name, a reference number is required for identification purposes.</li></ul><p>Response object contains fixed numerical values to indicate bill_cycle, contract_type and rollover_type.</p><ul><li>For \"bill_cycle\": Monthly = 1, Contract Length=2.</li><li>For \"contract_type\": Block Hours = 2, Block Tickets = 3.</li><li>For \"rollover_type\": Monthly = 1.</li></ul>","operationId":"GetContractDetails","parameters":[{"name":"reference_number","in":"query","description":"Reference number of the contract.","required":false,"schema":{"type":"string"}},{"name":"contract_name","in":"query","description":"Name of the contract.","required":false,"schema":{"type":"string"}}],"responses":{"404":{"description":"The resource you were trying to reach is not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseResourceNotFound"}}}},"500":{"description":"Application failed to process the request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseProcessFailed"}}}},"401":{"description":"You are not authorized to access the resource","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseUnauthorizedAccess"}}}},"403":{"description":"Accessing the resource you were trying to reach is forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseForbiddenAccess"}}}},"200":{"description":"Successfully retrieved contract details","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContractDetailsModel"}}}}}}},"/v3/contacts":{"get":{"tags":["03. Contacts"],"summary":"List all contacts","description":"Default response is to list all contacts ordered by the contact name in ascending order. There are five optional fields that can be used while calling this endpoint: <br><ol><li>company - If you want to retrieve the contacts belong to a specific company, you can do so by specifying the company name in this field.</li><br><li>offset - Paginate through the resulting contact list using this field.</li><br/><li>order_by - Indicates the sorting criteria.</li><br/><li>order_type - ascending or descending.</li><br/><li>include_custom_fields - If you use custom contact fields, you can add them to the response using this field.</li></ol>","operationId":"GetContactsList","parameters":[{"name":"offset","in":"query","description":"Get next 50 contacts from offset value.","required":false,"schema":{"type":"string","default":"0"}},{"name":"company","in":"query","description":"Enter the company name to get the contacts belong to this company.","required":false,"schema":{"type":"string"}},{"name":"order_by","in":"query","description":"1 - sort by name, 2 - sort by title, 3 - sort by company name, 4 - sort by email","required":false,"schema":{"type":"string","default":"1"}},{"name":"order_type","in":"query","description":"asc - sort in ascending order, desc - sort in descending order","required":false,"schema":{"type":"string","default":"asc"}},{"name":"include_custom_fields","in":"query","description":"0 - do not include, 1 - include custom fields in the result.","required":false,"schema":{"type":"string","default":"0"}}],"responses":{"404":{"description":"The resource you were trying to reach is not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseResourceNotFound"}}}},"500":{"description":"Application failed to process the request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseProcessFailed"}}}},"401":{"description":"You are not authorized to access the resource","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseUnauthorizedAccess"}}}},"403":{"description":"Accessing the resource you were trying to reach is forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseForbiddenAccess"}}}},"200":{"description":"Successfully retrieved all contacts","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContactList"}}}}}}},"/v3/contacts/details":{"get":{"tags":["03. Contacts"],"summary":"Get Contact Details","description":"<p>Get all the contact details for a given email address. There are two fields that can be used while calling this endpoint:</p><ol><li><strong>primary_email</strong> – If you want to retrieve the contact details with the primary email of the contact.</li><li><strong>secondary_email</strong> – If you want to retrieve the contact details with the secondary email of the contact.</li></ol><p><strong>Note:</strong> <strong>Either one of the fields should be populated. If both are populated, the primary email will be considered.</strong></p>","operationId":"GetContactDetails","parameters":[{"name":"primary_email","in":"query","description":"The primary email address of the contact.","required":false,"schema":{"type":"string"}},{"name":"secondary_email","in":"query","description":"The secondary email of the contact.","required":false,"schema":{"type":"string"}}],"responses":{"404":{"description":"The resource you were trying to reach is not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseResourceNotFound"}}}},"500":{"description":"Application failed to process the request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseProcessFailed"}}}},"401":{"description":"You are not authorized to access the resource","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseUnauthorizedAccess"}}}},"403":{"description":"Accessing the resource you were trying to reach is forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseForbiddenAccess"}}}},"200":{"description":"Successfully retrieved contact details","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContactResponseModel"}}}}}}},"/v3/companies":{"get":{"tags":["04. Companies"],"summary":"List all companies","description":"Default response is to list all companies ordered by the company name in ascending order. There is two optional fields that can be used while calling this endpoint: <br><ol><li>offset - Paginate through the resulting company list using this field.</li><br/><li>include_custom_fields - If you use custom company fields, you can add them to the response using this field.</li><br/></ol><br/>","operationId":"GetCompaniesList","parameters":[{"name":"offset","in":"query","description":"Get next 30 companies from offset value.","required":false,"schema":{"type":"string","default":"0"}},{"name":"include_custom_fields","in":"query","description":"0 - do not include, 1 - include custom fields in the result.","required":false,"schema":{"type":"string","default":"0"}}],"responses":{"404":{"description":"The resource you were trying to reach is not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseResourceNotFound"}}}},"200":{"description":"Successfully retrieved all companies","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CompanyList"}}}},"500":{"description":"Application failed to process the request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseProcessFailed"}}}},"401":{"description":"You are not authorized to access the resource","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseUnauthorizedAccess"}}}},"403":{"description":"Accessing the resource you were trying to reach is forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseForbiddenAccess"}}}}}}},"/v3/companies/details":{"get":{"tags":["04. Companies"],"summary":"Get Company Details","description":"Get all the company details for a given company name.","operationId":"GetCompanyDetails","parameters":[{"name":"name","in":"query","description":"The name of the company.","required":true,"schema":{"type":"string"}}],"responses":{"404":{"description":"The resource you were trying to reach is not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseResourceNotFound"}}}},"200":{"description":"Successfully retrieved company details","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CompanyResponseModel"}}}},"500":{"description":"Application failed to process the request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseProcessFailed"}}}},"401":{"description":"You are not authorized to access the resource","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseUnauthorizedAccess"}}}},"403":{"description":"Accessing the resource you were trying to reach is forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseForbiddenAccess"}}}}}}},"/v3/asset_mgmt/vendors":{"get":{"tags":["13. Vendors"],"summary":"List all vendors","description":"Returns a paginated list of all vendors ordered by vendor name in ascending order.<br/><br/><p><b>Query Parameters:</b></p><ul><li><b>offset</b> (query parameter, optional): Pagination offset. Returns next 30 vendors starting from this value. Defaults to 0.</li></ul>","operationId":"GetAllVendors","parameters":[{"name":"offset","in":"query","description":"offset (query parameter, optional): Pagination offset. Returns next 30 vendors starting from this value. Defaults to 0.","required":false,"schema":{"type":"string","default":"0"}}],"responses":{"404":{"description":"The resource you were trying to reach is not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseResourceNotFound"}}}},"200":{"description":"All vendors retrieved successfully","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VendorListModel"}}}},"500":{"description":"Application failed to process the request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseProcessFailed"}}}},"401":{"description":"You are not authorized to access the resource","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseUnauthorizedAccess"}}}},"403":{"description":"Accessing the resource you were trying to reach is forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseForbiddenAccess"}}}}}}},"/v3/asset_mgmt/vendors/details":{"get":{"tags":["13. Vendors"],"summary":"Get vendor details","description":"Returns all details for the vendor identified by the given vendor name, including an 'associated_products' array listing each product linked to this vendor with its quantity.<br/><br/><p><b>Query Parameters:</b></p><ul><li><b>name</b> (query parameter, required): The name of the vendor.</li></ul>","operationId":"GetVendorDetails","parameters":[{"name":"name","in":"query","description":"name (query parameter, required): The name of the vendor.","required":true,"schema":{"type":"string"}}],"responses":{"404":{"description":"The resource you were trying to reach is not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseResourceNotFound"}}}},"500":{"description":"Application failed to process the request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseProcessFailed"}}}},"200":{"description":"Vendor details retrieved successfully","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VendorResponseModel"}}}},"401":{"description":"You are not authorized to access the resource","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseUnauthorizedAccess"}}}},"403":{"description":"Accessing the resource you were trying to reach is forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseForbiddenAccess"}}}}}}},"/v3/asset_mgmt/softwares":{"get":{"tags":["16. Softwares"],"summary":"List all softwares","description":"Returns a paginated list of softwares (30 per page). Use the optional 'filters' parameter to narrow results.<br/><br/><p>The 'filters' parameter accepts a JSON string with the following supported keys:</p><ul><li><b>status</b> — Array of status labels (e.g. Managed, Restricted).</li><li><b>type</b> — Array of type labels (e.g. SaaS, Cloud).</li><li><b>vendor</b> — Array of vendor names.</li><li><b>managed_by_group</b> — Array of group names.</li><li><b>managed_by_agent</b> — Array of agent email addresses.</li><li><b>expiration</b> — Date filter object: {\"date\": \"yyyy-MM-dd\", \"operator\": 0}. Operator: 0=equals, 1=before, 2=after.</li><li><b>search_term</b> — Search by software name (string).</li></ul><p>Any unrecognised key returns a 400 validation error.</p><h4>Sample filters:</h4>{<br/>&nbsp;&nbsp;&nbsp;&nbsp;\"status\": [\"Managed\", \"Restricted\"],<br/>&nbsp;&nbsp;&nbsp;&nbsp;\"type\": [\"SaaS\"],<br/>&nbsp;&nbsp;&nbsp;&nbsp;\"vendor\": [\"Microsoft\", \"Adobe\"],<br/>&nbsp;&nbsp;&nbsp;&nbsp;\"managed_by_group\": [\"IT Operations\"],<br/>&nbsp;&nbsp;&nbsp;&nbsp;\"managed_by_agent\": [\"agent@company.com\"],<br/>&nbsp;&nbsp;&nbsp;&nbsp;\"expiration\": { \"date\": \"2026-12-31\", \"operator\": 1 },<br/>&nbsp;&nbsp;&nbsp;&nbsp;\"search_term\": \"Office\"<br/>}<br/><br/><p><b>Query Parameters:</b></p><ul><li><b>offset</b> (query parameter, optional): Pagination offset. Returns next 30 softwares starting from this value. Defaults to 0.</li><li><b>filters</b> (query parameter, optional): JSON string to filter results. Supported keys documented above.</li><li><b>sort_by</b> (query parameter, optional): Sort column. Allowed values: created_time, updated_time. Defaults to created_time.</li><li><b>sort_order</b> (query parameter, optional): Sort direction. Allowed values: asc, desc. Defaults to desc.</li></ul>","operationId":"GetAllSoftwares","parameters":[{"name":"offset","in":"query","description":"offset (query parameter, optional): Pagination offset. Returns next 30 softwares starting from this value. Defaults to 0.","required":false,"schema":{"type":"string","default":"0"}},{"name":"filters","in":"query","description":"filters (query parameter, optional): JSON string to filter results. Supported keys documented in the description above.","required":false,"schema":{"type":"string","default":"{}"}},{"name":"sort_by","in":"query","description":"sort_by (query parameter, optional): Sort column. Allowed values: created_time, updated_time. Defaults to created_time.","required":false,"schema":{"type":"string","enum":["created_time","updated_time"],"default":"created_time"}},{"name":"sort_order","in":"query","description":"sort_order (query parameter, optional): Sort direction. Allowed values: asc, desc. Defaults to desc.","required":false,"schema":{"type":"string","enum":["asc","desc"],"default":"desc"}}],"responses":{"404":{"description":"The resource you were trying to reach is not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseResourceNotFound"}}}},"500":{"description":"Application failed to process the request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseProcessFailed"}}}},"401":{"description":"You are not authorized to access the resource","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseUnauthorizedAccess"}}}},"403":{"description":"Accessing the resource you were trying to reach is forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseForbiddenAccess"}}}},"200":{"description":"All softwares retrieved successfully","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SoftwareListModel"}}}},"400":{"description":"Invalid offset or filter parameters","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseModel"}}}}}}},"/v3/asset_mgmt/softwares/details":{"get":{"tags":["16. Softwares"],"summary":"Get software details","description":"Returns all details for the software identified by software_num or software_name. Precedence: software_num > software_name. At least one must be provided.<br/><br/><p>The response includes custom_fields (a map of field name to value for all custom software fields) and users (an array of contact email addresses associated with this software).</p><p><b>Query Parameters:</b></p><ul><li><b>software_num</b> (query parameter, optional): The unique software number. Takes highest precedence. At least one identifier must be provided.</li><li><b>software_name</b> (query parameter, optional): The software name. Used if software_num is not provided.</li></ul>","operationId":"GetSoftwareDetails","parameters":[{"name":"software_num","in":"query","description":"software_num (query parameter, optional): The unique software number. Takes highest precedence. At least one identifier must be provided.","required":false,"schema":{"type":"string"}},{"name":"software_name","in":"query","description":"software_name (query parameter, optional): The software name. Used if software_num is not provided.","required":false,"schema":{"type":"string"}}],"responses":{"404":{"description":"The resource you were trying to reach is not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseResourceNotFound"}}}},"400":{"description":"Missing or invalid parameters","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseModel"}}}},"500":{"description":"Application failed to process the request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseProcessFailed"}}}},"401":{"description":"You are not authorized to access the resource","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseUnauthorizedAccess"}}}},"200":{"description":"Software details retrieved successfully","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SoftwareResponseModel"}}}},"403":{"description":"Accessing the resource you were trying to reach is forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseForbiddenAccess"}}}}}}},"/v3/asset_mgmt/software_fields":{"get":{"tags":["17. Software Fields"],"summary":"List all software fields","description":"<p>Returns the full list of software fields for the account.</p><p>Request and Response objects contain fixed numerical values to indicate Field Type.</p><ul><li>For \"field_type\": Text Input=1, Paragraph=2, Checkbox=3, Dropdown=4, Date=5, Number=6, Decimal=7.</li></ul><p>Each entry contains:</p><ul><li>'field_name': Name of the software field.</li><li>'field_type': Software field type (numerical).</li><li>'is_required': Whether the field is mandatory.</li><li>'field_order': Display order of the field.</li><li>'is_default': Whether this is a system-default field.</li><li>'dropdown_choices': List of option names. Only present when field_type=4.</li></ul>","operationId":"GetAllSoftwareFields","responses":{"500":{"description":"Application failed to process the request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseProcessFailed"}}}},"401":{"description":"You are not authorized to access the resource","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseUnauthorizedAccess"}}}},"403":{"description":"Accessing the resource you were trying to reach is forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseForbiddenAccess"}}}},"200":{"description":"All software fields retrieved successfully","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SoftwareFieldListModel"}}}}}}},"/v3/asset_mgmt/software_fields/get_field_details":{"get":{"tags":["17. Software Fields"],"summary":"Get software field details","description":"<p>Returns full details for the software field identified by the given name.</p><p>Request and Response objects contain fixed numerical values to indicate Field Type.</p><ul><li>For \"field_type\": Text Input=1, Paragraph=2, Checkbox=3, Dropdown=4, Date=5, Number=6, Decimal=7.</li></ul><p>Response fields:</p><ul><li>'field_name': Name of the software field.</li><li>'field_type': Software field type (numerical).</li><li>'is_required': Whether the field is mandatory.</li><li>'field_order': Display order of the field.</li><li>'is_default': Whether this is a system-default field.</li><li>'dropdown_choices': List of option names. Only present when field_type=4.</li></ul><p><b>Query Parameters:</b></p><ul><li><b>field_name</b> (query parameter, required): The name of the software field.</li></ul>","operationId":"GetSoftwareFieldDetails","parameters":[{"name":"field_name","in":"query","description":"field_name (query parameter, required): The name of the software field.","required":true,"schema":{"type":"string"}}],"responses":{"500":{"description":"Application failed to process the request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseProcessFailed"}}}},"401":{"description":"You are not authorized to access the resource","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseUnauthorizedAccess"}}}},"404":{"description":"Software field not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseResourceNotFound"}}}},"403":{"description":"Accessing the resource you were trying to reach is forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseForbiddenAccess"}}}},"200":{"description":"Software field details retrieved successfully","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SoftwareFieldResponseModel"}}}}}}},"/v3/asset_mgmt/products":{"get":{"tags":["12. Products"],"summary":"List all products","description":"<p>Returns all products defined for the account.</p><p>Status: 1 = In Production, 2 = In Pipeline, 3 = Retired. Mode of Procurement: 1 = Buy, 2 = Lease.</p>","operationId":"GetAllProducts","responses":{"500":{"description":"Application failed to process the request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseProcessFailed"}}}},"401":{"description":"You are not authorized to access the resource","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseUnauthorizedAccess"}}}},"403":{"description":"Accessing the resource you were trying to reach is forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseForbiddenAccess"}}}},"200":{"description":"All products retrieved successfully","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProductListModel"}}}}}}},"/v3/asset_mgmt/products/details":{"get":{"tags":["12. Products"],"summary":"Get product details","description":"Returns all details for the product identified by name.<br/><br/><p><b>Query Parameters:</b></p><ul><li><b>name</b> (query parameter, required): The name of the product.</li></ul><p>Status: 1 = In Production, 2 = In Pipeline, 3 = Retired. Mode of Procurement: 1 = Buy, 2 = Lease.</p>","operationId":"GetProductDetails","parameters":[{"name":"name","in":"query","description":"name (query parameter, required): The name of the product.","required":true,"schema":{"type":"string"}}],"responses":{"404":{"description":"The resource you were trying to reach is not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseResourceNotFound"}}}},"200":{"description":"Product details retrieved successfully","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProductResponseModel"}}}},"500":{"description":"Application failed to process the request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseProcessFailed"}}}},"401":{"description":"You are not authorized to access the resource","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseUnauthorizedAccess"}}}},"403":{"description":"Accessing the resource you were trying to reach is forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseForbiddenAccess"}}}}}}},"/v3/asset_mgmt/locations":{"get":{"tags":["15. Locations"],"summary":"List all locations","description":"Returns all locations defined for the account in a flat list.","operationId":"GetAllLocations","responses":{"200":{"description":"All locations retrieved successfully","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LocationListModel"}}}},"500":{"description":"Application failed to process the request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseProcessFailed"}}}},"401":{"description":"You are not authorized to access the resource","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseUnauthorizedAccess"}}}},"403":{"description":"Accessing the resource you were trying to reach is forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseForbiddenAccess"}}}}}}},"/v3/asset_mgmt/locations/details":{"get":{"tags":["15. Locations"],"summary":"Get location details","description":"Returns all details for the location identified by 'location_name'.<br/><br/><p><b>Query Parameters:</b></p><ul><li><b>location_name</b> (query parameter, required): The name of the location.</li></ul>","operationId":"GetLocationDetails","parameters":[{"name":"location_name","in":"query","description":"location_name (query parameter, required): The name of the location.","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Location details retrieved successfully","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LocationResponseModel"}}}},"404":{"description":"The resource you were trying to reach is not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseResourceNotFound"}}}},"500":{"description":"Application failed to process the request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseProcessFailed"}}}},"401":{"description":"You are not authorized to access the resource","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseUnauthorizedAccess"}}}},"403":{"description":"Accessing the resource you were trying to reach is forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseForbiddenAccess"}}}}}}},"/v3/asset_mgmt/depreciations":{"get":{"tags":["14. Depreciations"],"summary":"List all depreciation methods","description":"<p>Returns all depreciation methods defined for the account.</p><p>Depreciation types: 1 = Declining Balance, 2 = Straight Line, 3 = Sum of Years' Digits.</p>","operationId":"GetAllDepreciations","responses":{"500":{"description":"Application failed to process the request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseProcessFailed"}}}},"200":{"description":"All depreciation methods retrieved successfully","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DepreciationListModel"}}}},"401":{"description":"You are not authorized to access the resource","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseUnauthorizedAccess"}}}},"403":{"description":"Accessing the resource you were trying to reach is forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseForbiddenAccess"}}}}}}},"/v3/asset_mgmt/depreciations/details":{"get":{"tags":["14. Depreciations"],"summary":"Get depreciation details","description":"Returns all details for the depreciation method identified by name. Depreciation types: 1 = Declining Balance, 2 = Straight Line, 3 = Sum of Years' Digits.<br/><br/><p><b>Query Parameters:</b></p><ul><li><b>depreciation_name</b> (query parameter, required): The name of the depreciation method.</li></ul>","operationId":"GetDepreciationDetails","parameters":[{"name":"depreciation_name","in":"query","description":"depreciation_name (query parameter, required): The name of the depreciation method.","required":true,"schema":{"type":"string"}}],"responses":{"404":{"description":"The resource you were trying to reach is not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseResourceNotFound"}}}},"500":{"description":"Application failed to process the request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseProcessFailed"}}}},"401":{"description":"You are not authorized to access the resource","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseUnauthorizedAccess"}}}},"200":{"description":"Depreciation details retrieved successfully","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DepreciationResponseModel"}}}},"403":{"description":"Accessing the resource you were trying to reach is forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseForbiddenAccess"}}}}}}},"/v3/asset_mgmt/assets":{"get":{"tags":["10. Assets"],"summary":"List all assets","description":"Returns a paginated list of assets (30 per page).<br/><br/><p><b>Query Parameters:</b></p><ul><li><b>offset</b> (query parameter, optional): Pagination offset. Returns next 30 assets starting from this value. Defaults to 0.</li><li><b>filterJson</b> (query parameter, optional): JSON string to filter results. Supported keys documented below.</li><li><b>sort_by</b> (query parameter, optional): Sort column. Allowed values: created_time, updated_time. Defaults to created_time.</li><li><b>sort_order</b> (query parameter, optional): Sort direction. Allowed values: asc, desc. Defaults to desc.</li></ul><p>The 'filterJson' parameter accepts a JSON string with the following supported keys:</p><ul><li><b>asset_type</b> — Asset type name (string).</li><li><b>impact</b> — Array of impact labels. Valid values: Low, Medium, High.</li><li><b>end_of_life</b> — Date filter object: {&quot;date&quot;: &quot;yyyy-MM-dd&quot;, &quot;operator&quot;: 0}. Operator: 0=equals, 1=before, 2=after.</li><li><b>location</b> — Array of location names.</li><li><b>managed_by_group</b> — Array of group names.</li><li><b>managed_by_agent</b> — Array of agent email addresses.</li><li><b>company</b> — Array of company names.</li><li><b>department</b> — Array of department names.</li><li><b>used_by</b> — Array of contact email addresses.</li><li><b>assigned_on</b> — Date filter object: {&quot;date&quot;: &quot;yyyy-MM-dd&quot;, &quot;operator&quot;: 0}.</li><li><b>product</b> — Array of product names.</li><li><b>vendor</b> — Array of vendor names.</li><li><b>asset_state</b> — Array of asset state names.</li><li><b>purchase_date</b> — Date filter object: {&quot;date&quot;: &quot;yyyy-MM-dd&quot;, &quot;operator&quot;: 0}.</li><li><b>warranty_expiry_date</b> — Date filter object: {&quot;date&quot;: &quot;yyyy-MM-dd&quot;, &quot;operator&quot;: 0}.</li><li><b>depreciation</b> — Array of depreciation names.</li><li><b>last_audit_date</b> — Date filter object: {&quot;date&quot;: &quot;yyyy-MM-dd&quot;, &quot;operator&quot;: 0}.</li><li><b>search_term</b> — Search by asset name (string, max 256 characters).</li></ul><p>Any unrecognised key returns a 400 validation error. Invalid filter values (e.g. non-existent location names, unknown agent emails) also return a 400 validation error.</p><h4>Sample filters:</h4><pre>{\n&nbsp;&nbsp;&nbsp;&nbsp;\"asset_type\": \"Laptop\",\n&nbsp;&nbsp;&nbsp;&nbsp;\"impact\": [\"High\", \"Medium\"],\n&nbsp;&nbsp;&nbsp;&nbsp;\"end_of_life\": { \"date\": \"2026-12-31\", \"operator\": 1 },\n&nbsp;&nbsp;&nbsp;&nbsp;\"location\": [\"HQ\", \"Branch Office\"],\n&nbsp;&nbsp;&nbsp;&nbsp;\"managed_by_group\": [\"IT Operations\"],\n&nbsp;&nbsp;&nbsp;&nbsp;\"managed_by_agent\": [\"agent@company.com\"],\n&nbsp;&nbsp;&nbsp;&nbsp;\"company\": [\"Contoso Ltd\"],\n&nbsp;&nbsp;&nbsp;&nbsp;\"department\": [\"Engineering\"],\n&nbsp;&nbsp;&nbsp;&nbsp;\"used_by\": [\"user@company.com\"],\n&nbsp;&nbsp;&nbsp;&nbsp;\"assigned_on\": { \"date\": \"2025-01-01\", \"operator\": 0 },\n&nbsp;&nbsp;&nbsp;&nbsp;\"product\": [\"ThinkPad X1\"],\n&nbsp;&nbsp;&nbsp;&nbsp;\"vendor\": [\"Dell\", \"HP\"],\n&nbsp;&nbsp;&nbsp;&nbsp;\"asset_state\": [\"In Use\"],\n&nbsp;&nbsp;&nbsp;&nbsp;\"purchase_date\": { \"date\": \"2024-06-15\", \"operator\": 1 },\n&nbsp;&nbsp;&nbsp;&nbsp;\"warranty_expiry_date\": { \"date\": \"2027-06-15\", \"operator\": 2 },\n&nbsp;&nbsp;&nbsp;&nbsp;\"depreciation\": [\"5-Year Straight Line\"],\n&nbsp;&nbsp;&nbsp;&nbsp;\"last_audit_date\": { \"date\": \"2026-01-01\", \"operator\": 0 },\n&nbsp;&nbsp;&nbsp;&nbsp;\"search_term\": \"Laptop\"\n}</pre>","operationId":"GetAllAssets","parameters":[{"name":"offset","in":"query","description":"offset (query parameter, optional): Pagination offset. Returns next 30 assets starting from this value. Defaults to 0.","required":false,"schema":{"type":"string","default":"0"}},{"name":"filterJson","in":"query","description":"filterJson (query parameter, optional): JSON string to filter results. Supported keys documented in the description above.","required":false,"schema":{"type":"string","default":"{}"}},{"name":"sort_by","in":"query","description":"sort_by (query parameter, optional): Sort column. Allowed values: created_time, updated_time. Defaults to created_time.","required":false,"schema":{"type":"string","enum":["created_time","updated_time"],"default":"created_time"}},{"name":"sort_order","in":"query","description":"sort_order (query parameter, optional): Sort direction. Allowed values: asc, desc. Defaults to desc.","required":false,"schema":{"type":"string","enum":["asc","desc"],"default":"desc"}}],"responses":{"404":{"description":"The resource you were trying to reach is not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseResourceNotFound"}}}},"500":{"description":"Application failed to process the request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseProcessFailed"}}}},"401":{"description":"You are not authorized to access the resource","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseUnauthorizedAccess"}}}},"403":{"description":"Accessing the resource you were trying to reach is forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseForbiddenAccess"}}}},"400":{"description":"Validation failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseModel"}}}},"200":{"description":"All assets retrieved successfully","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssetListModel"}}}}}}},"/v3/asset_mgmt/assets/details":{"get":{"tags":["10. Assets"],"summary":"Get asset details","description":"Returns all details for the asset identified by asset_num, asset_name, or asset_tag.<br/><br/><p><b>Query Parameters:</b></p><ul><li><b>asset_num</b> (query parameter, optional): The unique asset number. Takes highest precedence. At least one identifier must be provided.</li><li><b>asset_name</b> (query parameter, optional): The asset name. Used if asset_num is not provided.</li><li><b>asset_tag</b> (query parameter, optional): The unique asset tag. Used if neither asset_num nor asset_name is provided.</li></ul><p>Precedence: asset_num &gt; asset_name &gt; asset_tag. At least one must be provided.</p><p><b>book_value</b> is the current value after depreciation, rounded to 2 decimals and never below salvage_value. It is <b>null</b> unless the asset has a depreciation method with useful life above zero and valid purchase_cost, salvage_value and purchase_date, with salvage_value not exceeding purchase_cost.</p>","operationId":"GetAssetDetails","parameters":[{"name":"asset_num","in":"query","description":"asset_num (query parameter, optional): The unique asset number. Takes highest precedence. At least one identifier must be provided.","required":false,"schema":{"type":"string"}},{"name":"asset_name","in":"query","description":"asset_name (query parameter, optional): The asset name. Used if asset_num is not provided.","required":false,"schema":{"type":"string"}},{"name":"asset_tag","in":"query","description":"asset_tag (query parameter, optional): The unique asset tag. Used if neither asset_num nor asset_name is provided.","required":false,"schema":{"type":"string"}}],"responses":{"404":{"description":"The resource you were trying to reach is not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseResourceNotFound"}}}},"500":{"description":"Application failed to process the request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseProcessFailed"}}}},"401":{"description":"You are not authorized to access the resource","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseUnauthorizedAccess"}}}},"403":{"description":"Accessing the resource you were trying to reach is forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseForbiddenAccess"}}}},"200":{"description":"Asset details retrieved successfully","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssetResponseModel"}}}}}}},"/v3/asset_mgmt/asset_types_fields":{"get":{"tags":["11. Asset Types & Fields"],"summary":"List all asset types","description":"<p>Returns a flat list of all asset types for the account.</p><p>Each entry in the response contains the following fields:</p><ul><li>'asset_type_name': Name of the asset type.</li><li>'asset_parent_type_name': Name of the parent asset type, or an empty string if this is a top-level type.</li><li>'root_asset_type_name': Name of the root asset type in the hierarchy.</li><li>'is_default': true if this is a system-default asset type that cannot be deleted.</li><li>'is_disabled': true if this asset type is currently disabled (only present for default asset types).</li></ul>","operationId":"GetAllAssetTypes","responses":{"200":{"description":"All asset types retrieved successfully","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssetTypeListModel"}}}},"500":{"description":"Application failed to process the request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseProcessFailed"}}}},"401":{"description":"You are not authorized to access the resource","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseUnauthorizedAccess"}}}},"403":{"description":"Accessing the resource you were trying to reach is forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseForbiddenAccess"}}}}}}},"/v3/asset_mgmt/asset_types_fields/asset_type_details":{"get":{"tags":["11. Asset Types & Fields"],"summary":"Get asset type details","description":"<p>Returns full details for the asset type identified by the given name, including its list of custom fields.</p><p><b>Query Parameters:</b></p><ul><li><b>name</b> (query parameter, required): The name of the asset type.</li></ul><p>Request and Response objects contain fixed numerical values to indicate Field Type.</p><ul><li>For \"type\": Text Input=1, Paragraph=2, Checkbox=3, Dropdown=4, Date=5, Number=6, Decimal=7.</li></ul><p>Response fields:</p><ul><li>'asset_type_name': Name of the asset type.</li><li>'asset_parent_type_name': Name of the parent asset type, or an empty string if top-level.</li><li>'root_asset_type_name': Name of the root asset type in the hierarchy.</li><li>'is_default': true if this is a system-default asset type.</li><li>'is_disabled': true if this asset type is currently disabled (only present for default asset types).</li><li>'fields': List of custom fields. Each field contains 'field_name' and 'field_type'.</li></ul>","operationId":"GetAssetTypeDetails","parameters":[{"name":"name","in":"query","description":"name (query parameter, required): The name of the asset type.","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Asset type details retrieved successfully","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssetTypeResponseModel"}}}},"404":{"description":"The resource you were trying to reach is not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseResourceNotFound"}}}},"500":{"description":"Application failed to process the request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseProcessFailed"}}}},"401":{"description":"You are not authorized to access the resource","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseUnauthorizedAccess"}}}},"403":{"description":"Accessing the resource you were trying to reach is forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseForbiddenAccess"}}}}}}},"/v3/time_entries/delete":{"delete":{"tags":["05. Time entries"],"summary":"Delete a time entry","description":"<p>Deletes a specific time entry using its ID.</p>","operationId":"DeleteTimeEntryFromApi","parameters":[{"name":"time_entry_id","in":"query","description":"Unique ID of the time entry","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successfully deleted time entry","content":{"application/json":{"schema":{"type":"string","example":{"message":"Time Entry successfully deleted."}}}}},"404":{"description":"The resource you were trying to reach is not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseResourceNotFound"}}}},"500":{"description":"Application failed to process the request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseProcessFailed"}}}},"401":{"description":"You are not authorized to access the resource","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseUnauthorizedAccess"}}}},"403":{"description":"Accessing the resource you were trying to reach is forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseForbiddenAccess"}}}}}}},"/v3/tickets/disassociate_asset":{"delete":{"tags":["02. Tickets"],"summary":"Disassociate an asset from a ticket","description":"<p>Removes the association between a single asset and a ticket. Only one asset can be disassociated per request.</p>","operationId":"DisassociateAssetFromTicket","parameters":[{"name":"ticket_number","in":"query","description":"Ticket number to disassociate the asset from.","required":true,"schema":{"type":"string"}},{"name":"asset_number","in":"query","description":"Asset number to disassociate from the ticket.","required":true,"schema":{"type":"integer"}}],"responses":{"404":{"description":"The resource you were trying to reach is not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseResourceNotFound"}}}},"500":{"description":"Application failed to process the request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseProcessFailed"}}}},"401":{"description":"You are not authorized to access the resource","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseUnauthorizedAccess"}}}},"403":{"description":"Accessing the resource you were trying to reach is forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseForbiddenAccess"}}}},"200":{"description":"Asset disassociated successfully","content":{"application/json":{}}},"400":{"description":"Validation failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseModel"}}}}}}},"/v3/kb/folder/delete":{"delete":{"tags":["08. KB Folders"],"summary":"Delete KB Folder","description":"<p>Delete KB Folder with the given category and folder name.</p>","operationId":"DeleteKBFolder","parameters":[{"name":"category_name","in":"query","description":"Category name","required":true,"schema":{"type":"string"}},{"name":"folder_name","in":"query","description":"Folder name","required":true,"schema":{"type":"string"}}],"responses":{"404":{"description":"The resource you were trying to reach is not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseResourceNotFound"}}}},"500":{"description":"Application failed to process the request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseProcessFailed"}}}},"401":{"description":"You are not authorized to access the resource","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseUnauthorizedAccess"}}}},"403":{"description":"Accessing the resource you were trying to reach is forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseForbiddenAccess"}}}},"200":{"description":"Successfully deleted folder","content":{"application/json":{"schema":{"type":"string","example":{"message":"KB Folder successfully deleted."}}}}}}}},"/v3/kb/category/delete":{"delete":{"tags":["07. KB Categories"],"summary":"Delete KB Category","description":"Delete KB Category with the given category name.","operationId":"DeleteKBCategory","parameters":[{"name":"category_name","in":"query","description":"The name of the category.","required":true,"schema":{"type":"string"}}],"responses":{"404":{"description":"The resource you were trying to reach is not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseResourceNotFound"}}}},"500":{"description":"Application failed to process the request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseProcessFailed"}}}},"200":{"description":"Successfully deleted KB category","content":{"application/json":{"schema":{"type":"string","example":{"message":"KB Category successfully deleted."}}}}},"401":{"description":"You are not authorized to access the resource","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseUnauthorizedAccess"}}}},"403":{"description":"Accessing the resource you were trying to reach is forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseForbiddenAccess"}}}}}}},"/v3/kb/article/delete":{"delete":{"tags":["09. KB Articles"],"summary":"Delete KB Article","description":"Delete KB Article with the given article name.","operationId":"DeleteKBArticle","parameters":[{"name":"article_name","in":"query","description":"The name of the article.","required":true,"schema":{"type":"string"}}],"responses":{"404":{"description":"The resource you were trying to reach is not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseResourceNotFound"}}}},"500":{"description":"Application failed to process the request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseProcessFailed"}}}},"401":{"description":"You are not authorized to access the resource","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseUnauthorizedAccess"}}}},"403":{"description":"Accessing the resource you were trying to reach is forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseForbiddenAccess"}}}},"200":{"description":"Successfully deleted KB article","content":{"application/json":{"schema":{"type":"string","example":{"message":"KB Article successfully deleted."}}}}}}}},"/v3/asset_mgmt/vendors/disassociate_product":{"delete":{"tags":["13. Vendors"],"summary":"Disassociate a product from a vendor","description":"Removes the association between the specified product and the vendor identified by the given vendor name. The association must exist and must not have any assets linked to it.<br/><br/><p><b>Query Parameters:</b></p><ul><li><b>vendor_name</b> (query parameter, required): The name of the vendor to disassociate the product from.</li><li><b>product_name</b> (query parameter, required): The name of the product to disassociate.</li></ul>","operationId":"DisassociateProductFromVendor","parameters":[{"name":"vendor_name","in":"query","description":"vendor_name (query parameter, required): The name of the vendor to disassociate the product from.","required":true,"schema":{"type":"string"}},{"name":"product_name","in":"query","description":"product_name (query parameter, required): The name of the product to disassociate.","required":true,"schema":{"type":"string"}}],"responses":{"500":{"description":"Application failed to process the request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseProcessFailed"}}}},"401":{"description":"You are not authorized to access the resource","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseUnauthorizedAccess"}}}},"403":{"description":"Accessing the resource you were trying to reach is forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseForbiddenAccess"}}}},"409":{"description":"Assets are linked to this vendor-product association","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseModel"}}}},"200":{"description":"Product disassociated from vendor successfully","content":{"application/json":{}}},"404":{"description":"Vendor, product, or association not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseResourceNotFound"}}}}}}},"/v3/asset_mgmt/vendors/delete":{"delete":{"tags":["13. Vendors"],"summary":"Delete a vendor","description":"Deletes the vendor identified by the given vendor name.<br/><br/><p>Deletion is blocked with a 409 Conflict if the vendor has associated assets, products, or software. All associations must be removed before deleting.</p><p>The 409 response body includes a 'description' field and an 'errors' array listing each blocking association type (assets, products, software) with its count.</p><p><b>Query Parameters:</b></p><ul><li><b>vendor_name</b> (query parameter, required): The name of the vendor to delete.</li></ul>","operationId":"DeleteVendor","parameters":[{"name":"vendor_name","in":"query","description":"vendor_name (query parameter, required): The name of the vendor to delete.","required":true,"schema":{"type":"string"}}],"responses":{"404":{"description":"The resource you were trying to reach is not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseResourceNotFound"}}}},"409":{"description":"Vendor has active associations and cannot be deleted","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseModel"}}}},"200":{"description":"Vendor deleted successfully","content":{"application/json":{}}},"500":{"description":"Application failed to process the request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseProcessFailed"}}}},"401":{"description":"You are not authorized to access the resource","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseUnauthorizedAccess"}}}},"403":{"description":"Accessing the resource you were trying to reach is forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseForbiddenAccess"}}}}}}},"/v3/asset_mgmt/softwares/remove_users":{"delete":{"tags":["16. Softwares"],"summary":"Remove a user from a software","description":"Remove a single user (by email) from the specified software. Precedence: software_num > software_name. At least one must be provided.<br/><br/><p><b>Query Parameters:</b></p><ul><li><b>software_num</b> (query parameter, optional): The unique software number. Takes highest precedence. At least one identifier must be provided.</li><li><b>software_name</b> (query parameter, optional): The software name. Used if software_num is not provided.</li><li><b>user_email</b> (query parameter, required): The email address of the user to remove.</li></ul>","operationId":"RemoveSoftwareUser","parameters":[{"name":"software_num","in":"query","description":"software_num (query parameter, optional): The unique software number. Takes highest precedence. At least one identifier must be provided.","required":false,"schema":{"type":"string"}},{"name":"software_name","in":"query","description":"software_name (query parameter, optional): The software name. Used if software_num is not provided.","required":false,"schema":{"type":"string"}},{"name":"user_email","in":"query","description":"user_email (query parameter, required): The email address of the user to remove.","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"User removed from software successfully","content":{"application/json":{}}},"500":{"description":"Application failed to process the request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseProcessFailed"}}}},"401":{"description":"You are not authorized to access the resource","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseUnauthorizedAccess"}}}},"400":{"description":"Validation failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseModel"}}}},"404":{"description":"Software or contact not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseResourceNotFound"}}}}}}},"/v3/asset_mgmt/softwares/delete":{"delete":{"tags":["16. Softwares"],"summary":"Delete a software","description":"Deletes the software identified by software_num or software_name. Precedence: software_num > software_name. At least one must be provided.<br/><br/><p><b>Query Parameters:</b></p><ul><li><b>software_num</b> (query parameter, optional): The unique software number. Takes highest precedence. At least one identifier must be provided.</li><li><b>software_name</b> (query parameter, optional): The software name. Used if software_num is not provided.</li></ul>","operationId":"DeleteSoftware","parameters":[{"name":"software_num","in":"query","description":"software_num (query parameter, optional): The unique software number. Takes highest precedence. At least one identifier must be provided.","required":false,"schema":{"type":"string"}},{"name":"software_name","in":"query","description":"software_name (query parameter, optional): The software name. Used if software_num is not provided.","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"Software deleted successfully","content":{"application/json":{}}},"404":{"description":"The resource you were trying to reach is not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseResourceNotFound"}}}},"400":{"description":"Missing or invalid parameters","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseModel"}}}},"500":{"description":"Application failed to process the request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseProcessFailed"}}}},"401":{"description":"You are not authorized to access the resource","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseUnauthorizedAccess"}}}},"403":{"description":"Accessing the resource you were trying to reach is forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseForbiddenAccess"}}}}}}},"/v3/asset_mgmt/software_fields/delete_field":{"delete":{"tags":["17. Software Fields"],"summary":"Delete a software field","description":"<p>Deletes a custom software field identified by name. System-default fields cannot be deleted.</p><p><b>Query Parameters:</b></p><ul><li><b>field_name</b> (query parameter, required): The name of the software field to delete.</li></ul>","operationId":"DeleteSoftwareField","parameters":[{"name":"field_name","in":"query","description":"field_name (query parameter, required): The name of the software field to delete.","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Software field deleted successfully","content":{"application/json":{}}},"500":{"description":"Application failed to process the request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseProcessFailed"}}}},"409":{"description":"Default system fields cannot be deleted","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseModel"}}}},"401":{"description":"You are not authorized to access the resource","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseUnauthorizedAccess"}}}},"404":{"description":"Software field not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseResourceNotFound"}}}},"403":{"description":"Accessing the resource you were trying to reach is forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseForbiddenAccess"}}}}}}},"/v3/asset_mgmt/products/delete":{"delete":{"tags":["12. Products"],"summary":"Delete a product","description":"Deletes the product identified by the given name.<br/><br/><p><b>Query Parameters:</b></p><ul><li><b>product_name</b> (query parameter, required): The name of the product to delete.</li></ul><p>Deletion is blocked if the product has associated assets or vendor associations.</p>","operationId":"DeleteProduct","parameters":[{"name":"product_name","in":"query","description":"product_name (query parameter, required): The name of the product to delete.","required":true,"schema":{"type":"string"}}],"responses":{"404":{"description":"The resource you were trying to reach is not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseResourceNotFound"}}}},"200":{"description":"Product deleted successfully","content":{"application/json":{}}},"500":{"description":"Application failed to process the request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseProcessFailed"}}}},"401":{"description":"You are not authorized to access the resource","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseUnauthorizedAccess"}}}},"403":{"description":"Accessing the resource you were trying to reach is forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseForbiddenAccess"}}}},"409":{"description":"Product cannot be deleted due to active associations","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseModel"}}}}}}},"/v3/asset_mgmt/locations/delete":{"delete":{"tags":["15. Locations"],"summary":"Delete a location","description":"Deletes the location identified by the given 'location_name'. Deletion is blocked if the location has associated assets or child locations.<br/><br/><p><b>Query Parameters:</b></p><ul><li><b>location_name</b> (query parameter, required): The name of the location to delete.</li></ul>","operationId":"DeleteLocation","parameters":[{"name":"location_name","in":"query","description":"location_name (query parameter, required): The name of the location to delete.","required":true,"schema":{"type":"string"}}],"responses":{"404":{"description":"The resource you were trying to reach is not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseResourceNotFound"}}}},"409":{"description":"Location cannot be deleted due to active associations","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseModel"}}}},"500":{"description":"Application failed to process the request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseProcessFailed"}}}},"401":{"description":"You are not authorized to access the resource","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseUnauthorizedAccess"}}}},"403":{"description":"Accessing the resource you were trying to reach is forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseForbiddenAccess"}}}},"200":{"description":"Location deleted successfully","content":{"application/json":{}}}}}},"/v3/asset_mgmt/depreciations/delete":{"delete":{"tags":["14. Depreciations"],"summary":"Delete a depreciation method","description":"Deletes the depreciation method identified by the given name. Deletion is blocked if the method is associated with any assets or products.<br/><br/><p><b>Query Parameters:</b></p><ul><li><b>depreciation_name</b> (query parameter, required): The name of the depreciation method to delete.</li></ul>","operationId":"DeleteDepreciation","parameters":[{"name":"depreciation_name","in":"query","description":"depreciation_name (query parameter, required): The name of the depreciation method to delete.","required":true,"schema":{"type":"string"}}],"responses":{"409":{"description":"Depreciation cannot be deleted due to active associations","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseModel"}}}},"404":{"description":"The resource you were trying to reach is not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseResourceNotFound"}}}},"500":{"description":"Application failed to process the request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseProcessFailed"}}}},"401":{"description":"You are not authorized to access the resource","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseUnauthorizedAccess"}}}},"403":{"description":"Accessing the resource you were trying to reach is forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseForbiddenAccess"}}}},"200":{"description":"Depreciation method deleted successfully","content":{"application/json":{}}}}}},"/v3/asset_mgmt/assets/disassociate-ticket":{"delete":{"tags":["10. Assets"],"summary":"Disassociate a ticket from an asset","description":"Removes the association between a ticket and the asset identified by asset_num, asset_name, or asset_tag.<br/><br/><p><b>Query Parameters:</b></p><ul><li><b>asset_num</b> (query parameter, optional): The unique asset number. Takes highest precedence. At least one identifier must be provided.</li><li><b>asset_name</b> (query parameter, optional): The asset name. Used if asset_num is not provided.</li><li><b>asset_tag</b> (query parameter, optional): The unique asset tag. Used if neither asset_num nor asset_name is provided.</li><li><b>ticket_num</b> (query parameter, required): The ticket number to disassociate. Must be a valid positive integer corresponding to an existing ticket.</li></ul><p>If the ticket exists but is not currently associated with the asset, the request still returns 200 with no error.</p><p>On success, returns a JSON object with a 'message' field.</p>","operationId":"DisassociateTicketFromAsset","parameters":[{"name":"asset_num","in":"query","description":"asset_num (query parameter, optional): The unique asset number. Takes highest precedence. At least one identifier must be provided.","required":false,"schema":{"type":"string"}},{"name":"asset_name","in":"query","description":"asset_name (query parameter, optional): The asset name. Used if asset_num is not provided.","required":false,"schema":{"type":"string"}},{"name":"asset_tag","in":"query","description":"asset_tag (query parameter, optional): The unique asset tag. Used if neither asset_num nor asset_name is provided.","required":false,"schema":{"type":"string"}},{"name":"ticket_num","in":"query","description":"ticket_num (query parameter, required): The ticket number to disassociate from the asset.","required":true,"schema":{"type":"integer"}}],"responses":{"200":{"description":"Ticket disassociated successfully","content":{"application/json":{}}},"404":{"description":"The resource you were trying to reach is not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseResourceNotFound"}}}},"500":{"description":"Application failed to process the request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseProcessFailed"}}}},"400":{"description":"Validation failed — ticket_num is not a valid number, or no asset identifier provided","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseModel"}}}},"401":{"description":"You are not authorized to access the resource","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseUnauthorizedAccess"}}}},"403":{"description":"Accessing the resource you were trying to reach is forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseForbiddenAccess"}}}}}}},"/v3/asset_mgmt/assets/delete":{"delete":{"tags":["10. Assets"],"summary":"Delete an asset","description":"Deletes the asset identified by the given asset number.<br/><br/><p><b>Query Parameters:</b></p><ul><li><b>asset_num</b> (query parameter, optional): The unique asset number. Takes highest precedence. At least one identifier must be provided.</li><li><b>asset_name</b> (query parameter, optional): The asset name. Used if asset_num is not provided.</li><li><b>asset_tag</b> (query parameter, optional): The unique asset tag. Used if neither asset_num nor asset_name is provided.</li></ul>","operationId":"DeleteAsset","parameters":[{"name":"asset_num","in":"query","description":"asset_num (query parameter, optional): The unique asset number. Takes highest precedence. At least one identifier must be provided.","required":false,"schema":{"type":"string"}},{"name":"asset_name","in":"query","description":"asset_name (query parameter, optional): The asset name. Used if asset_num is not provided.","required":false,"schema":{"type":"string"}},{"name":"asset_tag","in":"query","description":"asset_tag (query parameter, optional): The unique asset tag. Used if neither asset_num nor asset_name is provided.","required":false,"schema":{"type":"string"}}],"responses":{"404":{"description":"The resource you were trying to reach is not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseResourceNotFound"}}}},"200":{"description":"Asset deleted successfully","content":{"application/json":{}}},"500":{"description":"Application failed to process the request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseProcessFailed"}}}},"401":{"description":"You are not authorized to access the resource","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseUnauthorizedAccess"}}}},"403":{"description":"Accessing the resource you were trying to reach is forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseForbiddenAccess"}}}}}}},"/v3/asset_mgmt/asset_types_fields/asset_type_delete":{"delete":{"tags":["11. Asset Types & Fields"],"summary":"Delete an asset type","description":"<p>Deletes the asset type identified by 'name'.</p><p><b>Query Parameters:</b></p><ul><li><b>name</b> (query parameter, required): The name of the asset type to delete.</li></ul><p><b>Deletion restrictions:</b></p><ul><li>Deletion is blocked with a 409 Conflict if the asset type has associated assets, products, or child asset types. All associations must be removed before deleting.</li><li>Default (system-defined) asset types cannot be deleted.</li></ul><p><b>409 response body:</b></p><ul><li>'description' — summary message.</li><li>'errors' — array of blocking associations, each with 'code' ('association_exists'), 'field' ('assets', 'products', or 'child_asset_types'), and 'message' with the exact count of linked items.</li><li>Multiple blocking conditions can appear simultaneously in the same response.</li></ul>","operationId":"DeleteAssetType","parameters":[{"name":"name","in":"query","description":"name (query parameter, required): The name of the asset type to delete.","required":true,"schema":{"type":"string"}}],"responses":{"404":{"description":"The resource you were trying to reach is not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseResourceNotFound"}}}},"500":{"description":"Application failed to process the request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseProcessFailed"}}}},"401":{"description":"You are not authorized to access the resource","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseUnauthorizedAccess"}}}},"403":{"description":"Accessing the resource you were trying to reach is forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseForbiddenAccess"}}}},"409":{"description":"Asset type cannot be deleted due to active associations","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseModel"}}}},"200":{"description":"Asset type deleted successfully","content":{"application/json":{}}}}}},"/v3/asset_mgmt/asset_types_fields/asset_field_delete":{"delete":{"tags":["11. Asset Types & Fields"],"summary":"Delete an asset type field","description":"<p>Deletes a custom field from the specified asset type.</p><p><b>Query Parameters:</b></p><ul><li><b>type_name</b> (query parameter, required): The name of the asset type containing the field.</li><li><b>field_name</b> (query parameter, required): The name of the field to delete.</li></ul><p>Only custom fields (created via API or UI) can be deleted. System default fields are protected and will return a 400 error if targeted.</p>","operationId":"DeleteAssetTypeField","parameters":[{"name":"type_name","in":"query","description":"type_name (query parameter, required): The name of the asset type containing the field.","required":true,"schema":{"type":"string"}},{"name":"field_name","in":"query","description":"field_name (query parameter, required): The name of the field to delete.","required":true,"schema":{"type":"string"}}],"responses":{"500":{"description":"Application failed to process the request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseProcessFailed"}}}},"400":{"description":"Field cannot be deleted (e.g. default field)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseModel"}}}},"401":{"description":"You are not authorized to access the resource","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseUnauthorizedAccess"}}}},"404":{"description":"Asset type or field not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseResourceNotFound"}}}},"200":{"description":"Asset field deleted successfully","content":{"application/json":{}}},"403":{"description":"Accessing the resource you were trying to reach is forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseForbiddenAccess"}}}}}}}},"components":{"schemas":{"UpdateTimeEntryModel":{"type":"object","properties":{"agent_email":{"type":"string","description":"Email of the agent for whom the time entry is updated","example":"agent@gmail.com"},"time_spent_in_mins":{"type":"integer","description":"Time spent in minutes for manual time entry","format":"int32","example":120},"start_time":{"type":"string","description":"Start time of the time entry in 'yyyy-MM-dd HH:mm' format","example":"2026-03-20 14:30"},"note":{"type":"string","description":"Note added along with the time entry","example":"Updated note"},"additional_info":{"type":"string","description":"Additional information for the time entry","example":"Updated additional info"},"billable":{"type":"integer","description":"Indicates whether the time entry is billable (1 = billable, 0 = non-billable)","format":"int32","example":1},"run_timer":{"type":"integer","description":"Run timer action (0 = stop timer, 1 = start timer)","format":"int32","example":1},"category_name":{"type":"string","description":"Optional name of a configured Time Entry Category to associate with this time entry. Must match an existing category name for the helpdesk (case-insensitive); use an empty string to clear the category. Omit this field to leave the category unchanged.","example":"Development"}}},"ErrorResponseResourceNotFound":{"type":"object","properties":{"status":{"type":"integer","description":"Status code","format":"int32","example":404},"error":{"type":"string","description":"Error","example":"Not Found"},"message":{"type":"string","description":"Error Message","example":"The resource you were trying to reach is not found"}}},"ErrorResponseProcessFailed":{"type":"object","properties":{"status":{"type":"integer","description":"Status code","format":"int32","example":500},"error":{"type":"string","description":"Error","example":"Internal Server Error"},"message":{"type":"string","description":"Error Message","example":"Application failed to process the request"}}},"ErrorResponseUnauthorizedAccess":{"type":"object","properties":{"status":{"type":"integer","description":"Status code","format":"int32","example":401},"error":{"type":"string","description":"Error","example":"Unauthorized"},"message":{"type":"string","description":"Error Message","example":"You are not authorized to access the resource"}}},"ErrorResponseForbiddenAccess":{"type":"object","properties":{"status":{"type":"integer","description":"Status code","format":"int32","example":403},"error":{"type":"string","description":"Error","example":"Forbidden"},"message":{"type":"string","description":"Error Message","example":"Accessing the resource you were trying to reach is forbidden"}}},"TimeEntryModel":{"type":"object","properties":{"id":{"type":"integer","description":"Unique ID of the time entry","format":"int64","example":423},"ticket_number":{"type":"integer","description":"The ticket number to which this time entry is associated","format":"int32","example":10},"agent_email":{"type":"string","description":"The email address of the agent to whom this time-entry is associated","example":"agent@gmail.com"},"note":{"type":"string","description":"Description of the time entry","example":"Sample note.."},"billable":{"type":"integer","description":"1 if the time entry is billable and 0 if the time entry is non billable","format":"int32","example":0},"created_time":{"type":"string","description":"Time at which the time-entry was created","example":"2022-12-12 02:40:51"},"start_time":{"type":"string","description":"Time at which the time-entry was started","example":"2022-12-12 00:00:00"},"time_spent_in_minutes":{"type":"integer","description":"The duration in minutes","format":"int32","example":120},"timer_running":{"type":"integer","description":"1 if the timer is currently running and 0 if the timer is not running","format":"int32","example":1},"additional_info":{"type":"string","description":"Additional information of the time entry","example":"Sample additional information"},"category_name":{"type":"string","description":"Name of the time entry category associated with this time entry, null if none","example":"Development"}}},"CustomFields":{"type":"object","properties":{"cf_employee_id":{"type":"integer","format":"int32","example":2022542},"cf_DOB":{"type":"string","example":"1991-06-22"}},"description":"You can have custom fields in this object"},"ShareTo":{"type":"object","properties":{"add":{"type":"array","example":["johndoe@contoso.com"],"items":{"type":"string","example":"[\"johndoe@contoso.com\"]"}},"remove":{"type":"array","example":["johndoe@contoso.com"],"items":{"type":"string","example":"[\"johndoe@contoso.com\"]"}}},"description":"Specifies lists of watchers to add to or remove from an entity like a ticket."},"UpdateTicketModel":{"type":"object","properties":{"contact_email":{"type":"string","description":"Contact of the ticket","example":"contact@gmail.com"},"subject":{"type":"string","description":"Subject of the ticket","example":"Printer not working"},"description":{"type":"string","description":"Description of the ticket","example":"Please fix it"},"sla":{"type":"string","description":"SLA Name","example":"No SLA Policy"},"status":{"type":"string","description":"Status of the ticket","example":"open"},"priority":{"type":"integer","description":"Priority of the ticket","format":"int32","example":1},"type":{"type":"string","description":"Type of the ticket","example":"Question"},"assign_to":{"type":"string","description":"Agent email","example":"agent@gmail.com"},"group":{"type":"string","description":"Group name","example":"Sales"},"category":{"type":"string","description":"Category name","example":"Billing"},"sub_category":{"type":"string","description":"Sub category name","example":"Disputed Charge"},"custom_fields":{"$ref":"#/components/schemas/CustomFields"},"watchers":{"$ref":"#/components/schemas/Watchers"},"share_to":{"$ref":"#/components/schemas/ShareTo"}}},"Watchers":{"type":"object","properties":{"add":{"type":"array","example":["johndoe@contoso.com"],"items":{"type":"string","example":"[\"johndoe@contoso.com\"]"}},"remove":{"type":"array","example":["johndoe@contoso.com"],"items":{"type":"string","example":"[\"johndoe@contoso.com\"]"}}},"description":"Specifies lists of watchers to add to or remove from an entity like a ticket."},"UpdateTicketResponseModel":{"type":"object","properties":{"ticket_number":{"type":"integer","description":"The unique ID of the ticket","format":"int32","example":10},"contact_email":{"type":"string","description":"Email of the contact","example":"test@gmail.com"},"contact_name":{"type":"string","description":"Name of the contact","example":"John Doe"},"subject":{"type":"string","description":"Subject of the ticket","example":"Printer not working"},"description":{"type":"string","description":"Description of the ticket in HTML","example":"<div>Please fix it</div>"},"description_text":{"type":"string","description":"Description of the ticket in plain text","example":"Please fix it"},"status":{"type":"string","description":"Status of the ticket","example":"open"},"priority":{"type":"integer","description":"Priority of the ticket","format":"int32","example":1},"type":{"type":"string","description":"Type of the ticket","example":"Question"},"source":{"type":"integer","description":"Channel through which the ticket was created.","format":"int32","example":1},"form_name":{"type":"string","description":"Form Name","example":"Create Ticket"},"form_is_deleted":{"type":"integer","description":"Indicates whether form name is deleted or not","format":"int32","example":0},"assigned_to":{"type":"string","description":"Agent email","example":"agent@gmail.com"},"updated_by":{"type":"string","description":"Email of the agent or contact who last updated the ticket, or \"System\" if updated automatically","example":"agent@example.com"},"updated_by_type":{"type":"integer","description":"Type of the user who last updated the ticket. System=1, Agent=2, Contact=3.","format":"int32","example":2},"closed_by":{"type":"string","description":"Email of the agent or contact who closed the ticket, or \"System\" if closed automatically","example":"agent@example.com"},"closed_by_type":{"type":"integer","description":"Type of the user who closed the ticket. System=1, Agent=2, Contact=3.","format":"int32","example":2},"company_name":{"type":"string","description":"Company Name","example":"Contoso Company"},"department_name":{"type":"string","description":"Department Name","example":"Developers"},"sla":{"type":"string","description":"Sla","example":"Standard sla"},"group":{"type":"string","description":"Group name","example":"Sales"},"category":{"type":"string","description":"Category name","example":"Billing"},"subcategory":{"type":"string","description":"Sub category name","example":"Disputed Charge"},"created_on":{"type":"string","description":"Ticket creation timestamp (in format yyyy-mm-dd hh:mm:ss).","example":"2023-01-01 00:00:00"},"updated_on":{"type":"string","description":"Ticket updated timestamp (in format yyyy-mm-dd hh:mm:ss).","example":"2023-01-02 00:00:00"},"resolved_on":{"type":"string","description":"Ticket resolved timestamp (in format yyyy-mm-dd hh:mm:ss).","example":"2023-01-03 00:00:00"},"closed_on":{"type":"string","description":"Ticket closed timestamp (in format yyyy-mm-dd hh:mm:ss).","example":"2032-01-04 00:00:00"},"due_date":{"type":"string","description":"Due date timestamp (in format yyyy-mm-dd hh:mm:ss).","example":"2023-01-03 00:00:00"},"completed_within_sla":{"type":"boolean","description":"Indicates whether the ticket was completed within the SLA timeframe","example":true},"status_open_duration":{"type":"integer","description":"Total calendar time spent in Open status across all visits, in minutes. Excludes the current status interval if the ticket is presently Open.","format":"int32","example":120},"status_pending_duration":{"type":"integer","description":"Total calendar time spent in Pending status across all visits, in minutes. Excludes the current status interval if the ticket is presently Pending.","format":"int32","example":60},"status_open_biz_hrs_duration":{"type":"integer","description":"Total business-hours time spent in Open status across all visits, in minutes. Only computed for tickets with an active SLA plan; null otherwise.","format":"int32","example":45},"status_pending_biz_hrs_duration":{"type":"integer","description":"Total business-hours time spent in Pending status across all visits, in minutes. Only computed for tickets with an active SLA plan; null otherwise.","format":"int32","example":30},"first_response_time":{"type":"string","description":"First response timestamp (in format yyyy-mm-dd hh:mm:ss).","example":"2023-01-02 00:00:00"},"first_assigned_time":{"type":"string","description":"First assigned timestamp (in format yyyy-mm-dd hh:mm:ss).","example":"2023-01-02 00:00:00"},"first_assigned_duration":{"type":"integer","description":"First assigned duration in minutes","format":"int32","example":1440},"resolved_duration":{"type":"integer","description":"Resolved duration in minutes","format":"int32","example":2880},"first_replied_duration":{"type":"integer","description":"First replied duration in minutes","format":"int32","example":1440},"closed_duration":{"type":"integer","description":"Closed duration in minutes","format":"int32","example":4320},"custom_fields":{"$ref":"#/components/schemas/CustomFields"},"watchers":{"type":"array","properties":{"expandElements":{"type":"boolean"},"array":{"type":"boolean"},"empty":{"type":"boolean"}},"description":"List of agents added as Watchers","example":["johndoe@contoso.com"],"items":{"type":"object","description":"List of agents added as Watchers","example":["johndoe@contoso.com"]}},"share_to":{"type":"array","properties":{"expandElements":{"type":"boolean"},"array":{"type":"boolean"},"empty":{"type":"boolean"}},"description":"List of contacts added as Share To","example":["johndoe@contoso.com"],"items":{"type":"object","description":"List of contacts added as Share To","example":["johndoe@contoso.com"]}},"conversation_count":{"type":"integer","description":"Total number of conversations in the ticket","format":"int32","example":5},"associated_assets":{"type":"array","description":"Array of asset numbers associated with the ticket. Only present when Asset Management feature is enabled.","example":[1,2,3],"items":{"type":"integer","description":"Array of asset numbers associated with the ticket. Only present when Asset Management feature is enabled.","format":"int64"}}}},"UpdateKBFolderRequestModel":{"type":"object","properties":{"category_name":{"type":"string","description":"Name of the category.","example":"Help Center"},"folder_name":{"type":"string","description":"Name of the folder.","example":"Teams Bot"}}},"KBFolderDetailsModel":{"type":"object","properties":{"folder_name":{"type":"string","description":"Name of the folder.","example":"Teams Bot"},"parent_category_name":{"type":"string","description":"Name of the parent category.","example":"Help Center"},"created_by_email":{"type":"string","description":"Email of the agent who creates the folder.","example":"agent@example.com"},"created_by_type":{"type":"integer","description":"Type of the creator. Agent=2, API=4 (created_by_email is then null).","format":"int32","example":2},"created_on":{"type":"string","description":"Folder creation timestamp (in format yyyy-mm-dd hh:mm:ss).","example":"2023-01-01 00:00:00"}}},"UpdateKBCategoryRequestModel":{"type":"object","properties":{"category_name":{"type":"string","description":"Name of the category.","example":"Help Center"},"category_description":{"type":"string","description":"Description of the category.","example":"This category contains help articles."},"support_portal_visibility":{"type":"integer","description":"Visibility of the category in the support portal.","format":"int32","example":4},"company_list":{"type":"array","properties":{"expandElements":{"type":"boolean"},"array":{"type":"boolean"},"empty":{"type":"boolean"}},"description":"List of companies associated with the category.","example":["Company1","Company2"],"items":{"type":"object","description":"List of companies associated with the category.","example":["Company1","Company2"]}},"agent_portal_visibility":{"type":"integer","description":"Visibility of the category in the agent portal.","format":"int32","example":2},"agent_group_list":{"type":"array","properties":{"expandElements":{"type":"boolean"},"array":{"type":"boolean"},"empty":{"type":"boolean"}},"description":"List of agent groups associated with the category.","example":["Group1","Group2"],"items":{"type":"object","description":"List of agent groups associated with the category.","example":["Group1","Group2"]}}}},"KBCategoryDetailsModel":{"type":"object","properties":{"category_name":{"type":"string","description":"Name of the category.","example":"Help Center"},"category_description":{"type":"string","description":"Description of the category.","example":"This category contains help articles."},"created_by_email":{"type":"string","description":"Email of the agent who creates the category.","example":"agent@example.com"},"created_by_type":{"type":"integer","description":"Type of the creator. Agent=2, API=4 (created_by_email is then null).","format":"int32","example":2},"created_time":{"type":"string","description":"Category creation timestamp (in format yyyy-mm-dd hh:mm:ss).","example":"2023-01-01 00:00:00"},"support_portal_visibility":{"type":"integer","description":"Visibility of the category in the support portal.","format":"int32","example":4},"company_list":{"type":"array","properties":{"expandElements":{"type":"boolean"},"array":{"type":"boolean"},"empty":{"type":"boolean"}},"description":"List of companies associated with the category.","example":["Company1","Company2"],"items":{"type":"object","description":"List of companies associated with the category.","example":["Company1","Company2"]}},"agent_portal_visibility":{"type":"integer","description":"Visibility of the category in the agent portal.","format":"int32","example":2},"agent_group_list":{"type":"array","properties":{"expandElements":{"type":"boolean"},"array":{"type":"boolean"},"empty":{"type":"boolean"}},"description":"List of agent groups associated with the category.","example":["Group1","Group2"],"items":{"type":"object","description":"List of agent groups associated with the category.","example":["Group1","Group2"]}},"category_order":{"type":"integer","description":"Order in which category is displayed","format":"int32","example":2}}},"UpdateKBArticleRequestModel":{"type":"object","properties":{"article_title":{"type":"string","description":"Title of the article.","example":"How to use the Help Center"},"article_content":{"type":"string","description":"Content of the article.","example":"<p>This article explains how to use the Help Center.<p>"},"category_name":{"type":"string","description":"Name of the category.","example":"Help Center"},"folder_name":{"type":"string","description":"Name of the folder.","example":"User Guides"},"status":{"type":"integer","description":"Status of the article (0 for Unpublished, 1 for Published, 2 for Draft of Published).","format":"int32","example":1}}},"KBArticleDetailsModel":{"type":"object","properties":{"article_title":{"type":"string","description":"Title of the article.","example":"How to use the Help Center"},"article_content":{"type":"string","description":"Content of the article.","example":"<p>This article explains how to use the Help Center.<p>"},"article_content_text":{"type":"string","description":"Text content of the article.","example":"This article explains how to use the Help Center."},"article_category_name":{"type":"string","description":"Name of the category.","example":"Help Center"},"folder_name":{"type":"string","description":"Name of the folder.","example":"User Guides"},"has_attachment":{"type":"boolean","description":"Indicates if the article has attachments.","example":true},"attachments":{"type":"array","description":"Attachment details","example":"[{file_name: \"test.jpeg\",file_size: 7697,file_type: \"image/jpeg\",attachment_url: \"https://exampleurl.com/test.jpeg\"}]","items":{"type":"object","description":"Attachment details","example":"[{file_name: \"test.jpeg\",file_size: 7697,file_type: \"image/jpeg\",attachment_url: \"https://exampleurl.com/test.jpeg\"}]"}},"created_by_email":{"type":"string","description":"Email of user who created the article.","example":"agent@example.com"},"created_by_type":{"type":"integer","description":"Type of the creator. System=1, Agent=2, API=4 (created_by_email is then null).","format":"int32","example":2},"updated_by_email":{"type":"string","description":"Email of user who last updated the article.","example":"agent@example.com"},"updated_by_type":{"type":"integer","description":"Type of the last updater. System=1, Agent=2, API=4 (updated_by_email is then null).","format":"int32","example":2},"created_on":{"type":"string","description":"Article creation timestamp (in format yyyy-MM-dd HH:mm:ss).","example":"2023-01-01 00:00:00"},"updated_on":{"type":"string","description":"Article last updated timestamp (in format yyyy-MM-dd HH:mm:ss).","example":"2023-01-01 00:00:00"},"article_views":{"type":"integer","description":"Number of views the article has received.","format":"int32","example":150},"article_likes":{"type":"integer","description":"Number of likes the article has received.","format":"int32","example":45},"article_dislikes":{"type":"integer","description":"Number of dislikes the article has received.","format":"int32","example":3},"status":{"type":"integer","description":"Status of the article (0 for Unpublished, 1 for Published, 2 for Draft of Published).","format":"int32","example":1},"agent_url":{"type":"string","description":"Agent Portal Link of the article.","example":"https://exampleurl.desk365.io/app/kbase/kb-article?articleId=exAm1"},"support_url":{"type":"string","description":"Support Portal Link of the article.","example":"https://exampleurl.desk365.io/support/sp-article?articleId=exAm1"}}},"ContractUpdateRequestModel":{"type":"object","properties":{"name":{"type":"string","description":"Name of the contract","example":"Sample contract"},"description":{"type":"string","description":"Description for the contract.","example":"Quarterly support contract"},"reference_number":{"type":"string","description":"Reference number for the contract.","example":"#6532"},"setup_fees":{"type":"number","description":"Setup fees for the contract.","format":"double","example":500},"end_date":{"type":"string","description":"End date of the contract.","example":"2024-01-01"},"after_hours_included":{"type":"boolean","description":"After hours included or not","example":false},"contract_category":{"type":"string","description":"Name of the contract category","example":"Level 1"},"block_hours":{"$ref":"#/components/schemas/ContractsUpdateBlockHourModel"}}},"ContractsUpdateBlockHourModel":{"type":"object","properties":{"rollover_unused_hours":{"type":"boolean","description":"Rollover unused hours to next period or not","example":false},"rollover_type":{"type":"integer","description":"Rollover Type: Monthly=1","format":"int32","example":1},"rollover_value":{"type":"integer","description":"Rollover value","format":"int32","example":5}},"description":"Block hours object"},"UpdateContactRequestModel":{"type":"object","properties":{"name":{"type":"string","description":"Name of the contact.","example":"Joe"},"title":{"type":"string","description":"Title of the contact.","example":"Manager"},"mobile":{"type":"string","description":"Mobile number of the contact.","example":"123456789"},"phone":{"type":"string","description":"Telephone number of the contact.","example":"123456789"},"company_name":{"type":"string","description":"Company name to which the contact is associated.","example":"Contoso"},"secondary_emails":{"type":"object","properties":{"nullObject":{"type":"boolean"},"array":{"type":"boolean"},"empty":{"type":"boolean"}},"additionalProperties":{"type":"object","description":"Secondary Mails associated with the contact.","example":{"add":["johndoe@contoso.com"],"remove":["johndoe@contoso.com"]}},"description":"Secondary Mails associated with the contact.","example":{"add":["johndoe@contoso.com"],"remove":["johndoe@contoso.com"]}},"custom_fields":{"$ref":"#/components/schemas/CustomFields"}}},"ContactResponseModel":{"type":"object","properties":{"name":{"type":"string","description":"Name of the contact.","example":"Joe"},"primary_email":{"type":"string","description":"Primary email address of the contact.","example":"contact@contoso.com"},"is_deleted":{"type":"integer","description":"Indicates whether the contact is deleted or not","format":"int32","example":0},"secondary_emails":{"type":"string","description":"Additional emails associated with the contact.","example":"joe@contoso.com"},"title":{"type":"string","description":"Title of the contact.","example":"Manager"},"mobile":{"type":"string","description":"Mobile number of the contact.","example":"123456789"},"phone":{"type":"string","description":"Telephone number of the contact.","example":"123456789"},"company_name":{"type":"string","description":"Company name to which the contact is associated.","example":"Contoso"},"primary_department":{"type":"string","description":"Primary Department to which the contact is associated.","example":"Developers"},"secondary_departments":{"type":"string","description":"Secondary Departments to which the contact is associated.","example":"Sales, Marketing"},"created_on":{"type":"string","description":"Contact creation timestamp.","example":"2023-01-01 23:00:00"},"updated_on":{"type":"string","description":"Contact updated timestamp.","example":"2023-01-01 23:00:00"},"custom_fields":{"$ref":"#/components/schemas/CustomFields"}}},"CompanyRequestModel":{"type":"object","properties":{"name":{"type":"string","description":"Name of the company.","example":"Contoso"},"description":{"type":"string","description":"Description for the company."},"phone":{"type":"string","description":"Phone number of the contact.","example":"123456789"},"address":{"type":"string","description":"Address of the company."},"city":{"type":"string","description":"City of the company."},"state":{"type":"string","description":"State of the company."},"country":{"type":"string","description":"Country of the company."},"zipcode":{"type":"string","description":"Zipcode of the company."},"sla":{"type":"string","description":"Sla associated with the company.","example":"No Sla Policy"},"domains":{"type":"string","description":"Domains of the company. Email addresses of contacts that contain this domain will be associated with that company automatically.","example":"contoso.com, orcael.com"},"departments":{"type":"string","description":"Departments associated with the company.","example":"Developers, Sales, Marketing"},"custom_fields":{"$ref":"#/components/schemas/CustomFields"}}},"VendorUpdateRequestModel":{"type":"object","properties":{"vendor_name":{"type":"string","description":"vendor_name (optional): New name for the vendor. Max 128 characters. Must be unique.","example":"Acme Corp"},"vendor_description":{"type":"string","description":"vendor_description (optional): Description of the vendor. Max 250 characters."},"vendor_contact_name":{"type":"string","description":"vendor_contact_name (optional): Name of the vendor contact. Max 128 characters.","example":"John Doe"},"vendor_contact_phone":{"type":"string","description":"vendor_contact_phone (optional): Phone number of the vendor contact. Max 64 characters.","example":"123456789"},"vendor_contact_email":{"type":"string","description":"vendor_contact_email (optional): Email address of the vendor contact. Max 128 characters.","example":"john@acmecorp.com"},"vendor_address":{"type":"string","description":"vendor_address (optional): Address of the vendor. Max 250 characters."},"vendor_city":{"type":"string","description":"vendor_city (optional): City of the vendor. Max 100 characters."},"vendor_state":{"type":"string","description":"vendor_state (optional): State of the vendor. Max 100 characters."},"vendor_country":{"type":"string","description":"vendor_country (optional): Country of the vendor. Max 100 characters."},"vendor_zipcode":{"type":"string","description":"vendor_zipcode (optional): Zipcode of the vendor. Max 64 characters."}}},"VendorCreateOrUpdateResponseModel":{"type":"object","properties":{"vendor_name":{"type":"string","description":"Name of the vendor.","example":"Acme Corp"},"vendor_description":{"type":"string","description":"Description of the vendor."},"vendor_contact_name":{"type":"string","description":"Name of the vendor contact.","example":"John Doe"},"vendor_contact_email":{"type":"string","description":"Email address of the vendor contact.","example":"john@acmecorp.com"},"vendor_contact_phone":{"type":"string","description":"Phone number of the vendor contact.","example":"123456789"},"vendor_address":{"type":"string","description":"Address of the vendor."},"vendor_city":{"type":"string","description":"City of the vendor."},"vendor_state":{"type":"string","description":"State of the vendor."},"vendor_country":{"type":"string","description":"Country of the vendor."},"vendor_zipcode":{"type":"string","description":"Zipcode of the vendor."}}},"ErrorDetail":{"type":"object","properties":{"code":{"type":"string","description":"Error code identifying the type of error","example":"invalid_value"},"field":{"type":"string","description":"Field that caused the error","example":"filters"},"message":{"type":"string","description":"Human-readable error detail message","example":"Invalid priority values present."}},"description":"Individual error detail within an error response"},"ErrorResponseModel":{"type":"object","properties":{"code":{"type":"integer","description":"Business logic status code: 1 for success, 0 for error","format":"int32","example":0},"error":{"type":"string","description":"Short error type label","example":"Bad Request"},"message":{"type":"string","description":"Human-readable error message","example":"The request could not be processed"},"description":{"type":"string","description":"Brief description of the error category","example":"Validation failed"},"errors":{"type":"array","description":"List of individual error details","items":{"$ref":"#/components/schemas/ErrorDetail"}},"httpStatusCode":{"type":"integer","format":"int32"}},"description":"Standardized error response model for API errors"},"SoftwareUpdateRequestModel":{"type":"object","properties":{"status":{"type":"string","description":"status (optional): Status of the software. Must match a configured status option.","example":"Managed"},"type":{"type":"string","description":"type (optional): Type of the software. Must match a configured type option.","example":"SaaS"},"managed_by_group":{"type":"string","description":"managed_by_group (optional): Name of the group managing this software.","example":"IT Operations"},"managed_by_agent":{"type":"string","description":"managed_by_agent (optional): Email of the agent managing this software.","example":"john.doe@company.com"},"expiration":{"type":"string","description":"expiration (optional): Expiration date of the software license in yyyy-MM-dd format.","example":"2026-12-31"},"custom_fields":{"type":"object","additionalProperties":{"type":"object","description":"custom_fields (optional): Custom field values to set for this software. Keys are field names, values are field values. For dropdown fields, provide the option name. For number fields, provide an integer value. For decimal fields, provide a decimal number. For date fields, provide a date in yyyy-MM-dd format. For checkbox fields, provide true or false.","example":{"License Key":"XXXX-XXXX-XXXX","Seats":"50"}},"description":"custom_fields (optional): Custom field values to set for this software. Keys are field names, values are field values. For dropdown fields, provide the option name. For number fields, provide an integer value. For decimal fields, provide a decimal number. For date fields, provide a date in yyyy-MM-dd format. For checkbox fields, provide true or false.","example":{"License Key":"XXXX-XXXX-XXXX","Seats":"50"}}},"description":"Request model for updating an existing software record. Only the fields present in the request body are updated."},"SoftwareResponseModel":{"type":"object","properties":{"software_num":{"type":"integer","description":"Unique numeric identifier of the software.","format":"int64","example":36},"software_name":{"type":"string","description":"Name of the software.","example":"Microsoft Office"},"description":{"type":"string","description":"Description of the software.","example":"Office productivity suite"},"status":{"type":"string","description":"Status of the software.","example":"Managed"},"type":{"type":"string","description":"Type of the software.","example":"SaaS"},"managed_by_group":{"type":"string","description":"Name of the group managing this software.","example":"IT Operations"},"managed_by_agent":{"type":"string","description":"Name of the agent managing this software.","example":"John Doe"},"expiration":{"type":"string","description":"Expiration date of the software license.","example":"2026-12-31"},"vendor":{"type":"string","description":"Name of the vendor associated with this software.","example":"Microsoft"},"custom_fields":{"type":"object","additionalProperties":{"type":"object","description":"Custom fields for this software as a flat key-value map. Keys are field names, values are the typed field values (string, number, boolean, etc.).","example":{"License Key":"XXXX-XXXX","Seats":50}},"description":"Custom fields for this software as a flat key-value map. Keys are field names, values are the typed field values (string, number, boolean, etc.).","example":{"License Key":"XXXX-XXXX","Seats":50}},"users":{"type":"array","description":"Email addresses of users associated with this software.","example":["user1@example.com","user2@example.com"],"items":{"type":"string","description":"Email addresses of users associated with this software.","example":"[\"user1@example.com\",\"user2@example.com\"]"}},"created_by":{"type":"string","description":"Name of the agent who created this software.","example":"John Doe"},"created_by_type":{"type":"string","description":"Type of the creator: Agent, Intune or API.","example":"Agent"},"created_on":{"type":"string","description":"Timestamp when this software was created.","example":"2024-01-01 10:00:00"},"updated_by":{"type":"string","description":"Name of the agent who last updated this software.","example":"Jane Doe"},"updated_by_type":{"type":"string","description":"Type of the last updater: Agent, Intune or API.","example":"Agent"},"updated_on":{"type":"string","description":"Timestamp of the last update.","example":"2024-06-01 15:30:00"}},"description":"Detailed response model for a single software record."},"DropdownChoices":{"type":"object","properties":{"add":{"type":"array","description":"add (optional): Array of new dropdown options to add. Each max 50 characters.","example":["Option A"],"items":{"type":"string","description":"add (optional): Array of new dropdown options to add. Each max 50 characters.","example":"[\"Option A\"]"}},"remove":{"type":"array","description":"remove (optional): Array of existing dropdown option names to remove.","example":["Option B"],"items":{"type":"string","description":"remove (optional): Array of existing dropdown option names to remove.","example":"[\"Option B\"]"}}},"description":"dropdown_choices (optional): Object with 'add' and/or 'remove' arrays. Only applicable when field type is Dropdown (4)."},"SoftwareFieldUpdateRequestModel":{"type":"object","properties":{"name":{"type":"string","description":"name (optional): New name for the software field. Max 50 characters. Cannot be changed for default system fields.","example":"License Key"},"is_required":{"type":"boolean","description":"is_required (optional): Whether this field is required.","example":true},"dropdown_choices":{"$ref":"#/components/schemas/DropdownChoices"},"field_order":{"type":"integer","description":"field_order (optional): New display order position for the field. Must be a positive integer.","format":"int32","example":3}}},"SoftwareFieldResponseModel":{"type":"object","properties":{"field_name":{"type":"string","description":"Name of the software field."},"field_type":{"type":"integer","description":"Field type: 1=Text Input, 2=Paragraph, 3=Checkbox, 4=Dropdown, 5=Date, 6=Number, 7=Decimal.","format":"int32"},"is_required":{"type":"boolean","description":"Whether this field is required."},"field_order":{"type":"integer","description":"Display order of the field.","format":"int32"},"is_default":{"type":"boolean","description":"Whether this is a system-default field that cannot be deleted."},"dropdown_choices":{"type":"array","description":"Dropdown choices. Only present when type=4.","items":{"type":"string","description":"Dropdown choices. Only present when type=4."}}}},"ProductUpdateRequestModel":{"type":"object","properties":{"name":{"type":"string","description":"name (optional): New name for the product. Max 128 characters. Must be unique.","example":"ThinkPad X1 Carbon Gen 12"},"asset_type_name":{"type":"string","description":"asset_type_name (optional): Name of the asset type to assign to the product.","example":"Laptop"},"manufacturer":{"type":"string","description":"manufacturer (optional): Manufacturer of the product. Max 128 characters.","example":"Lenovo"},"status":{"type":"integer","description":"status (optional): Product status. 1 = In Production, 2 = In Pipeline, 3 = Retired.","format":"int32","example":1},"depreciation_name":{"type":"string","description":"depreciation_name (optional): Name of the depreciation schedule to apply. Pass empty string to remove.","example":"5-Year Straight Line"},"description":{"type":"string","description":"description (optional): Description of the product. Max 250 characters.","example":"Business ultrabook with 14-inch display."},"mode_of_procurement":{"type":"integer","description":"mode_of_procurement (optional): Mode of procurement. 1 = Buy, 2 = Lease.","format":"int32","example":1}}},"ProductResponseModel":{"type":"object","properties":{"product_name":{"type":"string","description":"Name of the product.","example":"ThinkPad X1 Carbon"},"asset_type_name":{"type":"string","description":"Asset type name this product belongs to.","example":"Laptop"},"manufacturer":{"type":"string","description":"Manufacturer of the product.","example":"Lenovo"},"product_status":{"type":"integer","description":"Product status code. 1 = In Production, 2 = In Pipeline, 3 = Retired.","format":"int32","example":1},"product_status_name":{"type":"string","description":"Human-readable label for the status code.","example":"In Production"},"depreciation_name":{"type":"string","description":"Name of the depreciation schedule applied to this product. Empty string if none.","example":"5-Year Straight Line"},"product_description":{"type":"string","description":"Description of the product.","example":"Business ultrabook with 14-inch display."},"mode_of_procurement":{"type":"integer","description":"Mode of procurement code. 1 = Buy, 2 = Lease.","format":"int32","example":1},"mode_of_procurement_name":{"type":"string","description":"Human-readable label for the mode of procurement code.","example":"Buy"}}},"LocationUpdateRequestModel":{"type":"object","properties":{"location_name":{"type":"string","description":"location_name (optional): New name for the location. Max 128 characters. Must be unique.","example":"New York Office"},"contact_name":{"type":"string","description":"contact_name (optional): Contact name at this location. Max 128 characters.","example":"John Doe"},"contact_email":{"type":"string","description":"contact_email (optional): Contact email at this location. Max 128 characters.","example":"john@example.com"},"contact_phone":{"type":"string","description":"contact_phone (optional): Contact phone at this location. Max 64 characters.","example":"+1-555-0100"},"location_address":{"type":"string","description":"location_address (optional): Street address of this location. Max 250 characters.","example":"123 Main St"},"location_city":{"type":"string","description":"location_city (optional): City of this location. Max 100 characters.","example":"New York"},"location_state":{"type":"string","description":"location_state (optional): State of this location. Max 100 characters.","example":"NY"},"location_country":{"type":"string","description":"location_country (optional): Country of this location. Max 100 characters.","example":"USA"},"location_zipcode":{"type":"string","description":"location_zipcode (optional): Zipcode of this location. Max 64 characters.","example":"10001"}}},"LocationResponseModel":{"type":"object","properties":{"location_name":{"type":"string","description":"Name of the location.","example":"New York Office"},"parent_location_name":{"type":"string","description":"Name of the parent location. Empty if this is a root-level location.","example":"US"},"contact_name":{"type":"string","description":"Contact name at this location.","example":"John Doe"},"contact_email":{"type":"string","description":"Contact email at this location.","example":"john@example.com"},"contact_phone":{"type":"string","description":"Contact phone at this location.","example":"+1-555-0100"},"location_address":{"type":"string","description":"Street address of this location.","example":"123 Main St"},"location_city":{"type":"string","description":"City of this location.","example":"New York"},"location_state":{"type":"string","description":"State of this location.","example":"NY"},"location_country":{"type":"string","description":"Country of this location.","example":"USA"},"location_zipcode":{"type":"string","description":"Zipcode of this location.","example":"10001"}}},"DepreciationUpdateRequestModel":{"type":"object","properties":{"depreciation_name":{"type":"string","description":"depreciation_name (optional): New name for the depreciation method. Max 128 characters. Must be unique.","example":"DB-5"},"useful_life_in_years":{"type":"integer","description":"useful_life_in_years (optional): Useful life in years (1–100).","format":"int32","example":5},"depreciation_description":{"type":"string","description":"depreciation_description (optional): Description of the depreciation method. Max 250 characters."}}},"DepreciationResponseModel":{"type":"object","properties":{"depreciation_name":{"type":"string","description":"Name of the depreciation method.","example":"DB-5"},"depreciation_type":{"type":"integer","description":"Depreciation type: 1 = Declining Balance, 2 = Straight Line, 3 = Sum of Years' Digits.","format":"int32","example":1},"useful_life_in_years":{"type":"integer","description":"Useful life in years.","format":"int32","example":5},"depreciation_description":{"type":"string","description":"Description of the depreciation method."}}},"AssetUpdateIdentification":{"type":"object","properties":{"asset_name":{"type":"string","description":"asset_name (optional): New name for the asset. Max 256 characters.","example":"ThinkPad-002"},"asset_tag":{"type":"string","description":"asset_tag (optional): New asset tag. Max 30 characters. Must be unique if provided.","example":"IT-0002"},"asset_type":{"type":"string","description":"asset_type (optional): New asset type. If changed, asset_type_details with all hierarchy sections is required.","example":"Laptop"},"asset_description":{"type":"string","description":"asset_description (optional): New description. Max 4000 characters.","example":"Updated workstation"},"impact":{"type":"string","description":"impact (optional): Impact level. Allowed values: Low, Medium, High.","example":"High"},"end_of_life":{"type":"string","description":"end_of_life (optional): End of life date in yyyy-MM-dd format.","example":"2029-06-30"}},"description":"identification (optional): Identification fields to update. Only included fields are changed."},"AssetUpdateOwnership":{"type":"object","properties":{"location":{"type":"string","description":"location (optional): Name of the location.","example":"London Office"},"managed_by_group":{"type":"string","description":"managed_by_group (optional): Name of the group managing this asset.","example":"IT Support"},"managed_by_agent":{"type":"string","description":"managed_by_agent (optional): Email of the agent managing this asset.","example":"agent@company.com"},"company":{"type":"string","description":"company (optional): Name of the company this asset belongs to.","example":"Acme Corp"},"department":{"type":"string","description":"department (optional): Name of the department.","example":"Finance"},"used_by":{"type":"string","description":"used_by (optional): Email of the contact using this asset.","example":"user@company.com"},"assigned_on":{"type":"string","description":"assigned_on (optional): Date the asset was assigned in yyyy-MM-dd format.","example":"2025-01-01"}},"description":"ownership (optional): Ownership fields to update. Only included fields are changed."},"AssetUpdateRequestModel":{"type":"object","properties":{"identification":{"$ref":"#/components/schemas/AssetUpdateIdentification"},"ownership":{"$ref":"#/components/schemas/AssetUpdateOwnership"},"asset_type_details":{"type":"object","additionalProperties":{"type":"object","additionalProperties":{"type":"object","description":"asset_type_details (optional): Type-specific field sections to update, keyed by snake_case type name. Required when changing asset_type (all hierarchy sections must be present). For partial updates, include only the sections and fields to change.","example":{"hardware":{"serial_number":"SN-NEW-001","asset_state":"In Repair"},"laptop":{"ram":"32GB"}}},"description":"asset_type_details (optional): Type-specific field sections to update, keyed by snake_case type name. Required when changing asset_type (all hierarchy sections must be present). For partial updates, include only the sections and fields to change.","example":{"hardware":{"serial_number":"SN-NEW-001","asset_state":"In Repair"},"laptop":{"ram":"32GB"}}},"description":"asset_type_details (optional): Type-specific field sections to update, keyed by snake_case type name. Required when changing asset_type (all hierarchy sections must be present). For partial updates, include only the sections and fields to change.","example":{"hardware":{"serial_number":"SN-NEW-001","asset_state":"In Repair"},"laptop":{"ram":"32GB"}}}}},"AssetResponseAudit":{"type":"object","properties":{"created_by":{"type":"string","description":"Agent who created the asset.","example":"admin@company.com"},"created_by_type":{"type":"string","description":"Type of the user who created the asset.","example":"Agent"},"created_on":{"type":"string","description":"Creation timestamp.","example":"2024-01-10 10:00:00"},"last_modified_by":{"type":"string","description":"Agent who last modified the asset.","example":"admin@company.com"},"last_modified_by_type":{"type":"string","description":"Type of the user who last modified the asset.","example":"Agent"},"last_modified_on":{"type":"string","description":"Last modification timestamp.","example":"2024-01-15 12:00:00"}},"description":"Audit metadata for the asset."},"AssetResponseIdentification":{"type":"object","properties":{"asset_num":{"type":"integer","description":"Unique sequential number of the asset.","format":"int64","example":1},"asset_name":{"type":"string","description":"Name of the asset.","example":"ThinkPad-001"},"asset_tag":{"type":"string","description":"Unique asset tag.","example":"IT-0001"},"asset_type":{"type":"string","description":"Asset type name.","example":"Laptop"},"asset_description":{"type":"string","description":"Description of the asset.","example":"Developer workstation"},"impact":{"type":"string","description":"Impact level.","example":"Medium"},"end_of_life":{"type":"string","description":"End of life date.","example":"2028-12-31"}},"description":"Core identification fields of the asset."},"AssetResponseModel":{"type":"object","properties":{"identification":{"$ref":"#/components/schemas/AssetResponseIdentification"},"ownership":{"$ref":"#/components/schemas/AssetResponseOwnership"},"asset_type_details":{"type":"object","additionalProperties":{"type":"object","additionalProperties":{"type":"string","description":"Type-specific fields grouped by asset type key. Each key is the snake_case type name; each value is a map of field_key → field_value.","example":"{\"hardware\":{\"serial_number\":\"SN-XYZ-001\",\"asset_state\":\"In Use\",\"purchase_date\":\"2024-01-10\",\"warranty_expiry_date\":\"2027-01-10\"},\"laptop\":{\"ram\":\"16GB\",\"storage\":\"512GB SSD\"}}"},"description":"Type-specific fields grouped by asset type key. Each key is the snake_case type name; each value is a map of field_key → field_value.","example":{"hardware":{"serial_number":"SN-XYZ-001","asset_state":"In Use","purchase_date":"2024-01-10","warranty_expiry_date":"2027-01-10"},"laptop":{"ram":"16GB","storage":"512GB SSD"}}},"description":"Type-specific fields grouped by asset type key. Each key is the snake_case type name; each value is a map of field_key → field_value.","example":{"hardware":{"serial_number":"SN-XYZ-001","asset_state":"In Use","purchase_date":"2024-01-10","warranty_expiry_date":"2027-01-10"},"laptop":{"ram":"16GB","storage":"512GB SSD"}}},"audit":{"$ref":"#/components/schemas/AssetResponseAudit"},"associated_tickets":{"type":"array","description":"List of ticket numbers associated with this asset.","example":[101,205,318],"items":{"type":"integer","description":"List of ticket numbers associated with this asset.","format":"int64"}},"book_value":{"type":"number","description":"Current book value of the asset after depreciation, rounded to 2 decimals and floored at salvage_value. Null when it cannot be calculated.","format":"double","nullable":true,"example":3250.75}}},"AssetResponseOwnership":{"type":"object","properties":{"location":{"type":"string","description":"Location name.","example":"HQ"},"managed_by_group":{"type":"string","description":"Group managing this asset.","example":"IT Support"},"managed_by_agent":{"type":"string","description":"Agent email managing this asset.","example":"agent@company.com"},"company":{"type":"string","description":"Company name.","example":"Acme Corp"},"department":{"type":"string","description":"Department name.","example":"Engineering"},"used_by":{"type":"string","description":"Contact email using this asset.","example":"user@company.com"},"assigned_on":{"type":"string","description":"Date the asset was assigned.","example":"2024-01-15"}},"description":"Ownership and assignment fields of the asset."},"AssetTypeUpdateRequestModel":{"required":["name"],"type":"object","properties":{"name":{"type":"string","description":"name (required): New name for the asset type. Must not exceed 128 characters.","example":"Workstation"}}},"AssetTypeFieldSummary":{"type":"object","properties":{"field_name":{"type":"string","description":"Display name of the field.","example":"Serial Number"},"field_type":{"type":"integer","description":"Integer constant identifying the field type (maps to frontend ASSET_FIELD_TYPE_* constants).","format":"int32","example":1}},"description":"Summary of a single custom field on the asset type."},"AssetTypeResponseModel":{"type":"object","properties":{"asset_type_name":{"type":"string","description":"Name of the asset type.","example":"Laptop"},"asset_parent_type_name":{"type":"string","description":"Name of the parent asset type, or empty string if this is a top-level type.","example":"Computer"},"root_asset_type_name":{"type":"string","description":"Name of the topmost ancestor asset type. Equals name if this is a root type. Included in list endpoint only.","example":"Hardware"},"is_default":{"type":"boolean","description":"Whether this is a system-defined (default) asset type.","example":false},"is_disabled":{"type":"boolean","description":"Whether this asset type is currently disabled.","example":false},"fields":{"type":"array","description":"List of custom fields defined for this asset type (details endpoint only).","items":{"$ref":"#/components/schemas/AssetTypeFieldSummary"}}}},"AssetTypeFieldUpdateRequestModel":{"type":"object","properties":{"name":{"type":"string","description":"name (optional): New name for the field. Must not exceed 50 characters.","example":"Serial Number"},"is_required":{"type":"boolean","description":"is_required (optional): Whether the field is required.","example":true},"field_order":{"type":"integer","description":"field_order (optional): Display order of the field within the asset type.","format":"int32","example":2},"dropdown_choices":{"$ref":"#/components/schemas/DropdownChoicesUpdate"}}},"DropdownChoicesUpdate":{"type":"object","properties":{"add":{"type":"array","description":"add (optional): New choices to add. Each must not exceed 50 characters.","items":{"type":"string","description":"add (optional): New choices to add. Each must not exceed 50 characters."}},"remove":{"type":"array","description":"remove (optional): Existing choices to remove (matched by name).","items":{"type":"string","description":"remove (optional): Existing choices to remove (matched by name)."}}},"description":"dropdown_choices (optional): Dropdown choices modification. Contains 'add' and 'remove' sub-arrays. Only applicable when the field is of type Dropdown (type=4)."},"AssetTypeFieldResponseModel":{"type":"object","properties":{"field_name":{"type":"string","description":"Name of the field."},"field_type":{"type":"integer","description":"Field type. 1=Text, 2=Paragraph, 3=Checkbox, 4=Dropdown, 5=Date, 6=Number, 7=Decimal.","format":"int32"},"is_required":{"type":"boolean","description":"Whether the field is required."},"field_order":{"type":"integer","description":"Display order of the field.","format":"int32"},"dropdown_choices":{"type":"array","description":"Dropdown choices. Only present when field_type=4.","items":{"type":"string","description":"Dropdown choices. Only present when field_type=4."}}}},"AddTimeEntryModel":{"type":"object","properties":{"time_entry_type":{"type":"integer","description":"Type of time entry. 1 = Specific Time, 2 = Run timer","format":"int32","example":1},"agent_email":{"type":"string","description":"Email of the agent for whom the time entry is added","example":"agent@gmail.com"},"time_spent_in_mins":{"type":"integer","description":"Time spent in minutes for manual time entry","format":"int32","example":120},"start_time":{"type":"string","description":"Start time of the manual time entry in 'yyyy-MM-dd HH:mm' format","example":"2026-03-20 14:30"},"note":{"type":"string","description":"Note added along with the time entry","example":"Sample note"},"additional_info":{"type":"string","description":"Additional information for the time entry","example":"Sample additional information"},"billable":{"type":"integer","description":"Indicates whether the time entry is billable (1 = billable, 0 = non-billable)","format":"int32","example":1},"category_name":{"type":"string","description":"Optional name of a configured Time Entry Category to associate with this time entry. Must match an existing category name for the helpdesk (case-insensitive); omit or leave empty for no category.","example":"Development"}}},"ConversationImportApiRequest":{"required":["conversations"],"type":"object","properties":{"conversations":{"type":"array","description":"Conversation items to append to the ticket (maximum 30 per request)","items":{"$ref":"#/components/schemas/ConversationItemApiModel"}}},"description":"Request body for POST /v3/tickets/import_conversations."},"ConversationItemApiModel":{"required":["body","type"],"type":"object","properties":{"type":{"type":"string","description":"Conversation type","example":"reply","enum":["reply","note","forward"]},"body":{"type":"string","description":"HTML or plain text body content","example":"<p>Please see the screenshot below:</p><img src=\"https://your-public-cdn.com/screenshot.png\">"},"sender_type":{"type":"string","description":"For \"reply\"/\"forward\": direction of the message (\"agent\" or \"contact\"). For \"note\": \"agent\" (default) creates an agent note; \"contact\" creates a forward-reply note (always private, author = ticket contact when created_by is omitted); \"system\" creates an automation/System note (created_by is ignored). \"system\" is valid only for type \"note\".","example":"agent","enum":["agent","contact","system"]},"created_on":{"type":"string","description":"Date and time when the item was created (yyyy-MM-dd HH:mm:ss); must not be a future date and must not be older than the ticket's own creation time","example":"2024-01-15 11:00:00"},"created_by":{"type":"string","description":"Author email. For note type: use the literal value \"system\" to create an automation/system note (created_by is then ignored). If omitted or not matched: reply (agent) defaults to Admin; reply (contact) auto-creates a contact if not found; note (agent) defaults to System; note (contact) defaults to ticket contact.","example":"agent@example.com"},"public_note":{"type":"boolean","description":"Whether the note is public (note type only). Defaults to false (private). Ignored for sender_type=contact — contact notes are always stored as private.","example":false},"notified_agents":{"type":"string","description":"Comma-separated agent emails to notify (note type only)","example":"agent1@example.com,agent2@example.com"},"cc_address":{"type":"string","description":"Comma-separated CC email addresses (reply and forward types only)","example":"cc1@example.com,cc2@example.com"},"bcc_address":{"type":"string","description":"Comma-separated BCC email addresses — agent reply and forward types only; not stored for contact replies","example":"bcc1@example.com,bcc2@example.com"},"to_address":{"type":"string","description":"Comma-separated To email addresses (required when type is \"forward\")","example":"external@example.com"},"attachment_public_urls":{"type":"string","description":"Comma-separated publicly accessible attachment URLs for this item. Limited to the helpdesk's maximum attachment count (excess URLs are skipped with a warning); each file is virus-scanned before being stored.","example":"https://example.com/screenshot.png,https://example.com/document.pdf"}},"description":"Conversation items to import after the first article (maximum 30 per request)"},"ConversationImportApiResponse":{"type":"object","properties":{"ticket_number":{"type":"integer","description":"Display ticket number of the ticket conversations were imported into","format":"int32","example":157},"items_imported":{"type":"integer","description":"Number of conversation items imported","format":"int32","example":3},"message":{"type":"string","description":"Optional informational message","example":"Conversations imported successfully"},"warnings":{"type":"array","description":"Non-fatal substitution messages (e.g. unresolved created_by email, skipped notified_agents)","example":["conversations[1].created_by: 'x@y.com' not found; defaulted to admin user"],"items":{"type":"string","description":"Non-fatal substitution messages (e.g. unresolved created_by email, skipped notified_agents)","example":"[\"conversations[1].created_by: 'x@y.com' not found; defaulted to admin user\"]"}}}},"TicketImportApiRequest":{"required":["contact_email"],"type":"object","properties":{"subject":{"type":"string","description":"Subject of the ticket","example":"Printer not working"},"description":{"type":"string","description":"First article / ticket description (HTML allowed)","example":"<div>The printer on Floor 2 stopped responding after the firmware update.</div>"},"status":{"type":"string","description":"Status name (e.g. Open, Resolved, Closed, Pending)","example":"Open"},"priority":{"type":"integer","description":"Priority — 1 (Low), 5 (Medium), 10 (High), 20 (Urgent); defaults to helpdesk default when omitted","format":"int32","example":5,"enum":[1,5,10,20]},"type":{"type":"string","description":"Ticket type name (e.g. Question, Incident, Problem, Feature Request)","example":"Question"},"group":{"type":"string","description":"Team/group name (resolved to team ID)","example":"Support"},"category":{"type":"string","description":"Category name (resolved to category ID)","example":"Billing"},"conversations":{"type":"array","description":"Conversation items to import after the first article (maximum 30 per request)","items":{"$ref":"#/components/schemas/ConversationItemApiModel"}},"contact_email":{"type":"string","description":"Contact email address (required)","example":"user@example.com"},"contact_name":{"type":"string","description":"Contact display name","example":"John Doe"},"assign_to":{"type":"string","description":"Agent email to assign to (resolved to user ID)","example":"agent@example.com"},"sub_category":{"type":"string","description":"Sub-category name (resolved using category; requires category to be set)","example":"Disputed Charge"},"created_on":{"type":"string","description":"Date and time of ticket creation in UTC (yyyy-MM-dd HH:mm:ss); must not be a future date","example":"2024-01-15 09:00:00"},"resolved_on":{"type":"string","description":"Date and time when the ticket was resolved in UTC (yyyy-MM-dd HH:mm:ss); use with Resolved status; must not be a future date","example":"2024-01-16 14:30:00"},"closed_on":{"type":"string","description":"Date and time when the ticket was closed in UTC (yyyy-MM-dd HH:mm:ss); use with Closed status; must not be a future date","example":"2024-01-17 10:00:00"},"sla_plan_name":{"type":"string","description":"SLA plan name to associate with this ticket (e.g. \"Standard SLA\"). Resolved to a contract ID — returns a 400 error if the plan name is not found. If omitted, the contact's default SLA plan is used.","example":"Standard SLA"},"form_name":{"type":"string","description":"Agent portal form name to associate with this ticket (resolved to form ID; no specific form is used if omitted or not found)","example":"IT Support Form"},"cc_address":{"type":"string","description":"Comma-separated CC email addresses for the first article (ticket creation)","example":"cc1@example.com,cc2@example.com"},"attachment_public_urls":{"type":"string","description":"Comma-separated publicly accessible attachment URLs for the first article. Limited to the helpdesk's maximum attachment count (excess URLs are skipped with a warning); each file is virus-scanned and the combined size must stay within the plan limit.","example":"https://example.com/attachment.pdf,https://example.com/screenshot.png"},"watchers":{"type":"string","description":"Comma-separated agent emails to add as ticket watchers","example":"agent1@example.com,agent2@example.com"},"share_to":{"type":"string","description":"Comma-separated contact emails to share the ticket with","example":"contact1@example.com,contact2@example.com"},"custom_fields":{"type":"object","description":"Custom field values. Keys must use the cf_ prefix (e.g. cf_employee_id). Values are type-checked against the field definition. Invalid keys or type mismatches return a 400 error.","example":{"cf_employee_id":2022542,"cf_dob":"1991-06-22"}}},"description":"Request body for POST /v3/tickets/import. All fields use snake_case. Only contact_email is required. All datetime fields assume UTC.","example":{"contact_email":"john.doe@example.com","contact_name":"John Doe","subject":"Printer not working after firmware update","description":"<p>The printer on Floor 2 stopped responding.</p>","status":"Resolved","priority":5,"type":"Problem","group":"IT Support","assign_to":"agent@example.com","category":"Hardware","sub_category":"Printer","created_on":"2024-01-15 09:00:00","resolved_on":"2024-01-16 14:30:00","sla_plan_name":"Standard SLA","form_name":"IT Support Form","cc_address":"manager@example.com","attachment_public_urls":"https://example.com/screenshot.png","watchers":"watcher@example.com","share_to":"contact@example.com","custom_fields":{"cf_employee_id":2022542,"cf_dob":"1991-06-22"},"conversations":[{"type":"reply","sender_type":"agent","body":"<p>We have reset the printer firmware.</p>","created_on":"2024-01-15 10:00:00","created_by":"agent@example.com","cc_address":"manager@example.com","attachment_public_urls":"https://example.com/fix-guide.pdf"},{"type":"note","body":"<p>Escalated to hardware team.</p>","created_on":"2024-01-15 11:00:00","notified_agents":"team@example.com"},{"type":"forward","body":"<p>Forwarding to vendor.</p>","created_on":"2024-01-15 12:00:00","to_address":"vendor@example.com"}]}},"TicketImportApiResponse":{"type":"object","properties":{"ticket_number":{"type":"integer","description":"Display ticket number","format":"int32","example":157},"message":{"type":"string","description":"Optional informational message","example":"Ticket imported successfully"},"warnings":{"type":"array","description":"Non-fatal substitution messages (e.g. unresolved created_by email, skipped notified_agents)","example":["conversations[1].created_by: 'x@y.com' not found; defaulted to admin user"],"items":{"type":"string","description":"Non-fatal substitution messages (e.g. unresolved created_by email, skipped notified_agents)","example":"[\"conversations[1].created_by: 'x@y.com' not found; defaulted to admin user\"]"}}}},"CreateTicketModel":{"type":"object","properties":{"email":{"type":"string","description":"Email of the contact","example":"test@gmail.com"},"form_name":{"type":"string","description":"Form name of the ticket","example":"Create Ticket"},"subject":{"type":"string","description":"Subject of the ticket","example":"Printer not working"},"description":{"type":"string","description":"Description of the ticket in HTML","example":"<div>Please fix it</div>"},"status":{"type":"string","description":"Status of the ticket","example":"open"},"priority":{"type":"integer","description":"Priority of the ticket","format":"int32","example":1},"type":{"type":"string","description":"Type of the ticket","example":"Question"},"assign_to":{"type":"string","description":"Agent email","example":"agent@gmail.com"},"group":{"type":"string","description":"Group name","example":"Sales"},"category":{"type":"string","description":"Category name","example":"Billing"},"sub_category":{"type":"string","description":"Sub category name","example":"Disputed Charge"},"custom_fields":{"$ref":"#/components/schemas/CustomFields"},"watchers":{"type":"array","properties":{"expandElements":{"type":"boolean"},"array":{"type":"boolean"},"empty":{"type":"boolean"}},"description":"List of agents to be added as Watchers","example":["johndoe@contoso.com"],"items":{"type":"object","description":"List of agents to be added as Watchers","example":["johndoe@contoso.com"]}},"share_to":{"type":"array","properties":{"expandElements":{"type":"boolean"},"array":{"type":"boolean"},"empty":{"type":"boolean"}},"description":"List of contacts to be added as Share To","example":["johndoe@contoso.com"],"items":{"type":"object","description":"List of contacts to be added as Share To","example":["johndoe@contoso.com"]}}}},"TicketDetailsModel":{"type":"object","properties":{"ticket_number":{"type":"integer","description":"The unique ID of the ticket","format":"int32","example":10},"contact_email":{"type":"string","description":"Email of the contact","example":"test@gmail.com"},"contact_name":{"type":"string","description":"Name of the contact","example":"John Doe"},"subject":{"type":"string","description":"Subject of the ticket","example":"Printer not working"},"description":{"type":"string","description":"Description of the ticket in HTML","example":"<div>Please fix it</div>"},"description_text":{"type":"string","description":"Description of the ticket in plain text","example":"Please fix it"},"status":{"type":"string","description":"Status of the ticket","example":"open"},"priority":{"type":"integer","description":"Priority of the ticket","format":"int32","example":1},"type":{"type":"string","description":"Type of the ticket","example":"Question"},"source":{"type":"integer","description":"Channel through which the ticket was created.","format":"int32","example":1},"form_name":{"type":"string","description":"Form Name","example":"Create Ticket"},"form_is_deleted":{"type":"integer","description":"Indicates whether form name is deleted or not","format":"int32","example":0},"assigned_to":{"type":"string","description":"Agent email","example":"agent@gmail.com"},"updated_by":{"type":"string","description":"Email of the agent or contact who last updated the ticket, \"System\" if updated automatically, or \"API\" if updated over the API","example":"agent@example.com"},"updated_by_type":{"type":"integer","description":"Type of the user who last updated the ticket. System=1, Agent=2, Contact=3, API=4.","format":"int32","example":2},"closed_by":{"type":"string","description":"Email of the agent or contact who closed the ticket, \"System\" if closed automatically, or \"API\" if closed over the API","example":"agent@example.com"},"closed_by_type":{"type":"integer","description":"Type of the user who closed the ticket. System=1, Agent=2, Contact=3, API=4.","format":"int32","example":2},"company_name":{"type":"string","description":"Company Name","example":"Contoso Company"},"department_name":{"type":"string","description":"Department Name","example":"Developers"},"sla":{"type":"string","description":"Sla","example":"Standard sla"},"group":{"type":"string","description":"Group name","example":"Sales"},"category":{"type":"string","description":"Category name","example":"Billing"},"subcategory":{"type":"string","description":"Sub category name","example":"Disputed Charge"},"created_on":{"type":"string","description":"Ticket creation timestamp (in format yyyy-mm-dd hh:mm:ss).","example":"2023-01-01 00:00:00"},"updated_on":{"type":"string","description":"Ticket updated timestamp (in format yyyy-mm-dd hh:mm:ss).","example":"2023-01-02 00:00:00"},"resolved_on":{"type":"string","description":"Ticket resolved timestamp (in format yyyy-mm-dd hh:mm:ss).","example":"2023-01-03 00:00:00"},"closed_on":{"type":"string","description":"Ticket closed timestamp (in format yyyy-mm-dd hh:mm:ss).","example":"2032-01-04 00:00:00"},"due_date":{"type":"string","description":"Due date timestamp (in format yyyy-mm-dd hh:mm:ss).","example":"2023-01-03 00:00:00"},"completed_within_sla":{"type":"boolean","description":"Indicates whether the ticket was completed within the SLA timeframe","example":true},"status_open_duration":{"type":"integer","description":"Total calendar time spent in Open status across all visits, in minutes. Excludes the current status interval if the ticket is presently Open.","format":"int32","example":120},"status_pending_duration":{"type":"integer","description":"Total calendar time spent in Pending status across all visits, in minutes. Excludes the current status interval if the ticket is presently Pending.","format":"int32","example":60},"status_open_biz_hrs_duration":{"type":"integer","description":"Total business-hours time spent in Open status across all visits, in minutes. Only computed for tickets with an active SLA plan; null otherwise.","format":"int32","example":45},"status_pending_biz_hrs_duration":{"type":"integer","description":"Total business-hours time spent in Pending status across all visits, in minutes. Only computed for tickets with an active SLA plan; null otherwise.","format":"int32","example":30},"first_response_time":{"type":"string","description":"First response timestamp (in format yyyy-mm-dd hh:mm:ss).","example":"2023-01-02 00:00:00"},"first_assigned_time":{"type":"string","description":"First assigned timestamp (in format yyyy-mm-dd hh:mm:ss).","example":"2023-01-02 00:00:00"},"first_assigned_duration":{"type":"integer","description":"First assigned duration in minutes","format":"int32","example":1440},"resolved_duration":{"type":"integer","description":"Resolved duration in minutes","format":"int32","example":2880},"first_replied_duration":{"type":"integer","description":"First replied duration in minutes","format":"int32","example":1440},"closed_duration":{"type":"integer","description":"Closed duration in minutes","format":"int32","example":4320},"custom_fields":{"$ref":"#/components/schemas/CustomFields"},"attachments":{"type":"array","description":"Attachment details","example":"[{file_name: test.jpeg,file_size: 7697,file_type: image/jpeg,attachment_url: https://exampleurl.com/test.jpeg,}]","items":{"type":"object","description":"Attachment details","example":"[{file_name: test.jpeg,file_size: 7697,file_type: image/jpeg,attachment_url: https://exampleurl.com/test.jpeg,}]"}},"watchers":{"type":"array","properties":{"expandElements":{"type":"boolean"},"array":{"type":"boolean"},"empty":{"type":"boolean"}},"description":"List of agents added as Watchers","example":["johndoe@contoso.com"],"items":{"type":"object","description":"List of agents added as Watchers","example":["johndoe@contoso.com"]}},"share_to":{"type":"array","properties":{"expandElements":{"type":"boolean"},"array":{"type":"boolean"},"empty":{"type":"boolean"}},"description":"List of contacts added as Share To","example":["johndoe@contoso.com"],"items":{"type":"object","description":"List of contacts added as Share To","example":["johndoe@contoso.com"]}},"conversation_count":{"type":"integer","description":"Total number of conversations in the ticket","format":"int32","example":5},"associated_assets":{"type":"array","description":"Array of asset numbers associated with the ticket. Only present when Asset Management feature is enabled.","example":[1,2,3],"items":{"type":"integer","description":"Array of asset numbers associated with the ticket. Only present when Asset Management feature is enabled.","format":"int64"}}}},"TicketAssetAssociateRequestModel":{"required":["asset_numbers"],"type":"object","properties":{"asset_numbers":{"type":"array","description":"Array of asset numbers to associate with the ticket. Maximum 10 per request.","example":[1,2,3],"items":{"type":"integer","description":"Array of asset numbers to associate with the ticket. Maximum 10 per request.","format":"int64"}}},"description":"Request model for associating assets with a ticket"},"AddReplyWithAttachmentResponseModel":{"type":"object","properties":{"id":{"type":"integer","description":"The unique ID of the created reply.","format":"int64","example":34372256829},"body":{"type":"string","description":"Reply body","example":"We are working on this issue. Will keep you updated."},"cc_emails":{"type":"string","description":"CC emails separated by comma.","example":"jon@gmail.com"},"bcc_emails":{"type":"string","description":"BCC emails separated by comma.","example":"jon@gmail.com"},"from_email":{"type":"string","description":"The email address the reply was sent from.","example":"support@domain.desk365.io"},"to_email":{"type":"string","description":"The contact email address the reply was sent to.","example":"contact@example.com"},"ticket_number":{"type":"integer","description":"The unique ID of the ticket","format":"int32","example":10},"attachments":{"type":"array","description":"Attachment details","example":[{"file_name":"test.jpeg","file_size":7697,"file_type":"image/jpeg","created_on":"2026-08-26 07:54:04","attachment_url":"https://exampleurl.com/test.jpeg"}],"items":{"type":"object","description":"Attachment details","example":[{"file_name":"test.jpeg","file_size":7697,"file_type":"image/jpeg","created_on":"2026-08-26 07:54:04","attachment_url":"https://exampleurl.com/test.jpeg"}]}}}},"AddReplyModel":{"type":"object","properties":{"body":{"type":"string","description":"Reply body","example":"We are working on this issue. Will keep you updated."},"cc_emails":{"type":"string","description":"CC emails separated by comma.","example":"jon@gmail.com"},"bcc_emails":{"type":"string","description":"BCC emails separated by comma.","example":"jon@gmail.com"},"agent_email":{"type":"string","description":"The email address of the agent who is adding the reply.","example":"agent@gmail.com"},"from_email":{"type":"string","description":"The email address from which the reply is sent. By default the global support email will be used.","example":"support@domain.desk365.io"},"include_prev_ccs":{"type":"integer","description":"Whether to include previous ccs in the conversation or not.","format":"int32","example":0},"include_prev_messages":{"type":"integer","description":"Whether to include previous messages in the conversation or not.","format":"int32","example":0}}},"AddReplyResponseModel":{"type":"object","properties":{"id":{"type":"integer","description":"The unique ID of the created reply.","format":"int64","example":34372256829},"body":{"type":"string","description":"Reply body","example":"We are working on this issue. Will keep you updated."},"cc_emails":{"type":"string","description":"CC emails separated by comma.","example":"jon@gmail.com"},"bcc_emails":{"type":"string","description":"BCC emails separated by comma.","example":"jon@gmail.com"},"from_email":{"type":"string","description":"The email address the reply was sent from.","example":"support@domain.desk365.io"},"to_email":{"type":"string","description":"The contact email address the reply was sent to.","example":"contact@example.com"},"ticket_number":{"type":"integer","description":"The unique ID of the ticket","format":"int32","example":10},"attachments":{"type":"array","description":"Attachment details. Always empty — this endpoint does not accept file uploads; use add_reply_with_attachment to attach files.","example":[],"items":{"type":"object","description":"Attachment details. Always empty — this endpoint does not accept file uploads; use add_reply_with_attachment to attach files.","example":[]}}}},"AddNoteWithAttachmentResponseModel":{"type":"object","properties":{"id":{"type":"integer","description":"The unique ID of the created note","format":"int64","example":68721227525},"body":{"type":"string","description":"Content of the note.","example":"We are working on this issue. Will keep you updated."},"notify_emails":{"type":"string","description":"Email addresses of agents who were notified about this note","example":"agent@gmail.com"},"to_email":{"type":"string","description":"The contact email address the note was sent to. Null for private notes.","example":"contact@example.com"},"ticket_number":{"type":"integer","description":"The unique ID of the ticket","format":"int32","example":10},"private_note":{"type":"integer","description":"Whether the note is private.","format":"int32","example":1},"attachments":{"type":"array","description":"Attachment details","example":[{"file_name":"test.jpeg","file_size":7697,"file_type":"image/jpeg","created_on":"2026-08-26 07:54:04","attachment_url":"https://exampleurl.com/test.jpeg"}],"items":{"type":"object","description":"Attachment details","example":[{"file_name":"test.jpeg","file_size":7697,"file_type":"image/jpeg","created_on":"2026-08-26 07:54:04","attachment_url":"https://exampleurl.com/test.jpeg"}]}}}},"AddNoteModel":{"type":"object","properties":{"body":{"type":"string","description":"Content of the note.","example":"We are working on this issue. Will keep you updated."},"agent_email":{"type":"string","description":"Email address of the agent who is adding the note.","example":"agent@gmail.com"},"notify_emails":{"type":"string","description":"Email addresses of agents who need to be notified about this note","example":"agent@gmail.com"},"private_note":{"type":"integer","description":"Whether to include previous ccs in the conversation or not.","format":"int32","example":1}}},"AddNoteResponseModel":{"type":"object","properties":{"id":{"type":"integer","description":"The unique ID of the created note","format":"int64","example":68721227525},"body":{"type":"string","description":"Content of the note.","example":"We are working on this issue. Will keep you updated."},"notify_emails":{"type":"string","description":"Email addresses of agents who were notified about this note","example":"agent@gmail.com"},"to_email":{"type":"string","description":"The contact email address the note was sent to. Null for private notes.","example":"contact@example.com"},"ticket_number":{"type":"integer","description":"The unique ID of the ticket","format":"int32","example":10},"private_note":{"type":"integer","description":"Whether the note is private.","format":"int32","example":1},"attachments":{"type":"array","description":"Attachment details. Always empty — this endpoint does not accept file uploads; use add_note_with_attachment to attach files.","example":[],"items":{"type":"object","description":"Attachment details. Always empty — this endpoint does not accept file uploads; use add_note_with_attachment to attach files.","example":[]}}}},"CreateKBFolderRequestModel":{"type":"object","properties":{"category_name":{"type":"string","description":"Name of the category.","example":"Help Center"},"folder_name":{"type":"string","description":"Name of the folder.","example":"Teams Bot"},"created_by_email":{"type":"string","description":"Email of the agent who creates the category.","example":"agent@example.com"}}},"CreateKBCategoryRequestModel":{"type":"object","properties":{"category_name":{"type":"string","description":"Name of the category.","example":"Help Center"},"category_description":{"type":"string","description":"Description of the category.","example":"This category contains help articles."},"created_by_email":{"type":"string","description":"Email of the agent who creates the category.","example":"agent@example.com"},"support_portal_visibility":{"type":"integer","description":"Visibility of the category in the support portal.","format":"int32","example":4},"company_list":{"type":"array","properties":{"expandElements":{"type":"boolean"},"array":{"type":"boolean"},"empty":{"type":"boolean"}},"description":"List of companies associated with the category.","example":["Company1","Company2"],"items":{"type":"object","description":"List of companies associated with the category.","example":["Company1","Company2"]}},"agent_portal_visibility":{"type":"integer","description":"Visibility of the category in the agent portal.","format":"int32","example":2},"agent_group_list":{"type":"array","properties":{"expandElements":{"type":"boolean"},"array":{"type":"boolean"},"empty":{"type":"boolean"}},"description":"List of agent groups associated with the category.","example":["Group1","Group2"],"items":{"type":"object","description":"List of agent groups associated with the category.","example":["Group1","Group2"]}}}},"CreateKBArticleRequestModel":{"type":"object","properties":{"article_title":{"type":"string","description":"Title of the article.","example":"How to use the Help Center"},"article_content":{"type":"string","description":"Content of the article.","example":"<p>This article explains how to use the Help Center.<p>"},"category_name":{"type":"string","description":"Name of the category.","example":"Help Center"},"folder_name":{"type":"string","description":"Name of the folder.","example":"User Guides"},"created_by_email":{"type":"string","description":"Email of user who created the article.","example":"agent@example.com"},"status":{"type":"integer","description":"Status of the article (0 for Unpublished, 1 for Published, 2 for Draft of Published).","format":"int32","example":1}}},"ContractCreateOrUpdateResponseModel":{"type":"object","properties":{"name":{"type":"string","description":"Name of the contract.","example":"Sample contract"},"description":{"type":"string","description":"Description for the contract.","example":"Quarterly support contract"},"company":{"type":"string","description":"Company name for the contract.","example":"Contoso"},"start_date":{"type":"string","description":"Start date of the contract.","example":"2023-01-01"},"end_date":{"type":"string","description":"End date of the contract.","example":"2024-01-01"},"reference_number":{"type":"string","description":"Reference number for the contract.","example":"#6532"},"setup_fees":{"type":"number","description":"Setup fees for the contract.","format":"double","example":500},"sla":{"type":"string","description":"Sla name for the contract.","example":"Standard Sla"},"contract_category":{"type":"string","description":"Category name for the contract.","example":"Level 1"},"is_active":{"type":"boolean","description":"Status of the contract: active=true, inactive=false","example":true},"bill_cycle":{"type":"integer","description":"Billing cycle: Monthly=1, Contract length=2","format":"int32","example":1},"after_hours_included":{"type":"boolean","description":"After hours included or not","example":false},"contract_type":{"type":"integer","description":"Type of the contract: Block hours=2, Block tickets=3","format":"int32","example":2},"block_hours":{"$ref":"#/components/schemas/ContractsBlockHourModel"},"block_tickets":{"$ref":"#/components/schemas/ContractsBlockTicketsModel"}}},"ContractsBlockHourModel":{"type":"object","properties":{"contract_hours":{"type":"integer","description":"Contract hours","format":"int32","example":600},"min_increment":{"type":"integer","description":"Minimum increment","format":"int32","example":15},"rollover_unused_hours":{"type":"boolean","description":"Rollover unused hours to next period or not","example":false},"rollover_type":{"type":"integer","description":"Rollover Type: Monthly=1","format":"int32","example":1},"rollover_value":{"type":"integer","description":"Rollover value","format":"int32","example":5}},"description":"Block hours object"},"ContractsBlockTicketsModel":{"type":"object","properties":{"contract_tickets":{"type":"integer","description":"Block tickets","format":"int32","example":50}},"description":"Block tickets object"},"CreateContactRequestModel":{"type":"object","properties":{"name":{"type":"string","description":"Name of the contact.","example":"Joe"},"primary_email":{"type":"string","description":"Primary email address of the contact.","example":"contact@contoso.com"},"secondary_emails":{"type":"string","description":"Additional emails associated with the contact.","example":"joe@contoso.com"},"title":{"type":"string","description":"Title of the contact.","example":"Manager"},"mobile":{"type":"string","description":"Mobile number of the contact.","example":"123456789"},"phone":{"type":"string","description":"Telephone number of the contact.","example":"123456789"},"company_name":{"type":"string","description":"Company name to which the contact is associated.","example":"Contoso"},"primary_department":{"type":"string","description":"Primary Department to which the contact is associated.","example":"Developers"},"secondary_departments":{"type":"string","description":"Secondary Departments to which the contact is associated.","example":"Sales, Marketing"},"custom_fields":{"$ref":"#/components/schemas/CustomFields"}}},"VendorRequestModel":{"required":["vendor_name"],"type":"object","properties":{"vendor_name":{"type":"string","description":"vendor_name (required): Name of the vendor. Max 128 characters.","example":"Acme Corp"},"vendor_description":{"type":"string","description":"vendor_description (optional): Description of the vendor. Max 250 characters."},"vendor_contact_name":{"type":"string","description":"vendor_contact_name (optional): Name of the vendor contact. Max 128 characters.","example":"John Doe"},"vendor_contact_phone":{"type":"string","description":"vendor_contact_phone (optional): Phone number of the vendor contact. Max 64 characters.","example":"123456789"},"vendor_contact_email":{"type":"string","description":"vendor_contact_email (optional): Email address of the vendor contact. Max 128 characters.","example":"john@acmecorp.com"},"vendor_address":{"type":"string","description":"vendor_address (optional): Address of the vendor. Max 250 characters."},"vendor_city":{"type":"string","description":"vendor_city (optional): City of the vendor. Max 100 characters."},"vendor_state":{"type":"string","description":"vendor_state (optional): State of the vendor. Max 100 characters."},"vendor_country":{"type":"string","description":"vendor_country (optional): Country of the vendor. Max 100 characters."},"vendor_zipcode":{"type":"string","description":"vendor_zipcode (optional): Zipcode of the vendor. Max 64 characters."}}},"VendorProductAssociationRequestModel":{"required":["product_name","quantity"],"type":"object","properties":{"product_name":{"type":"string","description":"product_name (required): Name of the product to associate with the vendor.","example":"ThinkPad X1 Carbon"},"price":{"type":"number","description":"price (optional): Unit price of the product from this vendor. Must be >= 0 and <= 99999999.99.","format":"double","example":999.99},"quantity":{"type":"integer","description":"quantity (required): Quantity available from this vendor. Must be a whole number between 1 and 99999999.","format":"int32","example":10},"warranty_years":{"type":"integer","description":"warranty_years (optional): Warranty period in years (0–99).","format":"int32","example":1},"warranty_months":{"type":"integer","description":"warranty_months (optional): Warranty period in months (0–11).","format":"int32","example":6}}},"VendorProductAssociationResponseModel":{"type":"object","properties":{"message":{"type":"string","description":"Success message.","example":"Product 'ThinkPad X1 Carbon' successfully associated with vendor 'Acme Corp'"},"product_name":{"type":"string","description":"Name of the associated product.","example":"ThinkPad X1 Carbon"},"vendor_name":{"type":"string","description":"Name of the vendor.","example":"Acme Corp"},"price":{"type":"number","description":"Unit price of the product.","format":"double","example":1299.99},"quantity":{"type":"integer","description":"Quantity of the product.","format":"int32","example":10},"warranty_years":{"type":"integer","description":"Warranty period in years.","format":"int32","example":3},"warranty_months":{"type":"integer","description":"Warranty period in months.","format":"int32","example":0}}},"SoftwareRequestModel":{"required":["software_name"],"type":"object","properties":{"software_name":{"type":"string","description":"software_name (required): Name of the software. Max 255 characters.","example":"Microsoft Office"},"description":{"type":"string","description":"description (optional): Description of the software. Max 2000 characters.","example":"Office productivity suite"},"status":{"type":"string","description":"status (optional): Status of the software. Must match a configured status option.","example":"Managed"},"type":{"type":"string","description":"type (optional): Type of the software. Must match a configured type option.","example":"SaaS"},"vendor":{"type":"string","description":"vendor (optional): Name of the vendor associated with this software.","example":"Microsoft"},"managed_by_group":{"type":"string","description":"managed_by_group (optional): Name of the group managing this software.","example":"IT Operations"},"managed_by_agent":{"type":"string","description":"managed_by_agent (optional): Email of the agent managing this software.","example":"john.doe@company.com"},"expiration":{"type":"string","description":"expiration (optional): Expiration date of the software license in yyyy-MM-dd format.","example":"2026-12-31"},"custom_fields":{"type":"object","additionalProperties":{"type":"object","description":"custom_fields (optional): Custom field values to set for this software. Keys are field names, values are field values. For dropdown fields, provide the option name. For number fields, provide an integer value. For decimal fields, provide a decimal number. For date fields, provide a date in yyyy-MM-dd format. For checkbox fields, provide true or false.","example":{"License Key":"XXXX-XXXX-XXXX","Seats":"50"}},"description":"custom_fields (optional): Custom field values to set for this software. Keys are field names, values are field values. For dropdown fields, provide the option name. For number fields, provide an integer value. For decimal fields, provide a decimal number. For date fields, provide a date in yyyy-MM-dd format. For checkbox fields, provide true or false.","example":{"License Key":"XXXX-XXXX-XXXX","Seats":"50"}}},"description":"Request model for creating or updating a software record."},"SoftwareAddUsersRequestModel":{"required":["add"],"type":"object","properties":{"add":{"type":"array","description":"add (required): Array of email addresses to add as users of the software.","example":["user1@example.com","user2@example.com"],"items":{"type":"string","description":"add (required): Array of email addresses to add as users of the software.","example":"[\"user1@example.com\",\"user2@example.com\"]"}}},"description":"Request model for adding users to a software."},"SoftwareFieldRequestModel":{"required":["name","type"],"type":"object","properties":{"name":{"type":"string","description":"name (required): Name of the software field. Max 50 characters.","example":"License Key"},"type":{"type":"integer","description":"type (required): Field type. 1=Text Input, 2=Paragraph, 3=Checkbox, 4=Dropdown, 5=Date, 6=Number, 7=Decimal.","format":"int32","example":4},"is_required":{"type":"boolean","description":"is_required (optional): Whether this field is required. Defaults to false.","example":false},"dropdown_choices":{"type":"array","description":"dropdown_choices (conditional): Array of option strings. Required when type=4. Each option must not exceed 50 characters.","items":{"type":"string","description":"dropdown_choices (conditional): Array of option strings. Required when type=4. Each option must not exceed 50 characters."}}}},"ProductRequestModel":{"required":["asset_type_name","mode_of_procurement","name","status"],"type":"object","properties":{"name":{"type":"string","description":"name (required): Name of the product. Max 128 characters.","example":"ThinkPad X1 Carbon"},"asset_type_name":{"type":"string","description":"asset_type_name (required): Name of the asset type this product belongs to.","example":"Laptop"},"manufacturer":{"type":"string","description":"manufacturer (optional): Manufacturer of the product. Max 128 characters.","example":"Lenovo"},"status":{"type":"integer","description":"status (required): Product status. 1 = In Production, 2 = In Pipeline, 3 = Retired.","format":"int32","example":1},"depreciation_name":{"type":"string","description":"depreciation_name (optional): Name of the depreciation schedule to apply. Leave empty or omit for none.","example":"5-Year Straight Line"},"description":{"type":"string","description":"description (optional): Description of the product. Max 250 characters.","example":"Business ultrabook with 14-inch display."},"mode_of_procurement":{"type":"integer","description":"mode_of_procurement (required): Mode of procurement. 1 = Buy, 2 = Lease.","format":"int32","example":1}}},"LocationRequestModel":{"required":["location_name"],"type":"object","properties":{"location_name":{"type":"string","description":"location_name (required): Name of the location. Max 128 characters.","example":"New York Office"},"parent_location_name":{"type":"string","description":"parent_location_name (optional): Name of the parent location. Omit or leave empty to create a root-level location. Cannot be changed after creation.","example":"US"},"contact_name":{"type":"string","description":"contact_name (optional): Contact name at this location. Max 128 characters.","example":"John Doe"},"contact_email":{"type":"string","description":"contact_email (optional): Contact email at this location. Max 128 characters.","example":"john@example.com"},"contact_phone":{"type":"string","description":"contact_phone (optional): Contact phone at this location. Max 64 characters.","example":"+1-555-0100"},"location_address":{"type":"string","description":"location_address (optional): Street address of this location. Max 250 characters.","example":"123 Main St"},"location_city":{"type":"string","description":"location_city (optional): City of this location. Max 100 characters.","example":"New York"},"location_state":{"type":"string","description":"location_state (optional): State of this location. Max 100 characters.","example":"NY"},"location_country":{"type":"string","description":"location_country (optional): Country of this location. Max 100 characters.","example":"USA"},"location_zipcode":{"type":"string","description":"location_zipcode (optional): Zipcode of this location. Max 64 characters.","example":"10001"}}},"DepreciationRequestModel":{"required":["depreciation_name","depreciation_type","useful_life_in_years"],"type":"object","properties":{"depreciation_name":{"type":"string","description":"depreciation_name (required): Name of the depreciation method. Max 128 characters.","example":"DB-5"},"depreciation_type":{"type":"integer","description":"depreciation_type (required): Depreciation type. 1 = Declining Balance, 2 = Straight Line, 3 = Sum of Years' Digits. Cannot be changed after creation.","format":"int32","example":1},"useful_life_in_years":{"type":"integer","description":"useful_life_in_years (required): Useful life in years (1–100).","format":"int32","example":5},"depreciation_description":{"type":"string","description":"depreciation_description (optional): Description of the depreciation method. Max 250 characters."}}},"AssetCreateIdentification":{"required":["asset_name","asset_type"],"type":"object","properties":{"asset_name":{"type":"string","description":"asset_name (required): Name of the asset. Max 256 characters.","example":"ThinkPad-001"},"asset_tag":{"type":"string","description":"asset_tag (optional): Unique asset tag. Max 30 characters. Auto-generated if omitted and auto-generation is enabled. Must be unique if provided.","example":"IT-0001"},"asset_type":{"type":"string","description":"asset_type (required): Name of the asset type.","example":"Laptop"},"asset_description":{"type":"string","description":"asset_description (optional): Description of the asset. Max 4000 characters.","example":"Developer workstation"},"impact":{"type":"string","description":"impact (optional): Impact level. Allowed values: Low, Medium, High.","example":"Medium"},"end_of_life":{"type":"string","description":"end_of_life (optional): End of life date in yyyy-MM-dd format.","example":"2028-12-31"}},"description":"identification (required): Core identification fields of the asset."},"AssetCreateOwnership":{"type":"object","properties":{"location":{"type":"string","description":"location (optional): Name of the location.","example":"HQ"},"managed_by_group":{"type":"string","description":"managed_by_group (optional): Name of the group managing this asset.","example":"IT Support"},"managed_by_agent":{"type":"string","description":"managed_by_agent (optional): Email of the agent managing this asset.","example":"agent@example.com"},"company":{"type":"string","description":"company (optional): Name of the company this asset belongs to.","example":"Acme Corp"},"department":{"type":"string","description":"department (optional): Name of the department.","example":"Engineering"},"used_by":{"type":"string","description":"used_by (optional): Email of the contact using this asset.","example":"user@example.com"},"assigned_on":{"type":"string","description":"assigned_on (optional): Date the asset was assigned in yyyy-MM-dd format.","example":"2024-01-15"}},"description":"ownership (required): Ownership and assignment fields of the asset."},"AssetRequestModel":{"type":"object","properties":{"identification":{"$ref":"#/components/schemas/AssetCreateIdentification"},"ownership":{"$ref":"#/components/schemas/AssetCreateOwnership"},"asset_type_details":{"type":"object","additionalProperties":{"type":"object","additionalProperties":{"type":"object","description":"asset_type_details (required): Type-specific field sections keyed by snake_case type name. All ancestor types in the hierarchy must be present.","example":{"hardware":{"serial_number":"SN-XYZ-001","asset_state":"In Use","purchase_date":"2024-01-10","warranty_expiry_date":"2027-01-10"},"laptop":{"ram":"16GB","storage":"512GB SSD"}}},"description":"asset_type_details (required): Type-specific field sections keyed by snake_case type name. All ancestor types in the hierarchy must be present.","example":{"hardware":{"serial_number":"SN-XYZ-001","asset_state":"In Use","purchase_date":"2024-01-10","warranty_expiry_date":"2027-01-10"},"laptop":{"ram":"16GB","storage":"512GB SSD"}}},"description":"asset_type_details (required): Type-specific field sections keyed by snake_case type name. All ancestor types in the hierarchy must be present.","example":{"hardware":{"serial_number":"SN-XYZ-001","asset_state":"In Use","purchase_date":"2024-01-10","warranty_expiry_date":"2027-01-10"},"laptop":{"ram":"16GB","storage":"512GB SSD"}}}}},"AssetTicketAssociateRequestModel":{"required":["ticket_numbers"],"type":"object","properties":{"ticket_numbers":{"type":"array","description":"ticket_numbers (required): Array of ticket numbers to associate with the asset. Maximum 10 per request.","example":[101,102,103],"items":{"type":"integer","description":"ticket_numbers (required): Array of ticket numbers to associate with the asset. Maximum 10 per request.","format":"int64"}}},"description":"Request model for associating tickets with an asset"},"AssetTypeRequestModel":{"required":["name"],"type":"object","properties":{"name":{"type":"string","description":"name (required): Name of the new asset type. Must not exceed 128 characters.","example":"Desktop"},"asset_parent_type_name":{"type":"string","description":"asset_parent_type_name (optional): Name of the parent asset type to nest this type under. Omit or pass empty string to create a top-level type.","example":"Computer"}}},"AssetTypeFieldRequestModel":{"required":["field_order","name","type"],"type":"object","properties":{"name":{"type":"string","description":"name (required): Name of the field. Must not exceed 50 characters.","example":"Serial Number"},"type":{"type":"integer","description":"type (required): Field type. 1=Text, 2=Paragraph, 3=Checkbox, 4=Dropdown, 5=Date, 6=Number, 7=Decimal.","format":"int32","example":4},"is_required":{"type":"boolean","description":"is_required (optional): Whether the field is required. Defaults to false.","example":false},"field_order":{"type":"integer","description":"field_order (required): Display order of the field within the asset type. Must be a positive integer.","format":"int32","example":1},"dropdown_choices":{"type":"array","description":"dropdown_choices (conditional): Dropdown choices. Required when type=4. Each choice must not exceed 50 characters.","items":{"type":"string","description":"dropdown_choices (conditional): Dropdown choices. Required when type=4. Each choice must not exceed 50 characters."}}}},"TimeEntriesListModel":{"type":"object","properties":{"count":{"type":"integer","description":"Total number of tickets","format":"int32","example":30},"content":{"type":"array","description":"List of tickets","example":[{"id":423,"ticket_number":10,"agent_email":"agent@gmail.com","note":"Sample note..","billable":1,"created_time":"2022-12-12 02:40:51","updated_time":"2022-12-12 02:40:51","start_time":"2022-12-12 00:00:00","time_spent_in_minutes":120,"timer_running":1,"additional_info":"Sample additional information","category_name":"Development"}],"items":{"$ref":"#/components/schemas/TimeEntryModel"}}}},"TicketList":{"type":"object","properties":{"count":{"type":"integer","description":"Total number of tickets","format":"int32","example":150},"tickets":{"type":"array","description":"List of tickets","example":[{"ticket_number":10,"contact_email":"test@gmail.com","contact_name":"John Doe","subject":"Printer not working","description":"<div>Please fix it</div>","description_text":"Please fix it","status":"open","priority":5,"type":"Question","source":"1","form_name":"Create Ticket","form_is_deleted":0,"assigned_to":"agent@gmail.com","company_name":"Contoso Company","department_name":"Developers","sla":"Standard sla","group":"Sales","category":"Billing","subcategory":"Disputed Charge","created_on":"2023-01-01 00:00:00","updated_on":"2023-01-02 00:00:00","updated_by":"agent@example.com","updated_by_type":2,"closed_by":"agent@example.com","closed_by_type":2,"resolved_on":"2023-01-03 00:00:00","closed_on":"2023-01-04 00:00:00","due_date":"2023-01-03 00:00:00","completed_within_sla":true,"status_open_duration":120,"status_pending_duration":60,"status_open_biz_hrs_duration":45,"status_pending_biz_hrs_duration":30,"first_response_time":"2023-01-02 00:00:00","first_assigned_time":"2023-01-02 00:00:00","first_assigned_duration":1440,"resolved_duration":2880,"first_replied_duration":1440,"closed_duration":4320,"custom_fields":{"cf_department":"string","cf_dob":"string","cf_employee_id":0},"survey_rating":{"sv_name":"Test survey","sv_answered":true,"sv_type":1,"sv_cs_scale":7,"sv_cs_neutral_type":2,"sv_question":"How would you rate our customer service?","sv_rating":3,"sv_cs_question_2":"How would you rate our expertise?","sv_cs_rating_2":3,"sv_cs_question_3":"How would you rate your overall satisfaction with the help you've received?","sv_cs_rating_3":3,"sv_additional_comments_title":"Add any additional comments you may have about the support received","sv_additional_comments_response":"Good customer service","sv_sent_on":"2023-10-01 00:01:00","sv_rated_on":"2023-10-02 00:01:30"},"watchers":["johndoe@contoso.com"],"share_to":["johndoe@contoso.com"],"conversation_count":5}],"items":{"$ref":"#/components/schemas/TicketDetailsModel"}}}},"ConversationMessageModel":{"type":"object","properties":{"id":{"type":"integer","description":"The unique ID of the conversation message","format":"int64","example":34372256829},"ticket_number":{"type":"integer","description":"The unique ID of the ticket","format":"int32","example":10},"created_by":{"type":"string","description":"Email of the user who sent the message","example":"test@example.com"},"creator_name":{"type":"string","description":"Name of the user who sent the message","example":"Test User"},"type":{"type":"string","description":"Type of the message (reply, note or forward)","example":"reply"},"sender_type":{"type":"string","description":"Type of the user (agent or contact)","example":"agent"},"public_note":{"type":"boolean","description":"Whether the note is public. Null for replies and forwards","nullable":true,"example":false},"cc_address":{"type":"string","description":"CC addresses of the message","example":"cc1@example.com,cc2@example.com"},"bcc_address":{"type":"string","description":"BCC addresses of the message","example":"bcc1@example.com,bcc2@example.com"},"to_address":{"type":"string","description":"To addresses of the message","example":"to@example.com"},"notified_agents":{"type":"string","description":"List of notified agents","example":"agent1@example.com,agent2@example.com"},"body":{"type":"string","description":"Body of the message","example":"<p>This is the message body<p>"},"body_text":{"type":"string","description":"Text version of the body","example":"This is the message body"},"attachments_count":{"type":"integer","description":"Count of attachments","format":"int32","example":2},"attachments":{"type":"array","description":"Attachment details","example":"[{file_name: test.jpeg,file_size: 7697,file_type: image/jpeg,attachment_url: https://exampleurl.com/test.jpeg,}]","items":{"type":"object","description":"Attachment details","example":"[{file_name: test.jpeg,file_size: 7697,file_type: image/jpeg,attachment_url: https://exampleurl.com/test.jpeg,}]"}},"created_on":{"type":"string","description":"Creation date of the message","example":"2023-10-01 12:34:56"},"is_email_deliveribility_failiure":{"type":"boolean","description":"Indicates if email deliverability failed","example":true},"email_bounce_type":{"type":"string","description":"Type of email bounce","example":"permanent"},"email_bounce_status":{"type":"string","description":"Status of email bounce","example":"5.4.1"}},"description":"List of conversations"},"TicketConversationsModel":{"type":"object","properties":{"count":{"type":"integer","description":"Total number of conversations excluding description","format":"int32","example":10},"agent_reply_count":{"type":"integer","description":"Total number of agent replies","format":"int32","example":3},"contact_reply_count":{"type":"integer","description":"Total number of contact replies","format":"int32","example":2},"public_note_count":{"type":"integer","description":"Total number of public notes","format":"int32","example":1},"private_note_count":{"type":"integer","description":"Total number of private notes","format":"int32","example":2},"forward_message_count":{"type":"integer","description":"Total number of forwarded messages","format":"int32","example":1},"conversations":{"type":"array","description":"List of conversations","items":{"$ref":"#/components/schemas/ConversationMessageModel"}}}},"Actor":{"type":"object","properties":{"type":{"type":"string","description":"agent, contact, system, or automation","example":"agent"},"name":{"type":"string","description":"Display name. For automation this is always System.","example":"test"},"email":{"type":"string","description":"Email when available; null for system/automation","nullable":true,"example":"test@gmail.com"}},"description":"Actor without internal user IDs"},"TicketActivitiesModel":{"type":"object","properties":{"ticket_number":{"type":"integer","description":"Ticket number whose activities were requested","format":"int64","example":10},"ticket_subject":{"type":"string","description":"Current subject of the ticket","example":"Printer not working"},"count":{"type":"integer","description":"Total matching activities for the ticket","format":"int32","example":128},"activities":{"type":"array","description":"Activity rows for this page (up to 50)","items":{"$ref":"#/components/schemas/TicketActivityItemModel"}},"next_page":{"type":"string","description":"Absolute URL for the next page when more activities exist. Omitted on the last page.","example":"https://host/apis/v3/tickets/activities?ticket_number=10&offset=50&sort_by=earliest_on_top"}},"description":"Paginated ticket activities response","example":{"ticket_number":10,"ticket_subject":"Printer not working","count":2,"activities":[{"activity_type":"ticket_field_updated","entity":"status","created_at":"2026-08-18 01:26:15","actor":{"type":"agent","name":"test","email":"test@gmail.com"},"actions":[{"prev_value":"Open","value":"Pending"}]},{"activity_type":"automation_triggered","entity":"Rule number 3","created_at":"2026-09-17 11:39:55","actor":{"type":"automation","name":"System","email":null},"actions":[{"field":"priority","value":"High"},{"field":"assign_to","value":"manager@contoso.com"}]}],"next_page":"https://host/apis/v3/tickets/activities?ticket_number=10&offset=50&sort_by=earliest_on_top"}},"TicketActivityItemModel":{"type":"object","properties":{"activity_type":{"type":"string","description":"Stable English activity type slug","example":"ticket_field_updated"},"entity":{"type":"string","description":"Entity related to the activity (for example status, or the automation rule name). Null when the activity is ticket-level.","nullable":true,"example":"status"},"created_at":{"type":"string","description":"Activity time in yyyy-MM-dd HH:mm:ss","example":"2026-08-18 01:26:15"},"actor":{"$ref":"#/components/schemas/Actor"},"actions":{"type":"object","description":"Type-specific payload as an array. For ticket field updates: prev_value/value. For automation: { field, value } items. Never contains internal IDs."},"more_info":{"type":"object","description":"Optional extra context when present. Omitted when empty. Known keys include: due_by (status/SLA resolve due), ticket_numbers (spam/recover), type (settings delete / agent deactivated / removed-from-group slug), group (agent_removed_from_group), subcategory (null when category_and_subcategory_deleted), note_updated / additional_info_update (time entry update), source (closed by contact: support_portal or support_bot).","nullable":true,"example":{"due_by":"2026-08-20 18:00:00"}}},"description":"A single ticket activity","example":{"activity_type":"ticket_field_updated","entity":"status","created_at":"2026-08-18 01:26:15","actor":{"type":"agent","name":"test","email":"test@gmail.com"},"actions":[{"prev_value":"Open","value":"Pending"}],"more_info":{"due_by":"2026-08-20 18:00:00"}}},"AdditionalQuestions":{"type":"object","properties":{"survey_question":{"type":"string","example":"How would you rate our customer service?"},"cs_question_2":{"type":"string","example":"How would you rate our expertise?"},"cs_question_3":{"type":"string","example":"How would you rate your overall satisfaction with the help you've received?"}},"description":"Additional questions added to the survey"},"SurveyDetailsModel":{"type":"object","properties":{"survey_name":{"type":"string","description":"Name of the survey","example":"Test survey"},"survey_type":{"type":"integer","description":"Type of the survey","format":"int32","example":1},"cs_survey_scale":{"type":"integer","description":"Scale of the survey","format":"int32","example":5},"cs_rating_order":{"type":"integer","description":"Rating order of the survey","format":"int32","example":1},"cs_neutral_type":{"type":"integer","description":"Neutral type of the survey","format":"int32","example":2},"cs_scale_point_map":{"type":"object","additionalProperties":{"type":"string","description":"Map of scale points of the survey to their corresponding descriptions","example":"{\"3\":\"Extremely satisfied\",\"2\":\"Mostly satisfied\",\"1\":\"Slightly satisfied\",\"0\":\"Neither satisfied nor dissatisfied\",\"-1\":\"Slightly dissatisfied\",\"-2\":\"Mostly dissatisfied\",\"-3\":\"Extremely dissatisfied\"}"},"description":"Map of scale points of the survey to their corresponding descriptions","example":{"3":"Extremely satisfied","2":"Mostly satisfied","1":"Slightly satisfied","0":"Neither satisfied nor dissatisfied","-1":"Slightly dissatisfied","-2":"Mostly dissatisfied","-3":"Extremely dissatisfied"}},"thankyou_text":{"type":"string","description":"Thank you text of the survey","example":"Thank you for your valuable feedback."},"questions":{"$ref":"#/components/schemas/AdditionalQuestions"},"include_additional_comments":{"type":"boolean","description":"Indicates if additional comments are included in the survey","example":true},"additional_comments_title":{"type":"string","description":"Additional comment title of the survey","example":"Add any additional comments you may have about the support received."},"notify_type":{"type":"integer","description":"Notify type of the survey","format":"int32","example":8},"is_active":{"type":"boolean","description":"Indicates if survey is primary","example":true},"is_deleted":{"type":"boolean","description":"Indicates if survey is deleted","example":false}}},"SurveyListModel":{"type":"object","properties":{"count":{"type":"integer","description":"Total number of surveys","format":"int32","example":5},"surveys":{"type":"array","description":"List of surveys","items":{"$ref":"#/components/schemas/SurveyDetailsModel"}}}},"SurveyRatings":{"type":"object","properties":{"survey_question":{"type":"string","example":"How would you rate our customer service?"},"rating":{"type":"integer","format":"int32","example":3},"cs_question_2":{"type":"string","example":"How would you rate our expertise?"},"cs_rating_2":{"type":"integer","format":"int32","example":3},"cs_question_3":{"type":"string","example":"How would you rate your overall satisfaction with the help you've received?"},"cs_rating_3":{"type":"integer","format":"int32","example":3}},"description":"Survey questions and their ratings"},"SurveyRatingsDetailsModel":{"type":"object","properties":{"ticket_number":{"type":"integer","description":"The unique ID of the ticket","format":"int32","example":10},"survey_name":{"type":"string","description":"Name of the survey","example":"Test Survey"},"survey_type":{"type":"integer","description":"Type of the survey","format":"int32","example":1},"contact_email":{"type":"string","description":"Email of the contact","example":"contact@desk365.io"},"agent_assigned":{"type":"string","description":"Agent assigned to the ticket","example":"agent@desk365.io"},"cs_neutral_type":{"type":"integer","description":"Neutral type of the survey","format":"int32","example":2},"ratings":{"$ref":"#/components/schemas/SurveyRatings"},"additional_comments_title":{"type":"string","description":"Additional comments title of the survey","example":"Add any additional comments you may have about the support received."},"additional_comments_response":{"type":"string","description":"Additional comments response of the survey","example":"Excellent Support"},"sent_on":{"type":"string","description":"Survey sent timestamp (in format yyyy-mm-dd hh:mm:ss).","example":"2023-01-01 00:00:00"},"responded_on":{"type":"string","description":"Survey responded timestamp (in format yyyy-mm-dd hh:mm:ss).","example":"2023-01-01 01:00:00"}},"description":"List of survey ratings"},"SurveyRatingsListModel":{"type":"object","properties":{"count":{"type":"integer","description":"Total number of surveys","format":"int32","example":50},"survey_ratings":{"type":"array","description":"List of survey ratings","items":{"$ref":"#/components/schemas/SurveyRatingsDetailsModel"}}}},"KBArticleListModel":{"type":"object","properties":{"count":{"type":"integer","description":"Total number of articles live","format":"int32","example":20},"article_titles":{"type":"array","description":"List of live article titles","example":["How to reset password?","How to create a ticket?","How to update profile?"],"items":{"type":"string","description":"List of live article titles","example":"[\"How to reset password?\",\"How to create a ticket?\",\"How to update profile?\"]"}}}},"ContractDetailsModel":{"type":"object","properties":{"contract_name":{"type":"string","description":"Contract name","example":"Premium Support Contract"},"description":{"type":"string","description":"Contract description","example":"Quarterly support contract"},"company_name":{"type":"string","description":"Company name","example":"Acme Inc"},"sla_name":{"type":"string","description":"SLA name","example":"Standard SLA"},"start_date":{"type":"string","description":"Contract start date","example":"2026-01-01"},"end_date":{"type":"string","description":"Contract end date","example":"2026-12-31"},"is_active":{"type":"boolean","description":"Whether the contract is active","example":true},"setup_fees":{"type":"number","description":"Setup fees","format":"double","example":200},"reference_number":{"type":"string","description":"Contract reference number","example":"CTR-1001"},"bill_cycle":{"type":"integer","description":"Bill cycle: Monthly = 1, Contract Length = 2","format":"int32","example":1},"contract_type":{"type":"integer","description":"Contract type: Block Hours = 2, Block Tickets = 3","format":"int32","example":2},"contract_category":{"type":"string","description":"Contract category name","example":"Managed Services"},"after_hour_included":{"type":"boolean","description":"Whether after-hours work is included","example":false},"contract_hours":{"type":"integer","description":"Configured contract hours for block-hour contracts","format":"int32","example":600},"min_increment":{"type":"integer","description":"Minimum increment for block-hour contracts","format":"int32","example":15},"rollover_unused_hours":{"type":"integer","description":"Whether unused hours rollover","format":"int32","example":1},"rollover_type":{"type":"integer","description":"Rollover type: Monthly = 1","format":"int32","example":1},"rollover_value":{"type":"integer","description":"Rollover value","format":"int32","example":6},"contract_used_mins":{"type":"integer","description":"Used contract minutes","format":"int32","example":120},"total_available_mins":{"type":"integer","description":"Total available minutes","format":"int32","example":36000},"total_rollover_mins":{"type":"integer","description":"Total rollover minutes","format":"int32","example":600},"extra_used_mins":{"type":"integer","description":"Extra used minutes","format":"int32","example":30},"rollover_details":{"type":"array","items":{"$ref":"#/components/schemas/RolloverDetails"}},"usage_hours":{"type":"array","items":{"$ref":"#/components/schemas/UsageHours"}},"contract_tickets":{"type":"integer","description":"Configured contract tickets for block-ticket contracts","format":"int32","example":100},"contract_tickets_created":{"type":"integer","description":"Created tickets counted against the contract","format":"int32","example":25},"total_available_tickets":{"type":"integer","description":"Total available tickets","format":"int32","example":75},"extra_tickets_created":{"type":"integer","description":"Extra tickets created beyond contract availability","format":"int32","example":5},"usage_tickets":{"type":"array","items":{"$ref":"#/components/schemas/UsageTickets"}}}},"ContractListModel":{"type":"object","properties":{"count":{"type":"integer","description":"Total number of contracts","format":"int32","example":15},"contracts":{"type":"array","items":{"$ref":"#/components/schemas/ContractDetailsModel"}}}},"RolloverDetails":{"type":"object","properties":{"year":{"type":"integer","format":"int32"},"month":{"type":"integer","format":"int32"},"contract_mins":{"type":"integer","format":"int32"},"contract_mins_used":{"type":"integer","format":"int32"},"rollover_mins":{"type":"integer","format":"int32"},"rollover_mins_used":{"type":"integer","format":"int32"},"rollover_mins_available":{"type":"integer","format":"int32"}}},"UsageHours":{"type":"object","properties":{"year":{"type":"integer","format":"int32"},"month":{"type":"integer","format":"int32"},"contract_mins":{"type":"integer","format":"int32"},"contract_mins_used":{"type":"integer","format":"int32"},"rollover_mins":{"type":"integer","format":"int32"},"rollover_mins_used":{"type":"integer","format":"int32"},"rollover_mins_available":{"type":"integer","format":"int32"},"late_entry_mins":{"type":"integer","format":"int32"},"extra_used_mins":{"type":"integer","format":"int32"}}},"UsageTickets":{"type":"object","properties":{"year":{"type":"integer","format":"int32"},"month":{"type":"integer","format":"int32"},"contract_tickets":{"type":"integer","format":"int32"},"contract_tickets_used":{"type":"integer","format":"int32"},"extra_created_tickets":{"type":"integer","format":"int32"},"late_entry_tickets":{"type":"integer","format":"int32"}}},"ContactList":{"type":"object","properties":{"count":{"type":"integer","description":"Total number of contacts","format":"int32","example":150},"content":{"type":"array","description":"List of contacts","example":[{"name":"Joe","primary_email":"joe@contoso.com","secondary_emails":"joe@contoso.onmicrosoft.com","title":"Manager","mobile":"123456789","phone":"123456789","company_name":"Contoso","primary_department":"Developers","secondary_departments":"Sales, Marketing","created_on":"2023-01-01 23:00:00","updated_on":"2023-01-01 23:00:00","custom_fields":{"cf_dob":"string","cf_employee_id":0}}],"items":{"$ref":"#/components/schemas/ContactResponseModel"}}}},"CompanyList":{"type":"object","properties":{"count":{"type":"integer","description":"Total number of companies","format":"int32","example":150},"content":{"type":"array","description":"List of companies","example":[{"name":"Contoso","description":"Company description.","phone":"123456789","address":"Company address","city":"City","state":"State","country":"Country","zipcode":"Zipcode","sla":"Sla for the company","domains":"Domains of the company.","created_on":"2023-01-01 23:00:00","updated_on":"2023-01-01 23:00:00","custom_fields":{"cf_dob":"string","cf_employee_id":0}}],"items":{"$ref":"#/components/schemas/CompanyResponseModel"}}}},"CompanyResponseModel":{"type":"object","properties":{"name":{"type":"string","description":"Name of the company.","example":"Contoso"},"description":{"type":"string","description":"Description for the company."},"phone":{"type":"string","description":"Phone number of the contact.","example":"123456789"},"address":{"type":"string","description":"Address of the company."},"city":{"type":"string","description":"City of the company."},"state":{"type":"string","description":"State of the company."},"country":{"type":"string","description":"Country of the company."},"zipcode":{"type":"string","description":"Zipcode of the company."},"sla":{"type":"string","description":"Sla associated with the company."},"domains":{"type":"string","description":"Domains of the company. Email addresses of contacts that contain this domain will be associated with that company automatically.","example":"contoso.com"},"created_on":{"type":"string","description":"Company created time.","example":"2023-01-01 23:00:00"},"updated_on":{"type":"string","description":"Company updated time.","example":"2023-01-01 23:00:00"},"custom_fields":{"$ref":"#/components/schemas/CustomFields"}}},"VendorListItem":{"type":"object","properties":{"vendor_name":{"type":"string","description":"Name of the vendor.","example":"Acme Corp"},"vendor_description":{"type":"string","description":"Description of the vendor."},"vendor_contact_name":{"type":"string","description":"Name of the vendor contact.","example":"John Doe"},"vendor_contact_email":{"type":"string","description":"Email address of the vendor contact.","example":"john@acmecorp.com"},"vendor_contact_phone":{"type":"string","description":"Phone number of the vendor contact.","example":"123456789"},"vendor_address":{"type":"string","description":"Address of the vendor."}},"description":"List of vendors."},"VendorListModel":{"type":"object","properties":{"vendors":{"type":"array","description":"List of vendors.","items":{"$ref":"#/components/schemas/VendorListItem"}},"count":{"type":"integer","description":"Total number of vendors.","format":"int32","example":10}}},"AssociatedProduct":{"type":"object","properties":{"product_name":{"type":"string","description":"Name of the associated product.","example":"ThinkPad X1 Carbon"},"quantity":{"type":"integer","description":"Quantity of this product from the vendor.","format":"int32","example":10}},"description":"Products associated with this vendor. Each entry contains product_name and quantity."},"VendorResponseModel":{"type":"object","properties":{"vendor_name":{"type":"string","description":"Name of the vendor.","example":"Acme Corp"},"vendor_description":{"type":"string","description":"Description of the vendor."},"vendor_contact_name":{"type":"string","description":"Name of the vendor contact.","example":"John Doe"},"vendor_contact_phone":{"type":"string","description":"Phone number of the vendor contact.","example":"123456789"},"vendor_contact_email":{"type":"string","description":"Email address of the vendor contact.","example":"john@acmecorp.com"},"vendor_address":{"type":"string","description":"Address of the vendor."},"vendor_city":{"type":"string","description":"City of the vendor."},"vendor_state":{"type":"string","description":"State of the vendor."},"vendor_country":{"type":"string","description":"Country of the vendor."},"vendor_zipcode":{"type":"string","description":"Zipcode of the vendor."},"associated_products":{"type":"array","description":"Products associated with this vendor. Each entry contains product_name and quantity.","items":{"$ref":"#/components/schemas/AssociatedProduct"}}}},"SoftwareListItem":{"type":"object","properties":{"software_num":{"type":"integer","description":"Auto-generated software number.","format":"int64","example":1001},"software_name":{"type":"string","description":"Name of the software.","example":"Microsoft Office"},"status":{"type":"string","description":"Status of the software.","example":"Managed"},"type":{"type":"string","description":"Type of the software.","example":"SaaS"},"vendor":{"type":"string","description":"Name of the associated vendor.","example":"Microsoft"},"managed_by_group":{"type":"string","description":"Name of the group managing this software.","example":"IT Operations"},"managed_by_agent":{"type":"string","description":"Name of the agent managing this software.","example":"John Doe"},"expiration":{"type":"string","description":"Expiration date of the software license.","example":"2026-12-31"},"created_on":{"type":"string","description":"Timestamp when this software was created.","example":"2024-01-01 10:00:00"},"created_by":{"type":"string","description":"Name of the agent who created this software.","example":"John Doe"},"created_by_type":{"type":"string","description":"Type of the creator: Agent, Intune or API.","example":"Agent"}},"description":"Summary item for a software in the list."},"SoftwareListModel":{"type":"object","properties":{"softwares":{"type":"array","description":"List of softwares.","items":{"$ref":"#/components/schemas/SoftwareListItem"}},"count":{"type":"integer","description":"Total number of softwares matching the query.","format":"int32","example":42}},"description":"Paginated list response for softwares."},"SoftwareFieldListItem":{"type":"object","properties":{"field_name":{"type":"string","description":"Name of the software field."},"field_type":{"type":"integer","description":"Field type: 1=Text Input, 2=Paragraph, 3=Checkbox, 4=Dropdown, 5=Date, 6=Number, 7=Decimal.","format":"int32"},"is_required":{"type":"boolean","description":"Whether this field is required."},"field_order":{"type":"integer","description":"Display order of the field.","format":"int32"},"is_default":{"type":"boolean","description":"Whether this is a system-default field that cannot be deleted."}},"description":"List of software fields."},"SoftwareFieldListModel":{"type":"object","properties":{"software_fields":{"type":"array","description":"List of software fields.","items":{"$ref":"#/components/schemas/SoftwareFieldListItem"}},"total":{"type":"integer","description":"Total number of software fields.","format":"int32"}}},"ProductListModel":{"type":"object","properties":{"products":{"type":"array","description":"List of products.","items":{"$ref":"#/components/schemas/ProductResponseModel"}},"total":{"type":"integer","description":"Total number of products.","format":"int32","example":12}}},"LocationListItem":{"type":"object","properties":{"location_name":{"type":"string","description":"Name of the location.","example":"New York Office"},"parent_location_name":{"type":"string","description":"Name of the parent location. Empty if root-level.","example":"US"},"contact_name":{"type":"string","description":"Contact name at this location.","example":"John Doe"},"contact_email":{"type":"string","description":"Contact email at this location.","example":"john@example.com"},"contact_phone":{"type":"string","description":"Contact phone at this location.","example":"+1-555-0100"},"location_address":{"type":"string","description":"Street address of this location.","example":"123 Main St"},"location_city":{"type":"string","description":"City of this location.","example":"New York"},"location_state":{"type":"string","description":"State of this location.","example":"NY"},"location_country":{"type":"string","description":"Country of this location.","example":"USA"},"location_zipcode":{"type":"string","description":"Zipcode of this location.","example":"10001"}},"description":"Summary item for a location in the list."},"LocationListModel":{"type":"object","properties":{"locations":{"type":"array","description":"List of locations.","items":{"$ref":"#/components/schemas/LocationListItem"}},"total":{"type":"integer","description":"Total number of locations.","format":"int32","example":5}}},"DepreciationListItem":{"type":"object","properties":{"depreciation_name":{"type":"string","description":"Name of the depreciation method.","example":"DB-5"},"depreciation_type":{"type":"integer","description":"Depreciation type: 1 = Declining Balance, 2 = Straight Line, 3 = Sum of Years' Digits.","format":"int32","example":1},"useful_life_in_years":{"type":"integer","description":"Useful life in years.","format":"int32","example":5},"depreciation_description":{"type":"string","description":"Description of the depreciation method."}},"description":"Summary item for a depreciation method in the list."},"DepreciationListModel":{"type":"object","properties":{"depreciations":{"type":"array","description":"List of depreciation methods.","items":{"$ref":"#/components/schemas/DepreciationListItem"}},"total":{"type":"integer","description":"Total number of depreciation methods.","format":"int32","example":3}}},"AssetListModel":{"type":"object","properties":{"assets":{"type":"array","description":"List of assets.","items":{"$ref":"#/components/schemas/AssetSummary"}},"count":{"type":"integer","description":"Total number of assets matching the filter.","format":"int32","example":42}}},"AssetSummary":{"type":"object","properties":{"asset_num":{"type":"integer","description":"Unique sequential number of the asset.","format":"int64","example":1},"asset_name":{"type":"string","description":"Name of the asset.","example":"ThinkPad-001"},"asset_tag":{"type":"string","description":"Unique asset tag.","example":"IT-0001"},"asset_type":{"type":"string","description":"Asset type name.","example":"Hardware"},"impact":{"type":"string","description":"Impact level.","example":"Medium"},"end_of_life":{"type":"string","description":"End of life date (yyyy-MM-dd).","example":"2028-12-31"},"created_on":{"type":"string","description":"Creation timestamp.","example":"2024-01-10 10:00:00"},"created_by":{"type":"string","description":"Name of the agent who created the asset.","example":"John Smith"},"created_by_type":{"type":"string","description":"Type of the user who created the asset.","example":"Agent"},"location":{"type":"string","description":"Location name.","example":"HQ - Floor 2"},"managed_by_group":{"type":"string","description":"Name of the group managing this asset.","example":"IT Support"},"managed_by_agent":{"type":"string","description":"Name of the agent managing this asset.","example":"Jane Doe"},"used_by":{"type":"string","description":"Name of the contact using this asset.","example":"Bob User"},"assigned_on":{"type":"string","description":"Date the asset was assigned (yyyy-MM-dd).","example":"2024-01-15"}},"description":"List of assets."},"AssetTypeListItem":{"type":"object","properties":{"asset_type_name":{"type":"string","description":"Name of the asset type.","example":"Laptop"},"asset_parent_type_name":{"type":"string","description":"Name of the parent asset type, or empty string if this is a top-level type.","example":"Computer"},"root_asset_type_name":{"type":"string","description":"Name of the topmost ancestor asset type. Equals name if this is a root type. Included in list endpoint only.","example":"Hardware"},"is_default":{"type":"boolean","description":"Whether this is a system-defined (default) asset type.","example":false},"is_disabled":{"type":"boolean","description":"Whether this asset type is currently disabled.","example":false}},"description":"List of asset types."},"AssetTypeListModel":{"type":"object","properties":{"asset_types":{"type":"array","description":"List of asset types.","items":{"$ref":"#/components/schemas/AssetTypeListItem"}},"total":{"type":"integer","description":"Total number of asset types.","format":"int32","example":5}}}},"securitySchemes":{"APIKey":{"type":"apiKey","description":"Please ensure you are accessing the Desk365 API documentation under your designated subdomain. Your API key will only work when using with your own subdomain. <br> For example: <b>https://&lt;&lt;yoursubdomain&gt;&gt;.desk365.io/apis/api-docs.html<b><br><br> ","name":"Authorization","in":"header"}}}}