{"openapi":"3.0.3","info":{"title":"AI-Powered ticketing software","description":"# About us\n**Wavity** is a next level Help Desk Management Keep your team operating at `peak efficiency` with our revolutionary service desk software designed to streamline your workflow.\n  \n**Supported Platforms**\n  - Web\n    - Safari\n    - Chrome\n    - FireFox\n    - Edge\n  - Mobile\n    - Apple\n    - Android\n  - Tablet\n    - Apple\n    - Android\n","termsOfService":"https://www.wavity.com/terms-of-service","contact":{"name":"API Support","url":"https://www.wavity.com/contact-us","email":"contact@wavity.com"},"license":{"name":"Wavity 2.0","url":"https://www.wavity.com/contact-us"},"version":"1.0.0","x-custom-info":{"comment":"Support team Details","name":"Support Team","email":"support@wavity.com"}},"externalDocs":{"description":"FAQ","url":"https://www.wavity.com/help-docs"},"servers":[{"url":"https://helpdeskniwashfc.wavity.org","description":"server base path","variables":{"subdomain":{"default":"helpdeskniwashfc","description":"This is your tenant-id"},"domain":{"default":"org","description":"this is your TLD (top level domain)"}}}],"tags":[{"name":"Ticketing","description":"Ticketing API operations"},{"name":"Records","description":"Records API for CRUD operations on any entity with field mappings configured"},{"name":"Users","description":"User management API operations"},{"name":"Groups","description":"Group management API operations"}],"security":[{"oAuth2AuthorizationCode":[]},{"oAuth2ClientCredentials":[]},{"oAuth2PasswordGrant":[]},{"BearerAuthentication":[]}],"paths":{"/openapi/tickets":{"get":{"tags":["Ticketing"],"summary":"Ticket List","description":"Get all my tickets list","operationId":"getMytickets","parameters":[{"$ref":"#/components/parameters/startQueryParam"},{"$ref":"#/components/parameters/rowsQueryParam"},{"$ref":"#/components/parameters/statusQueryParam"},{"$ref":"#/components/parameters/priorityQueryParam"},{"$ref":"#/components/parameters/tagQueryParam"},{"$ref":"#/components/parameters/typeQueryParam"},{"$ref":"#/components/parameters/valueQueryParam"},{"$ref":"#/components/parameters/sortByQueryParam"},{"$ref":"#/components/parameters/sortQueryParam"},{"$ref":"#/components/parameters/filterQueryParam"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"start":{"type":"integer","format":"int64"},"row":{"type":"integer","format":"int64"},"numfound":{"type":"integer","format":"int64"},"response":{"type":"array","items":{"$ref":"#/components/schemas/ticket"}}}}}}},"400":{"$ref":"#/components/responses/400Status"},"401":{"$ref":"#/components/responses/401Status"}}},"post":{"summary":"Add a new ticket","tags":["Ticketing"],"operationId":"createTicket","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ticketCreateRequest"}}}},"responses":{"200":{"description":"Ticket submitted successfully.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ticket"}}}},"500":{"$ref":"#/components/responses/GenericError"}}}},"/openapi/tickets/{ticketID}":{"get":{"tags":["Ticketing"],"summary":"Ticket Details","description":"Get ticket details for the given ticket ID","operationId":"getTicketDetails","parameters":[{"$ref":"#/components/parameters/ticketIdPathParam"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ticket"}}}},"400":{"$ref":"#/components/responses/400Status"},"401":{"$ref":"#/components/responses/401Status"}}},"put":{"tags":["Ticketing"],"summary":"Update a ticket","description":"Update an existing ticket by Id","operationId":"updateTicket","parameters":[{"$ref":"#/components/parameters/ticketIdPathParam"}],"requestBody":{"description":"Update an existing ticket","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ticketUpdateRequest"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ticket"}}}},"400":{"$ref":"#/components/responses/400Status"},"401":{"$ref":"#/components/responses/401Status"}}}},"/openapi/tickets/{ticketID}/status":{"put":{"summary":"Update status","description":"Update ticket status by ID","tags":["Ticketing"],"operationId":"updateStatus","parameters":[{"$ref":"#/components/parameters/ticketIdPathParam"}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/statusUpdateRequest"}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ticket"}}}},"400":{"$ref":"#/components/responses/400Status"},"401":{"$ref":"#/components/responses/401Status"}}}},"/openapi/tickets/{ticketID}/priority":{"put":{"summary":"Update priority","description":"Update ticket priority by ID","tags":["Ticketing"],"operationId":"updatePriority","parameters":[{"$ref":"#/components/parameters/ticketIdPathParam"}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/priorityUpdateRequest"}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ticket"}}}},"400":{"$ref":"#/components/responses/400Status"},"401":{"$ref":"#/components/responses/401Status"}}}},"/openapi/tickets/{ticketID}/comment":{"post":{"summary":"Add a new comment","description":"Add a new comment for the given ticket","tags":["Ticketing"],"operationId":"addComment","parameters":[{"$ref":"#/components/parameters/ticketIdPathParam"}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/comment"}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ticket"}}}},"400":{"$ref":"#/components/responses/400Status"},"401":{"$ref":"#/components/responses/401Status"}}},"get":{"tags":["Ticketing"],"summary":"Get all comments","description":"Get all comments for the given ticket ID","operationId":"getComments","parameters":[{"$ref":"#/components/parameters/ticketIdPathParam"},{"$ref":"#/components/parameters/startQueryParam"},{"$ref":"#/components/parameters/rowsQueryParam"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"start":{"type":"integer","format":"int64"},"row":{"type":"integer","format":"int64"},"numfound":{"type":"integer","format":"int64"},"response":{"type":"array","items":{"$ref":"#/components/schemas/comment"}}}}}}},"400":{"$ref":"#/components/responses/400Status"},"401":{"$ref":"#/components/responses/401Status"}}}},"/openapi/tickets/{ticketID}/tags":{"put":{"summary":"Update tags","description":"Update ticket tags by ID","tags":["Ticketing"],"operationId":"updateTags","parameters":[{"$ref":"#/components/parameters/ticketIdPathParam"}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/tagsUpdateRequest"}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ticket"}}}},"400":{"$ref":"#/components/responses/400Status"},"401":{"$ref":"#/components/responses/401Status"}}}},"/openapi/tickets/summary":{"post":{"summary":"Summary by count","description":"Summary by count","tags":["Ticketing"],"operationId":"summaryByCount","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/summaryByCountRequest"}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/summaryByCountResponse"}}}},"400":{"$ref":"#/components/responses/400Status"},"401":{"$ref":"#/components/responses/401Status"}}}},"/openapi/tickets/metadata":{"get":{"summary":"Metadata","description":"Ticketing metadata","tags":["Ticketing"],"operationId":"metadata","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/metadataResponse"}}}},"400":{"$ref":"#/components/responses/400Status"},"401":{"$ref":"#/components/responses/401Status"}}}},"/openapi/tickets/{ticketID}/note":{"post":{"summary":"Add a new note","description":"Add a new note for the given ticket","tags":["Ticketing"],"operationId":"addNote","parameters":[{"$ref":"#/components/parameters/ticketIdPathParam"}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/noteRequest"}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/noteResponse"}}}},"400":{"$ref":"#/components/responses/400Status"},"401":{"$ref":"#/components/responses/401Status"}}}},"/openapi/customers":{"post":{"summary":"Create a new customer","description":"Create a new customer","tags":["Customers"],"operationId":"addCustomer","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/customer"}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/customer"}}}},"400":{"$ref":"#/components/responses/400Status"},"401":{"$ref":"#/components/responses/401Status"}}},"get":{"tags":["Customers"],"summary":"Customer List","description":"Get all customers list","operationId":"getCustomers","parameters":[{"$ref":"#/components/parameters/startQueryParam"},{"$ref":"#/components/parameters/rowsQueryParam"},{"$ref":"#/components/parameters/searchQueryParam"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"start":{"type":"integer","format":"int64"},"row":{"type":"integer","format":"int64"},"numfound":{"type":"integer","format":"int64"},"response":{"type":"array","items":{"$ref":"#/components/schemas/customer"}}}}}}},"400":{"$ref":"#/components/responses/400Status"},"401":{"$ref":"#/components/responses/401Status"}}}},"/openapi/customers/{customerID}":{"get":{"tags":["Customers"],"summary":"Customer Details","description":"Get customer details for the given customer ID","operationId":"getCustomerDetails","parameters":[{"$ref":"#/components/parameters/customerIdPathParam"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/customer"}}}},"400":{"$ref":"#/components/responses/400Status"},"401":{"$ref":"#/components/responses/401Status"}}},"put":{"tags":["Customers"],"summary":"Update a customer","description":"Update an existing customer by Id","operationId":"updateCustomer","parameters":[{"$ref":"#/components/parameters/customerIdPathParam"}],"requestBody":{"description":"Update an existing customer","content":{"application/json":{"schema":{"$ref":"#/components/schemas/customer"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/customer"}}}},"400":{"$ref":"#/components/responses/400Status"},"401":{"$ref":"#/components/responses/401Status"}}},"delete":{"tags":["Customers"],"summary":"Remove a customer","description":"Remove an existing customer by Id","operationId":"removeCustomer","parameters":[{"$ref":"#/components/parameters/customerIdPathParam"},{"$ref":"#/components/parameters/hardQueryParam"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/customerRemoveResponse"}}}},"400":{"$ref":"#/components/responses/400Status"},"401":{"$ref":"#/components/responses/401Status"}}}},"/openapi/organizations":{"get":{"tags":["Organization"],"summary":"Organizations List","description":"Get all my Organization list","operationId":"getMyOrganizations","parameters":[{"$ref":"#/components/parameters/startQueryParam"},{"$ref":"#/components/parameters/rowsQueryParam"},{"$ref":"#/components/parameters/searchQueryParam"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"start":{"type":"integer","format":"int64"},"row":{"type":"integer","format":"int64"},"numfound":{"type":"integer","format":"int64"},"response":{"type":"array","items":{"$ref":"#/components/schemas/organization"}}}}}}},"400":{"$ref":"#/components/responses/400Status"},"401":{"$ref":"#/components/responses/401Status"}}},"post":{"summary":"Add a new Organization","tags":["Organization"],"operationId":"createOrganization","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/organizationCreateRequest"}}}},"responses":{"200":{"description":"Organization created successfully.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/organization"}}}},"500":{"$ref":"#/components/responses/GenericError"}}}},"/openapi/organizations/{organizationId}":{"get":{"tags":["Organization"],"summary":"Organization Details","description":"Get Organization details for the given Organization ID","operationId":"getOrganizationDetails","parameters":[{"$ref":"#/components/parameters/organizationIdPathParam"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/organization"}}}},"400":{"$ref":"#/components/responses/400Status"},"401":{"$ref":"#/components/responses/401Status"}}},"put":{"tags":["Organization"],"summary":"Update a Organization","description":"Update an existing Organization by Id","operationId":"updateOrganization","parameters":[{"$ref":"#/components/parameters/organizationIdPathParam"}],"requestBody":{"description":"Update an existing Organization","content":{"application/json":{"schema":{"$ref":"#/components/schemas/organizationUpdateRequest"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/organization"}}}},"400":{"$ref":"#/components/responses/400Status"},"401":{"$ref":"#/components/responses/401Status"}}},"delete":{"tags":["Organization"],"summary":"Delete a Organization","description":"Delete an existing Organization by Id","operationId":"deleteOrganization","parameters":[{"$ref":"#/components/parameters/organizationIdPathParam"}],"responses":{"200":{"description":"OK"},"400":{"$ref":"#/components/responses/400Status"},"401":{"$ref":"#/components/responses/401Status"}}}},"/openapi/customAttributes/type/{entityType}":{"get":{"tags":["Custom Attribute Definitions"],"summary":"Custom Attributes Definitions List","description":"Get all my custom Attributes Definitions list","operationId":"getMyCustomAttributesDefinitions","parameters":[{"$ref":"#/components/parameters/customAttrbuteEntityTypePathParam"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"count":{"type":"integer"},"type":{"type":"integer","format":"int64"},"response":{"type":"array","items":{"$ref":"#/components/schemas/customAttributeDefinition"}}}}}}},"400":{"$ref":"#/components/responses/400Status"},"401":{"$ref":"#/components/responses/401Status"}}}},"/openapi/customAttributes":{"post":{"summary":"Add a new custom Attributes Definitions","tags":["Custom Attribute Definitions"],"operationId":"customAttributesDefinitions","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/customAttributeDefinationCreateRequest"}}}},"responses":{"200":{"description":"Custom Attribute Definition created successfully.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/customAttributeDefinition"}}}},"500":{"$ref":"#/components/responses/GenericError"}}}},"/openapi/customAttributes/{customAttrbuteId}":{"put":{"tags":["Custom Attribute Definitions"],"summary":"Update a customAttributesDefinition","description":"Update an existing customAttributesDefinition by Id","operationId":"updatecustomAttributesDefinition","parameters":[{"$ref":"#/components/parameters/customAttrbuteIdPathParam"}],"requestBody":{"description":"Update an existing Custom Attributes Definition","content":{"application/json":{"schema":{"$ref":"#/components/schemas/customAttributeDefinationUpdateRequest"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/customAttributeDefinition"}}}},"400":{"$ref":"#/components/responses/400Status"},"401":{"$ref":"#/components/responses/401Status"}}},"delete":{"tags":["Custom Attribute Definitions"],"summary":"Delete a customAttributesDefinition","description":"Delete an existing custom Attributes Definition by Id","operationId":"deletecustomAttributesDefinition","parameters":[{"$ref":"#/components/parameters/customAttrbuteIdPathParam"}],"responses":{"200":{"description":"OK"},"400":{"$ref":"#/components/responses/400Status"},"401":{"$ref":"#/components/responses/401Status"}}}},"/openapi/records/v1/{entityName}":{"get":{"tags":["Records"],"summary":"List Records","description":"Get a paginated list of all records for the specified entity with pagination and sorting support.","operationId":"listRecords","parameters":[{"$ref":"#/components/parameters/entityNamePathParam"},{"$ref":"#/components/parameters/recordStartQueryParam"},{"$ref":"#/components/parameters/recordRowsQueryParam"},{"$ref":"#/components/parameters/recordSortQueryParam"},{"$ref":"#/components/parameters/recordOrderQueryParam"}],"responses":{"200":{"description":"Records retrieved successfully","content":{"application/json":{"schema":{"$ref":"#/components/schemas/recordListResponse"}}}},"400":{"$ref":"#/components/responses/400Status"},"401":{"$ref":"#/components/responses/401Status"},"404":{"$ref":"#/components/responses/404Status"},"429":{"$ref":"#/components/responses/429Status"}}},"post":{"tags":["Records"],"summary":"Create Record","description":"Create a new record for the specified entity","operationId":"createRecord","parameters":[{"$ref":"#/components/parameters/entityNamePathParam"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/recordCreateRequest"}}}},"responses":{"201":{"description":"Record created successfully","content":{"application/json":{"schema":{"$ref":"#/components/schemas/recordResponse"}}}},"400":{"$ref":"#/components/responses/400Status"},"401":{"$ref":"#/components/responses/401Status"},"422":{"$ref":"#/components/responses/422Status"},"429":{"$ref":"#/components/responses/429Status"}}}},"/openapi/records/v1/{entityName}/{id}":{"get":{"tags":["Records"],"summary":"Get Record","description":"Get a specific record by its ID","operationId":"getRecord","parameters":[{"$ref":"#/components/parameters/entityNamePathParam"},{"$ref":"#/components/parameters/recordIdPathParam"}],"responses":{"200":{"description":"Record retrieved successfully","content":{"application/json":{"schema":{"$ref":"#/components/schemas/recordResponse"}}}},"400":{"$ref":"#/components/responses/400Status"},"401":{"$ref":"#/components/responses/401Status"},"404":{"$ref":"#/components/responses/404Status"},"429":{"$ref":"#/components/responses/429Status"}}},"put":{"tags":["Records"],"summary":"Update Record","description":"Update an existing record by its ID","operationId":"updateRecord","parameters":[{"$ref":"#/components/parameters/entityNamePathParam"},{"$ref":"#/components/parameters/recordIdPathParam"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/recordUpdateRequest"}}}},"responses":{"200":{"description":"Record updated successfully","content":{"application/json":{"schema":{"$ref":"#/components/schemas/recordResponse"}}}},"400":{"$ref":"#/components/responses/400Status"},"401":{"$ref":"#/components/responses/401Status"},"404":{"$ref":"#/components/responses/404Status"},"422":{"$ref":"#/components/responses/422Status"},"429":{"$ref":"#/components/responses/429Status"}}},"delete":{"tags":["Records"],"summary":"Delete Record","description":"Delete a record by its ID","operationId":"deleteRecord","parameters":[{"$ref":"#/components/parameters/entityNamePathParam"},{"$ref":"#/components/parameters/recordIdPathParam"}],"responses":{"200":{"description":"Record deleted successfully","content":{"application/json":{"schema":{"$ref":"#/components/schemas/recordDeleteResponse"}}}},"400":{"$ref":"#/components/responses/400Status"},"401":{"$ref":"#/components/responses/401Status"},"404":{"$ref":"#/components/responses/404Status"},"429":{"$ref":"#/components/responses/429Status"}}}},"/openapi/records/v1/{entityName}/search":{"post":{"tags":["Records"],"summary":"Search Records","description":"Search and filter records for the specified entity with pagination and sorting support. Filters are passed in the request body as key-value pairs where key is the field name and value is in format `OPERATOR:value`. Supported operators: EQ (equals), NE (not equals), GT (greater than), GTE (greater than or equal), LT (less than), LTE (less than or equal), LIKE (contains), IN (in list), NIN (not in list).","operationId":"searchRecords","parameters":[{"$ref":"#/components/parameters/entityNamePathParam"},{"$ref":"#/components/parameters/recordStartQueryParam"},{"$ref":"#/components/parameters/recordRowsQueryParam"},{"$ref":"#/components/parameters/recordSortQueryParam"},{"$ref":"#/components/parameters/recordOrderQueryParam"}],"requestBody":{"required":true,"description":"Filters as key-value pairs where key is the field name and value is in format `OPERATOR:value`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/recordSearchFilters"},"example":{"status":"EQ:Open","priority":"NE:Critical"}}}},"responses":{"200":{"description":"Records retrieved successfully","content":{"application/json":{"schema":{"$ref":"#/components/schemas/recordListResponse"}}}},"400":{"$ref":"#/components/responses/400Status"},"401":{"$ref":"#/components/responses/401Status"},"404":{"$ref":"#/components/responses/404Status"},"429":{"$ref":"#/components/responses/429Status"}}}},"/openapi/records/v1/{entityName}/bulk":{"post":{"tags":["Records"],"summary":"Bulk Record Operations (Sync)","description":"Perform bulk create, update, upsert, or delete operations on records synchronously. Limited to 1000 records per request.","operationId":"bulkRecordSync","parameters":[{"$ref":"#/components/parameters/entityNamePathParam"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/bulkRecordRequest"}}}},"responses":{"200":{"description":"Bulk operation completed successfully","content":{"application/json":{"schema":{"$ref":"#/components/schemas/bulkRecordResponse"}}}},"400":{"$ref":"#/components/responses/400Status"},"401":{"$ref":"#/components/responses/401Status"},"422":{"$ref":"#/components/responses/422Status"},"429":{"$ref":"#/components/responses/429Status"}}}},"/openapi/records/v1/{entityName}/async":{"post":{"tags":["Records"],"summary":"Bulk Record Operations (Async)","description":"Submit bulk create, update, upsert, or delete operations for asynchronous processing. Use this for large datasets. Returns a job ID to track progress.","operationId":"bulkRecordAsync","parameters":[{"$ref":"#/components/parameters/entityNamePathParam"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/asyncBulkRecordRequest"}}}},"responses":{"202":{"description":"Request accepted for async processing","content":{"application/json":{"schema":{"$ref":"#/components/schemas/asyncJobResponse"}}}},"400":{"$ref":"#/components/responses/400Status"},"401":{"$ref":"#/components/responses/401Status"},"422":{"$ref":"#/components/responses/422Status"},"429":{"$ref":"#/components/responses/429Status"}}}},"/openapi/records/v1/{entityName}/jobs/{jobId}":{"get":{"tags":["Records"],"summary":"Get Job Status","description":"Get the status of an asynchronous bulk operation job","operationId":"getJobStatus","parameters":[{"$ref":"#/components/parameters/entityNamePathParam"},{"$ref":"#/components/parameters/jobIdPathParam"}],"responses":{"200":{"description":"Job status retrieved successfully","content":{"application/json":{"schema":{"$ref":"#/components/schemas/jobStatusResponse"}}}},"400":{"$ref":"#/components/responses/400Status"},"401":{"$ref":"#/components/responses/401Status"},"404":{"$ref":"#/components/responses/404Status"},"429":{"$ref":"#/components/responses/429Status"}}}},"/openapi/users":{"get":{"tags":["Users"],"summary":"List Users","description":"Get all users with optional filters","operationId":"listUsers","parameters":[{"$ref":"#/components/parameters/startQueryParam"},{"$ref":"#/components/parameters/rowsQueryParam"},{"name":"search","in":"query","description":"Search by username, email, or name","schema":{"type":"string"}},{"name":"status","in":"query","description":"Filter by user status","schema":{"type":"string","enum":["active","inactive","disabled"]}},{"name":"role","in":"query","description":"Filter by user role","schema":{"type":"string","enum":["admin","agent","user","buyer","designer"]}}],"responses":{"200":{"description":"Users retrieved successfully","content":{"application/json":{"schema":{"$ref":"#/components/schemas/userListResponse"}}}},"400":{"$ref":"#/components/responses/400Status"},"401":{"$ref":"#/components/responses/401Status"}}},"post":{"tags":["Users"],"summary":"Create User","description":"Create a new user with generic key-value payload","operationId":"createUser","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/userCreateRequest"}}}},"responses":{"200":{"description":"User created successfully","content":{"application/json":{"schema":{"$ref":"#/components/schemas/userResponse"}}}},"400":{"$ref":"#/components/responses/400Status"},"401":{"$ref":"#/components/responses/401Status"}}}},"/openapi/users/details":{"get":{"tags":["Users"],"summary":"Get User Details by Username or Email","description":"Get user details by username or email (case-insensitive). Uses direct database query for optimal performance.","operationId":"getUserDetails","parameters":[{"name":"username","in":"query","description":"Username to lookup (case-insensitive)","schema":{"type":"string"}},{"name":"email","in":"query","description":"Email to lookup (case-insensitive)","schema":{"type":"string","format":"email"}}],"responses":{"200":{"description":"User retrieved successfully","content":{"application/json":{"schema":{"$ref":"#/components/schemas/userResponse"}}}},"400":{"description":"Bad Request - Either username or email parameter is required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}},"401":{"$ref":"#/components/responses/401Status"},"404":{"description":"User not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}}}}},"/openapi/users/{id}":{"get":{"tags":["Users"],"summary":"Get User","description":"Get user details by ID","operationId":"getUser","parameters":[{"$ref":"#/components/parameters/userIdPathParam"}],"responses":{"200":{"description":"User retrieved successfully","content":{"application/json":{"schema":{"$ref":"#/components/schemas/userResponse"}}}},"400":{"$ref":"#/components/responses/400Status"},"401":{"$ref":"#/components/responses/401Status"},"404":{"$ref":"#/components/responses/404Status"}}},"put":{"tags":["Users"],"summary":"Update User","description":"Update user with generic key-value payload","operationId":"updateUser","parameters":[{"$ref":"#/components/parameters/userIdPathParam"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/userUpdateRequest"}}}},"responses":{"200":{"description":"User updated successfully","content":{"application/json":{"schema":{"$ref":"#/components/schemas/userResponse"}}}},"400":{"$ref":"#/components/responses/400Status"},"401":{"$ref":"#/components/responses/401Status"},"404":{"$ref":"#/components/responses/404Status"}}},"delete":{"tags":["Users"],"summary":"Delete User","description":"Delete a user by ID (soft delete by default, use hard=true for permanent deletion)","operationId":"deleteUser","parameters":[{"$ref":"#/components/parameters/userIdPathParam"},{"name":"hard","in":"query","description":"If true, permanently delete the user. If false (default), soft delete.","schema":{"type":"boolean","default":false}}],"responses":{"200":{"description":"User deleted successfully","content":{"application/json":{"schema":{"$ref":"#/components/schemas/deleteResponse"}}}},"400":{"$ref":"#/components/responses/400Status"},"401":{"$ref":"#/components/responses/401Status"},"404":{"$ref":"#/components/responses/404Status"}}},"patch":{"tags":["Users"],"summary":"Patch User","description":"Partially update a user using JSON Patch-like operations. Supports add, replace, and remove operations.","operationId":"patchUser","parameters":[{"$ref":"#/components/parameters/userIdPathParam"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/userPatchRequest"}}}},"responses":{"200":{"description":"User patched successfully","content":{"application/json":{"schema":{"$ref":"#/components/schemas/userResponse"}}}},"400":{"$ref":"#/components/responses/400Status"},"401":{"$ref":"#/components/responses/401Status"},"404":{"$ref":"#/components/responses/404Status"}}}},"/openapi/users/bulk/create":{"post":{"tags":["Users"],"summary":"Bulk Create Users","description":"Create multiple users in a single operation","operationId":"bulkCreateUsers","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"list":{"type":"array","items":{"$ref":"#/components/schemas/userCreateRequest"}}},"required":["list"]}}}},"responses":{"200":{"description":"Users created successfully","content":{"application/json":{"schema":{"type":"object","properties":{"response":{"type":"array","items":{"$ref":"#/components/schemas/userResponse"}},"list":{"type":"array","items":{"$ref":"#/components/schemas/userResponse"},"description":"Transformed response array"}}}}}},"400":{"$ref":"#/components/responses/400Status"},"401":{"$ref":"#/components/responses/401Status"}}}},"/openapi/users/bulk/update":{"post":{"tags":["Users"],"summary":"Bulk Update Users","description":"Update multiple users in a single operation. Accepts partial user objects with id required.","operationId":"bulkUpdateUsers","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"list":{"type":"array","items":{"allOf":[{"$ref":"#/components/schemas/userUpdateRequest"},{"type":"object","properties":{"id":{"type":"string","description":"User ID (required)"}},"required":["id"]}]}}},"required":["list"]}}}},"responses":{"200":{"description":"Users updated successfully","content":{"application/json":{"schema":{"type":"object","properties":{"list":{"type":"array","items":{"$ref":"#/components/schemas/userResponse"}},"numFound":{"type":"integer","description":"Number of users updated"}}}}}},"400":{"$ref":"#/components/responses/400Status"},"401":{"$ref":"#/components/responses/401Status"}}}},"/openapi/users/bulk/delete":{"post":{"tags":["Users"],"summary":"Bulk Delete Users","description":"Delete multiple users by IDs (soft delete by default, use hard=true for permanent deletion)","operationId":"bulkDeleteUsers","parameters":[{"name":"hard","in":"query","description":"If true, permanently delete the users. If false (default), soft delete.","schema":{"type":"boolean","default":false}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"list":{"type":"array","items":{"type":"string"},"description":"Array of user IDs to delete"}},"required":["list"]}}}},"responses":{"200":{"description":"Users deleted successfully","content":{"application/json":{"schema":{"$ref":"#/components/schemas/deleteResponse"}}}},"400":{"$ref":"#/components/responses/400Status"},"401":{"$ref":"#/components/responses/401Status"}}}},"/openapi/groups":{"get":{"tags":["Groups"],"summary":"List Groups","description":"Get all groups with optional filters","operationId":"listGroups","parameters":[{"$ref":"#/components/parameters/startQueryParam"},{"$ref":"#/components/parameters/rowsQueryParam"},{"name":"search","in":"query","description":"Search by group name","schema":{"type":"string"}}],"responses":{"200":{"description":"Groups retrieved successfully","content":{"application/json":{"schema":{"$ref":"#/components/schemas/groupListResponse"}}}},"400":{"$ref":"#/components/responses/400Status"},"401":{"$ref":"#/components/responses/401Status"}}},"post":{"tags":["Groups"],"summary":"Create Group","description":"Create a new group with generic key-value payload","operationId":"createGroup","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/groupCreateRequest"}}}},"responses":{"200":{"description":"Group created successfully","content":{"application/json":{"schema":{"$ref":"#/components/schemas/groupResponse"}}}},"400":{"$ref":"#/components/responses/400Status"},"401":{"$ref":"#/components/responses/401Status"}}}},"/openapi/groups/{id}":{"get":{"tags":["Groups"],"summary":"Get Group","description":"Get group details by ID","operationId":"getGroup","parameters":[{"$ref":"#/components/parameters/groupIdPathParam"}],"responses":{"200":{"description":"Group retrieved successfully","content":{"application/json":{"schema":{"$ref":"#/components/schemas/groupResponse"}}}},"400":{"$ref":"#/components/responses/400Status"},"401":{"$ref":"#/components/responses/401Status"},"404":{"$ref":"#/components/responses/404Status"}}},"put":{"tags":["Groups"],"summary":"Update Group","description":"Update group with generic key-value payload","operationId":"updateGroup","parameters":[{"$ref":"#/components/parameters/groupIdPathParam"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/groupUpdateRequest"}}}},"responses":{"200":{"description":"Group updated successfully","content":{"application/json":{"schema":{"$ref":"#/components/schemas/groupResponse"}}}},"400":{"$ref":"#/components/responses/400Status"},"401":{"$ref":"#/components/responses/401Status"},"404":{"$ref":"#/components/responses/404Status"}}},"delete":{"tags":["Groups"],"summary":"Delete Group","description":"Delete a group by ID","operationId":"deleteGroup","parameters":[{"$ref":"#/components/parameters/groupIdPathParam"}],"responses":{"200":{"description":"Group deleted successfully","content":{"application/json":{"schema":{"$ref":"#/components/schemas/deleteResponse"}}}},"400":{"$ref":"#/components/responses/400Status"},"401":{"$ref":"#/components/responses/401Status"},"404":{"$ref":"#/components/responses/404Status"}}}},"/openapi/groups/bulk":{"post":{"tags":["Groups"],"summary":"Bulk Create/Update Groups","description":"Bulk create or update groups","operationId":"bulkGroups","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"groups":{"type":"array","items":{"$ref":"#/components/schemas/groupCreateRequest"},"description":"Array of groups to create or update"}},"required":["groups"]}}}},"responses":{"200":{"description":"Groups created/updated successfully","content":{"application/json":{"schema":{"$ref":"#/components/schemas/groupListResponse"}}}},"400":{"$ref":"#/components/responses/400Status"},"401":{"$ref":"#/components/responses/401Status"}}}}},"components":{"parameters":{"ticketIdPathParam":{"name":"ticketID","in":"path","required":true,"schema":{"type":"string"}},"startQueryParam":{"name":"start","description":"Represents page number","in":"query","required":false,"schema":{"type":"integer"},"example":0},"rowsQueryParam":{"name":"rows","description":"Represents rows per page","in":"query","required":false,"schema":{"type":"integer"},"example":10},"statusQueryParam":{"name":"status","in":"query","schema":{"type":"array","items":{"enum":["Open","Onhold","Resolved","Close"]}}},"priorityQueryParam":{"name":"priority","in":"query","schema":{"type":"array","items":{"enum":["Low","Normal","High","Urgent"]}}},"tagQueryParam":{"name":"tag","in":"query","schema":{"type":"array","items":{"type":"string"}}},"typeQueryParam":{"name":"type","description":"Filter control","in":"query","required":false,"schema":{"type":"string","enum":["requester-name","requester-email"]},"example":"requester-email"},"valueQueryParam":{"name":"value","description":"Filter value","in":"query","required":false,"schema":{"type":"string"},"example":"john@xyz.com"},"filterQueryParam":{"name":"query","description":"Search query string to filter tickets","in":"query","required":false,"schema":{"type":"string"},"example":"Status EQ \"Open\" AND Priority IN [\"High\",\"Low\"]"},"sortByQueryParam":{"name":"sort-by","description":"Sort control","in":"query","required":false,"schema":{"type":"string","enum":["create-date","due-date"]},"example":"create-date"},"sortQueryParam":{"name":"sort","description":"Sort value","in":"query","required":false,"schema":{"type":"string","enum":["asc","desc"]},"example":"asc"},"organizationIdPathParam":{"name":"organizationId","in":"path","required":true,"schema":{"type":"string"}},"customAttrbuteIdQueryParam":{"name":"customAttrbuteEntityId","in":"query","required":true,"schema":{"type":"string"}},"customAttrbuteIdPathParam":{"name":"customAttrbuteId","in":"path","required":true,"schema":{"type":"string"}},"customAttrbuteEntityTypePathParam":{"name":"entityType","in":"path","required":true,"schema":{"type":"string"}},"customerIdPathParam":{"name":"customerID","in":"path","required":true,"schema":{"type":"string"}},"customerStatusQueryParam":{"name":"status","in":"query","description":"Filter by customer status","required":false,"schema":{"type":"array","items":{"type":"string","enum":["ACTIVE","INACTIVE","PENDING"]}}},"searchQueryParam":{"name":"search","description":"Search with any key","in":"query","required":false,"schema":{"type":"string"}},"hardQueryParam":{"name":"hard","description":"Represents whether hard delete customer or not","in":"query","required":false,"schema":{"type":"boolean","default":false},"example":false},"entityNamePathParam":{"name":"entityName","description":"The caption/name of the entity (application field mapping)","in":"path","required":true,"schema":{"type":"string","maxLength":255,"pattern":"^[\\w\\s-]+$"},"example":"customers"},"recordIdPathParam":{"name":"id","description":"The unique identifier of the record","in":"path","required":true,"schema":{"type":"string","maxLength":500},"example":"12345"},"jobIdPathParam":{"name":"jobId","description":"The unique identifier of the async job","in":"path","required":true,"schema":{"type":"string","maxLength":32,"pattern":"^[a-f0-9]{32}$","description":"32-character job identifier (UUID)"},"example":"a75cdd6ea15a4113bcb08279f4f18200"},"userIdPathParam":{"name":"id","in":"path","required":true,"description":"User ID","schema":{"type":"string"}},"groupIdPathParam":{"name":"id","in":"path","required":true,"description":"Group ID","schema":{"type":"string"}},"recordStartQueryParam":{"name":"start","description":"Starting index for pagination (0-based)","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0},"example":0},"recordRowsQueryParam":{"name":"rows","description":"Number of records per page (max 100)","in":"query","required":false,"schema":{"type":"integer","minimum":1,"maximum":100,"default":12},"example":12},"recordSortQueryParam":{"name":"sort","description":"Field name to sort by","in":"query","required":false,"schema":{"type":"string"},"example":"created_time"},"recordOrderQueryParam":{"name":"order","description":"Sort order","in":"query","required":false,"schema":{"type":"string","enum":["asc","desc"],"default":"desc"},"example":"desc"},"recordFiltersDescription":{"name":"filters","description":"Additional query parameters can be passed as filters. Format: `fieldName=OPERATOR:value`. Supported operators: EQ (equals), NE (not equals), GT (greater than), GTE (greater than or equal), LT (less than), LTE (less than or equal), LIKE (contains), IN (in list). Example: `?status=EQ:Open&priority=IN:High,Low`","in":"query","required":false,"schema":{"type":"object","additionalProperties":{"type":"string"}},"example":{"status":"EQ:Open","priority":"IN:High,Low"}}},"schemas":{"ticket":{"type":"object","properties":{"id":{"type":"string"},"subject":{"type":"string"},"description":{"type":"string"},"status":{"type":"string","enum":["Open","Onhold","Resolved","Close"]},"requester":{"type":"string"},"create_date":{"type":"integer","format":"int64","description":"UTC Milliseconds"},"priority":{"type":"string","enum":["Low","Normal","High","Urgent"]},"resolution":{"type":"string"},"eta":{"type":"integer","format":"int64","description":"UTC Milliseconds"},"agent":{"type":"string"},"close_date":{"type":"integer","format":"int64","description":"UTC Milliseconds"},"tags":{"type":"array","items":{"type":"string"}},"category":{"type":"string"},"groups":{"type":"array","items":{"type":"string"}},"references":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"rows":{"type":"array","items":{"type":"object","properties":{"action_type":{"type":"string","enum":["create","update","delete"]},"record_title":{"type":"string"},"fields":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"type":{"type":"string","enum":["string","number","timestamp"]},"value":{"type":"string"}}}}}}}}}},"ext_properties":{"type":"object","properties":{"resolved_date":{"type":"integer","format":"int64","description":"UTC Milliseconds"},"requester_email":{"type":"string"},"requester_name":{"type":"string"},"channel":{"type":"string"},"resolution_notes":{"type":"string"},"attachments":{"type":"string"},"sub_category":{"type":"string"},"assigned_date":{"type":"integer","format":"int64","description":"UTC Milliseconds"},"close_notes":{"type":"string"},"count":{"type":"integer"},"manager":{"type":"string"},"manager_approved_date":{"type":"integer","format":"int64","description":"UTC Milliseconds"},"manager_status":{"type":"string"},"sla":{"type":"string"},"kb_article":{"type":"string"},"resolution_interval":{"type":"integer"},"close_interval":{"type":"integer"},"interval":{"type":"integer"},"submission_date":{"type":"integer","format":"int64","description":"UTC Milliseconds"},"resolution":{"type":"string"},"due_date":{"type":"integer","format":"int64","description":"UTC Milliseconds"},"phone_num":{"type":"string"}}},"custom_properties":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"value":{"type":"string"}}}}},"example":{"id":"TKT101","subject":"Issue with my laptop","description":"Not booting","status":"New","requester":"John","create_date":1711090628526,"priority":"High","resolution":"Resolved","eta":1711090628526,"agent":"Taylor","close_date":1711090628526,"tags":["urgent","backend","issue"],"category":"Incident","groups":["Technical Support","Hardware Support"],"references":[{"name":"Employee Details","rows":[{"action_type":"create","fields":[{"name":"Name","type":"string","value":"Michael"},{"name":"Age","type":"number","value":"32"},{"name":"DOB","type":"timestamp","value":"694204200000"}]},{"action_type":"update","record_title":"OTS-1","fields":[{"name":"Name","type":"string","value":"John"},{"name":"Age","type":"number","value":"54"},{"name":"DOB","type":"timestamp","value":"473365800000"}]},{"action_type":"delete","record_title":"OTS-2"}]}],"ext_properties":{"resolved_date":1711090628526,"requester_email":"john@xyz.com","requester_name":"john","channel":"email","resolution_notes":"ticket has been resolved","attachments":"Base64 format of the attachment","sub_category":"Ticket","assigned_date":1711090628526,"close_notes":"Ticket has closed in short time","count":5,"manager":"Jackson","manager_approved_date":1711090628526,"manager_status":"Approved","sla":"3 Hours","kb_article":"Link to the article","resolution_interval":45,"close_interval":50,"interval":20,"submission_date":1711090628526,"resolution":"ticket closed","due_date":1711090628526,"phone_num":"+919999999999"},"custom_properties":[{"name":"Comments","value":"Thank you for fixing the issue!"}]}},"ticketCreateRequest":{"type":"object","properties":{"subject":{"type":"string"},"description":{"type":"string"},"status":{"type":"string","enum":["Open","Onhold","Resolved","Close"]},"priority":{"type":"string","enum":["Low","Normal","High","Urgent"]},"tags":{"type":"array","items":{"type":"string"}},"ext_properties":{"type":"object","properties":{"resolved_date":{"type":"integer","format":"int64","description":"UTC Milliseconds"},"requester_email":{"type":"string"},"requester_name":{"type":"string"},"channel":{"type":"string"},"resolution_notes":{"type":"string"},"attachments":{"type":"string"},"sub_category":{"type":"string"},"assigned_date":{"type":"integer","format":"int64","description":"UTC Milliseconds"},"close_notes":{"type":"string"},"count":{"type":"integer"},"manager":{"type":"string"},"manager_approved_date":{"type":"integer","format":"int64","description":"UTC Milliseconds"},"manager_status":{"type":"string"},"sla":{"type":"string"},"kb_article":{"type":"string"},"resolution_interval":{"type":"integer"},"close_interval":{"type":"integer"},"interval":{"type":"integer"},"submission_date":{"type":"integer","format":"int64","description":"UTC Milliseconds"},"resolution":{"type":"string"},"due_date":{"type":"integer","format":"int64","description":"UTC Milliseconds"},"phone_num":{"type":"string"}}},"custom_properties":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"value":{"type":"string"}}}}},"required":["subject"],"example":{"subject":"Issue with my laptop","description":"Not booting","status":"New","priority":"High","tags":["urgent","backend","issue"],"ext_properties":{"resolved_date":1711090628526,"requester_email":"john@xyz.com","requester_name":"john","channel":"email","resolution_notes":"ticket has been resolved","attachments":"Base64 format of the attachment","sub_category":"Ticket","assigned_date":1711090628526,"close_notes":"Ticket has closed in short time","count":5,"manager":"Jackson","manager_approved_date":1711090628526,"manager_status":"Approved","sla":"3 Hours","kb_article":"Link to the article","resolution_interval":45,"close_interval":50,"interval":20,"submission_date":1711090628526,"resolution":"ticket closed","due_date":1711090628526,"phone_num":"+919999999999"},"custom_properties":[{"name":"Comments","value":"Thank you for fixing the issue!"}]}},"ticketUpdateRequest":{"type":"object","properties":{"subject":{"type":"string"},"description":{"type":"string"},"status":{"type":"string","enum":["Open","Onhold","Resolved","Close"]},"priority":{"type":"string","enum":["Low","Normal","High","Urgent"]},"tags":{"type":"array","items":{"type":"string"}},"groups":{"type":"array","items":{"type":"string"}},"create_date":{"type":"integer","format":"int64","description":"UTC Milliseconds"},"references":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"rows":{"type":"array","items":{"type":"object","properties":{"action_type":{"type":"string","enum":["create","update","delete"]},"record_title":{"type":"string"},"fields":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"type":{"type":"string","enum":["string","number","timestamp"]},"value":{"type":"string"}}}}}}}}}},"ext_properties":{"type":"object","properties":{"resolved_date":{"type":"integer","format":"int64","description":"UTC Milliseconds"},"requester_email":{"type":"string"},"requester_name":{"type":"string"},"channel":{"type":"string"},"resolution_notes":{"type":"string"},"attachments":{"type":"string"},"sub_category":{"type":"string"},"assigned_date":{"type":"integer","format":"int64","description":"UTC Milliseconds"},"close_notes":{"type":"string"},"count":{"type":"integer"},"manager":{"type":"string"},"manager_approved_date":{"type":"integer","format":"int64","description":"UTC Milliseconds"},"manager_status":{"type":"string"},"sla":{"type":"string"},"kb_article":{"type":"string"},"resolution_interval":{"type":"integer"},"close_interval":{"type":"integer"},"interval":{"type":"integer"},"submission_date":{"type":"integer","format":"int64","description":"UTC Milliseconds"},"resolution":{"type":"string"},"due_date":{"type":"integer","format":"int64","description":"UTC Milliseconds"},"phone_num":{"type":"string"}}},"custom_properties":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"value":{"type":"string"}}}}},"example":{"subject":"Issue with my laptop","description":"Not booting","status":"New","priority":"High","tags":["urgent","backend","issue"],"groups":["Technical Support","Hardware Support"],"create_date":1711090628526,"references":[{"name":"Employee Details","rows":[{"action_type":"create","fields":[{"name":"Name","type":"string","value":"Michael"},{"name":"Age","type":"number","value":"32"},{"name":"DOB","type":"timestamp","value":"694204200000"}]},{"action_type":"update","record_title":"OTS-1","fields":[{"name":"Name","type":"string","value":"John"},{"name":"Age","type":"number","value":"54"},{"name":"DOB","type":"timestamp","value":"473365800000"}]},{"action_type":"delete","record_title":"OTS-2"}]}],"ext_properties":{"resolved_date":1711090628526,"requester_email":"john@xyz.com","requester_name":"john","channel":"email","resolution_notes":"ticket has been resolved","attachments":"Base64 format of the attachment","sub_category":"Ticket","assigned_date":1711090628526,"close_notes":"Ticket has closed in short time","count":5,"manager":"Jackson","manager_approved_date":1711090628526,"manager_status":"Approved","sla":"3 Hours","kb_article":"Link to the article","resolution_interval":45,"close_interval":50,"interval":20,"submission_date":1711090628526,"resolution":"ticket closed","due_date":1711090628526,"phone_num":"+919999999999"},"custom_properties":[{"name":"Comments","value":"Thank you for fixing the issue!"}]}},"statusUpdateRequest":{"type":"object","properties":{"status":{"type":"string","enum":["Open","Onhold","Resolved","Close"]}},"required":["status"],"example":{"status":"Pending"}},"priorityUpdateRequest":{"type":"object","properties":{"priority":{"type":"string","enum":["Low","Normal","High","Urgent"]}},"required":["priority"],"example":{"priority":"Urgent"}},"tagsUpdateRequest":{"type":"object","properties":{"tags":{"type":"array","items":{"type":"string"},"minItems":1},"action":{"type":"string","enum":["update","replace"]}},"required":["tags","action"],"example":{"tags":["urgent","follow-up"],"action":"update"}},"summaryByCountRequest":{"type":"object","properties":{"fields":{"type":"array","items":{"type":"string"},"minItems":1}},"required":["fields"],"example":{"fields":["status","priority"]}},"summaryByCountResponse":{"type":"object","additionalProperties":{"type":"object","additionalProperties":{"type":"integer"}},"example":{"status":{"open":2,"closed":4},"priority":{"high":3,"low":8}}},"comment":{"type":"object","properties":{"ID":{"type":"string"},"comment":{"type":"string"}},"required":["ID","comment"],"example":{"ID":"commentID101","comment":"This is my first comment"}},"error":{"type":"object","properties":{"message":{"type":"string"}}},"metadataResponse":{"example":{"id":"","subject":"","description":"","status":"open | onhold | resolved | close","requester":"","create_date":-1,"priority":"low | normal | high | urgent","resolution":"","eta":-1,"agent":"","close_date":-1,"tags":[""],"category":"","ext_properties":{"resolved_date":-1,"requester_email":"","requester_name":"","channel":"","resolution_notes":"","attachments":"","sub_category":"","assigned_date":-1,"close_notes":"","count":-1,"manager":"","manager_approved_date":-1,"manager_status":"","sla":"","kb_article":"","resolution_interval":-1,"close_interval":-1,"interval":-1,"submission_date":-1,"resolution":"","due_date":-1,"phone_num":""},"groups":[""],"custom_properties":[{"name":"Comments","type":"string"},{"name":"Count","type":"number"},{"name":"Resolved Date","type":"timestamp"},{"name":"Department","type":"string","value":"Customer Support | Technical Support | Marketing"}]}},"noteRequest":{"type":"object","properties":{"type":{"type":"string"},"content":{"type":"string"}},"required":["ID","type","content"],"example":{"type":"prnote/privatenote","content":"This is my first note"}},"noteResponse":{"type":"object","properties":{"message":{"type":"string","example":"Note added successfully"}},"required":["message"]},"organization":{"type":"object","properties":{"id":{"type":"string"},"created_time":{"type":"integer","format":"int64","description":"UTC Milliseconds"},"modified_time":{"type":"integer","format":"int64","description":"UTC Milliseconds"},"created_by":{"type":"string"},"modified_by":{"type":"string"},"domains":{"type":"array","items":{"type":"string"}},"users":{"type":"array","items":{"type":"string"}},"tags":{"type":"array","items":{"type":"string"}},"share_records":{"type":"boolean"},"share_comments":{"type":"boolean"},"custom_attributes":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string"},"key":{"type":"string"},"value":{"type":"string"}}}}},"example":{"id":"ed58fdc0-5a20-425e-ac53-071f60fe13b4","caption":"Organzation1","description":"Organzation description","created_time":"1743577198699","modified_time":"1743584392582","created_by":"0ffa63d4-11e3-4424-a354-8c20c9377b6d","modified_by":"0ffa63d4-11e3-4424-a354-8c20c9377b6d","domains":null,"users":null,"tags":null,"share_records":"false","share_comments":"false","custom_attributes":[{"type":"bool","key":"Value1","value":"true"},{"type":"text","key":"Value2","value":"test"}]}},"organizationCreateRequest":{"type":"object","properties":{"caption":{"type":"string"},"description":{"type":"string"},"domains":{"type":"array","items":{"type":"string"}},"custom_attributes":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string"},"key":{"type":"string"},"value":{"type":"string"}}}}}},"organizationUpdateRequest":{"type":"object","properties":{"caption":{"type":"string"},"description":{"type":"string"},"domains":{"type":"array","items":{"type":"string"}},"custom_attributes":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string"},"key":{"type":"string"},"value":{"type":"string"}}}}}},"customAttributeDefinition":{"type":"object","properties":{"id":{"type":"string"},"created_time":{"type":"integer","format":"int64","description":"UTC Milliseconds"},"modified_time":{"type":"integer","format":"int64","description":"UTC Milliseconds"},"created_by":{"type":"string"},"modified_by":{"type":"string"},"entity_type":{"type":"string"},"key":{"type":"string"},"label":{"type":"string"},"type":{"type":"string"},"required":{"type":"boolean"},"available_to_non_admins":{"type":"boolean"}},"example":{"id":"042106a1-b94e-47b4-b9a5-7f65f27c8fb8","created_time":"1743510735145","modified_time":"1743510735145","created_by":"0ffa63d4-11e3-4424-a354-8c20c9377b6d","modified_by":"0ffa63d4-11e3-4424-a354-8c20c9377b6d","entity_type":"organization","key":"organization","label":"organization name","type":"text","required":"false","available_to_non_admins":"true"}},"customAttributeDefinationCreateRequest":{"type":"object","properties":{"key":{"type":"string"},"label":{"type":"string"},"entity_type":{"type":"string","enum":["customer","organization"]},"type":{"type":"string","enum":["bool","text","date","number"]}}},"customAttributeDefinationUpdateRequest":{"type":"object","properties":{"key":{"type":"string"},"label":{"type":"string"},"entity_type":{"type":"string","enum":["customer","organization"]},"type":{"type":"string","enum":["bool","text","date","number"]}}},"customer":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"created_time":{"type":"integer","format":"int64"},"modified_time":{"type":"integer","format":"int64"},"created_by":{"type":"string","format":"uuid"},"modified_by":{"type":"string","format":"uuid"},"status":{"type":"string"},"firstname":{"type":"string"},"lastname":{"type":"string"},"role":{"type":"string","enum":["user","group","admin","buyer","visitor","guest","designer","cpuser","agent"]},"preferences":{"type":"object","properties":{"address":{"type":"object","properties":{"street":{"type":"string"},"city":{"type":"string"},"state":{"type":"string"},"zip":{"type":"string"},"country":{"type":"string"}}},"ui_locale":{"type":"string"},"data_locale":{"type":"string"},"timezone":{"type":"string"},"manager":{"type":"object","properties":{"phone":{"type":"object","properties":{"number":{"type":"string"},"internationalNumber":{"type":"string"},"nationalNumber":{"type":"string"},"e164Number":{"type":"string"},"countryCode":{"type":"string"},"dialCode":{"type":"string"}}}}},"solutions":{"type":"array","items":{"type":"string"}},"custom_attr":{"type":"object","additionalProperties":{"type":"string"}}}},"outOfOfficeStatus":{"type":"string"},"tags":{"type":"array","items":{"type":"string"}},"email":{"type":"string","format":"email"},"sms":{"type":"boolean"},"device":{"type":"boolean"},"group_count":{"type":"integer"},"notification":{"type":"boolean"}},"example":{"id":"123e4567-e89b-12d3-a456-426614174000","created_time":1712060400,"modified_time":1712156800,"created_by":"123e4567-e89b-12d3-a456-426614174001","modified_by":"123e4567-e89b-12d3-a456-426614174002","status":"active","firstname":"John","lastname":"Doe","role":"cpuser","preferences":{"address":{"street":"123 Main St","city":"New York","state":"NY","zip":"10001","country":"USA"},"ui_locale":"en-US","data_locale":"en-GB","timezone":"America/New_York","manager":{"phone":{"number":"+15551234567","internationalNumber":"+1 555-123-4567","nationalNumber":"(555) 123-4567","e164Number":"+15551234567","countryCode":"1","dialCode":"+1"}},"solutions":["CRM","Support"],"custom_attr":{"loyalty_level":"gold","preferred_contact":"email"}},"outOfOfficeStatus":"available","tags":["vip","long-term-customer"],"email":"johndoe@example.com","sms":true,"device":false,"group_count":3,"notification":true}},"customerRemoveResponse":{"type":"object","properties":{"id":{"type":"string"},"status":{"type":"string"}},"example":{"id":"123e4567-e89b-12d3-a456-426614174000","status":"deleted"}},"recordSearchFilters":{"type":"object","description":"Filters for searching records. Each key is a field name and value is in format `OPERATOR:value`. Supported operators: EQ, NE, GT, GTE, LT, LTE, LIKE, IN, NIN.","additionalProperties":{"type":"string","description":"Filter value in format OPERATOR:value"},"example":{"status":"EQ:Open","priority":"NE:Critical"}},"recordCreateRequest":{"type":"object","description":"Request body for creating a new record. Pass the record fields directly as key-value pairs.","additionalProperties":true,"example":{"name":"John Doe","email":"john.doe@example.com","status":"active","department":"Engineering"}},"recordUpdateRequest":{"type":"object","description":"Request body for updating an existing record. Pass the fields to update directly as key-value pairs.","additionalProperties":true,"example":{"status":"inactive","department":"Sales"}},"recordResponse":{"type":"object","description":"Response containing the record data directly as key-value pairs","additionalProperties":true,"example":{"id":"12345","name":"John Doe","email":"john.doe@example.com","status":"active","createdTime":"2024-04-02T10:00:00Z","updatedTime":"2024-04-03T12:00:00Z"}},"recordListResponse":{"type":"object","description":"Paginated list of records","properties":{"start":{"type":"integer","description":"Starting index"},"rows":{"type":"integer","description":"Number of rows per page"},"numFound":{"type":"integer","description":"Total number of records found"},"list":{"type":"array","description":"Array of records","items":{"type":"object","additionalProperties":true}}},"example":{"start":0,"rows":12,"numFound":150,"list":[{"id":"12345","name":"John Doe","email":"john.doe@example.com","status":"active"},{"id":"12346","name":"Jane Smith","email":"jane.smith@example.com","status":"active"}]}},"recordDeleteResponse":{"type":"object","description":"Response after deleting a record","properties":{"id":{"type":"string","description":"ID of the deleted record"},"status":{"type":"string","description":"Deletion status"}},"example":{"id":"EXT-12345","status":"deleted"}},"bulkRecordRequest":{"type":"object","description":"Request body for synchronous bulk operations","properties":{"operation":{"type":"string","description":"Type of bulk operation","enum":["create","update","upsert","delete"],"default":"upsert"},"list":{"type":"array","description":"Array of records to process (max 1000)","maxItems":1000,"items":{"type":"object","additionalProperties":true}}},"required":["list"],"example":{"operation":"upsert","list":[{"id":"12345","name":"John Doe","email":"john@example.com"},{"id":"12346","name":"Jane Smith","email":"jane@example.com"}]}},"bulkRecordResponse":{"type":"object","description":"Response from synchronous bulk operation","properties":{"list":{"type":"array","description":"Results for each record","items":{"type":"object","properties":{"status":{"type":"string","enum":["success","failed"]},"error":{"type":"string","description":"Error message if failed"}},"additionalProperties":true}}},"example":{"list":[{"id":"12345","name":"John Doe","status":"success"},{"id":"12346","status":"failed","error":"Validation error"}]}},"asyncBulkRecordRequest":{"type":"object","description":"Request body for asynchronous bulk operations","properties":{"operation":{"type":"string","description":"Type of bulk operation","enum":["create","update","upsert","delete"],"default":"upsert"},"list":{"type":"array","description":"Array of records to process","items":{"type":"object","additionalProperties":true}}},"required":["list"],"example":{"operation":"upsert","list":[{"id":"12345","name":"John Doe"}]}},"asyncJobResponse":{"type":"object","description":"Response when async job is accepted","properties":{"jobId":{"type":"string","maxLength":32,"pattern":"^[a-f0-9]{32}$","description":"32-character job identifier (UUID)"},"status":{"type":"string","description":"Job status","enum":["ACCEPTED"]},"message":{"type":"string","description":"Status message"},"recordCount":{"type":"integer","description":"Number of records submitted"},"statusUrl":{"type":"string","description":"URL to check job status"},"estimatedCompletionTime":{"type":"string","description":"Estimated time to complete"}},"example":{"jobId":"a75cdd6ea15a4113bcb08279f4f18200","status":"ACCEPTED","message":"Request accepted for async processing","recordCount":5000,"statusUrl":"/openapi/records/v1/customers/jobs/a75cdd6ea15a4113bcb08279f4f18200","estimatedCompletionTime":"500000ms"}},"jobStatusResponse":{"type":"object","description":"Status of an async job","properties":{"jobId":{"type":"string","maxLength":32,"pattern":"^[a-f0-9]{32}$","description":"32-character job identifier (UUID)"},"status":{"type":"string","description":"Current job status","enum":["PROCESSING","COMPLETED","FAILED"]},"objectType":{"type":"string","description":"Type of object being processed"},"errorMessage":{"type":"string","description":"Error message if job failed","nullable":true}},"example":{"jobId":"a75cdd6ea15a4113bcb08279f4f18200","status":"COMPLETED","objectType":"record","errorMessage":null}},"recordsApiError":{"type":"object","description":"Error response for Records API","properties":{"message":{"type":"string","description":"Error message"},"code":{"type":"string","description":"Error code"},"details":{"type":"object","description":"Additional error details","additionalProperties":true}},"example":{"message":"Entity name is required","code":"VALIDATION_ERROR","details":{"field":"entityName","constraint":"required"}}},"userCreateRequest":{"type":"object","description":"Request body for creating a user with generic key-value pairs","properties":{"username":{"type":"string","description":"Username (required)"},"email":{"type":"string","format":"email","description":"Email address (required)"},"first_name":{"type":"string","description":"First name"},"middle_name":{"type":"string","description":"Middle name"},"last_name":{"type":"string","description":"Last name"},"phone":{"type":"string","description":"Phone number in E.164 format"},"role":{"type":"string","description":"User role"},"status":{"type":"string","description":"User status"},"out_of_office_status":{"type":"string","description":"Out of office status"},"signature":{"type":"string","description":"Email signature"},"street":{"type":"string","description":"Street address"},"city":{"type":"string","description":"City"},"state":{"type":"string","description":"State"},"country":{"type":"string","description":"Country code"},"zip":{"type":"string","description":"Zip/postal code"},"language":{"type":"string","description":"UI locale"},"region":{"type":"string","description":"Data locale"},"timezone":{"type":"string","description":"Timezone"},"employee_id":{"type":"string","description":"Employee ID"},"cost_center":{"type":"string","description":"Cost center"},"division":{"type":"string","description":"Division"},"department":{"type":"string","description":"Department"},"organization":{"type":"string","description":"Organization"},"manager":{"oneOf":[{"type":"object","description":"Manager details object","properties":{"id":{"type":"string","description":"Manager user ID"},"name":{"type":"string","description":"Manager name"},"email":{"type":"string","description":"Manager email"}},"required":["id"]},{"type":"string","description":"Manager user ID"}]},"default_group_id":{"type":"string","description":"Default group ID"},"groups":{"type":"array","description":"Groups to assign user to","items":{"type":"object","properties":{"id":{"type":"string","description":"Group ID"},"name":{"type":"string","description":"Group name"}},"required":["id"]}},"tags":{"type":"array","description":"User tags","items":{"type":"string"}},"custom_attributes":{"type":"object","description":"Custom attributes","additionalProperties":true}},"required":["username","email"],"additionalProperties":false,"example":{"username":"john.doe","first_name":"John","middle_name":"M","last_name":"Doe","email":"john.doe@example.com","phone":"+1234567890","role":"agent","status":"active","department":"Support","employee_id":"EMP001","manager":{"id":"mgr-123","name":"Jane Manager","email":"jane@example.com"},"custom_attributes":{"hire_date":"2024-01-15","team":"Customer Success"},"tags":["support","tier1"]}},"userUpdateRequest":{"type":"object","description":"Request body for updating a user with generic key-value pairs. All fields are optional.","properties":{"username":{"type":"string","description":"Username"},"email":{"type":"string","format":"email","description":"Email address"},"first_name":{"type":"string","description":"First name"},"middle_name":{"type":"string","description":"Middle name"},"last_name":{"type":"string","description":"Last name"},"phone":{"type":"string","description":"Phone number in E.164 format"},"role":{"type":"string","description":"User role"},"status":{"type":"string","description":"User status"},"out_of_office_status":{"type":"string","description":"Out of office status"},"signature":{"type":"string","description":"Email signature"},"street":{"type":"string","description":"Street address"},"city":{"type":"string","description":"City"},"state":{"type":"string","description":"State"},"country":{"type":"string","description":"Country code"},"zip":{"type":"string","description":"Zip/postal code"},"language":{"type":"string","description":"UI locale"},"region":{"type":"string","description":"Data locale"},"timezone":{"type":"string","description":"Timezone"},"employee_id":{"type":"string","description":"Employee ID"},"cost_center":{"type":"string","description":"Cost center"},"division":{"type":"string","description":"Division"},"department":{"type":"string","description":"Department"},"organization":{"type":"string","description":"Organization"},"manager":{"oneOf":[{"type":"object","description":"Manager details object","properties":{"id":{"type":"string","description":"Manager user ID"},"name":{"type":"string","description":"Manager name"},"email":{"type":"string","description":"Manager email"}},"required":["id"]},{"type":"string","description":"Manager user ID"}]},"default_group_id":{"type":"string","description":"Default group ID"},"groups":{"type":"array","description":"Groups to assign user to","items":{"type":"object","properties":{"id":{"type":"string","description":"Group ID"},"name":{"type":"string","description":"Group name"}},"required":["id"]}},"tags":{"type":"array","description":"User tags","items":{"type":"string"}},"custom_attributes":{"type":"object","description":"Custom attributes","additionalProperties":true}},"additionalProperties":false,"example":{"department":"Customer Success","employee_id":"EMP002","custom_attributes":{"team":"Enterprise Support"}}},"userPatchRequest":{"type":"object","description":"Request body for patching a user with JSON Patch-like operations","required":["operations"],"properties":{"operations":{"type":"array","description":"Array of patch operations to apply","items":{"type":"object","required":["op","path"],"properties":{"op":{"type":"string","enum":["add","replace","remove"],"description":"The operation to perform"},"path":{"type":"string","description":"The field path to modify (e.g., 'email', 'department', 'custom_attributes.team')"},"value":{"description":"The value to set (required for add/replace operations)"}}}}},"example":{"operations":[{"op":"replace","path":"department","value":"Engineering"},{"op":"replace","path":"status","value":"active"},{"op":"add","path":"custom_attributes.team","value":"Platform"},{"op":"remove","path":"signature"}]}},"userResponse":{"type":"object","description":"User response with generic key-value pairs","properties":{"id":{"type":"string","description":"User ID"},"username":{"type":"string","description":"Username"},"email":{"type":"string","format":"email","description":"Email address"},"first_name":{"type":"string","description":"First name"},"middle_name":{"type":"string","description":"Middle name"},"last_name":{"type":"string","description":"Last name"},"phone":{"type":"string","description":"Phone number in E.164 format"},"role":{"type":"string","description":"User role"},"status":{"type":"string","description":"User status"},"out_of_office_status":{"type":"string","description":"Out of office status"},"user_source":{"type":"string","description":"Source of user creation"},"signature":{"type":"string","description":"Email signature"},"street":{"type":"string","description":"Street address"},"city":{"type":"string","description":"City"},"state":{"type":"string","description":"State"},"country":{"type":"string","description":"Country code"},"zip":{"type":"string","description":"Zip/postal code"},"language":{"type":"string","description":"UI locale"},"region":{"type":"string","description":"Data locale"},"timezone":{"type":"string","description":"Timezone"},"employee_id":{"type":"string","description":"Employee ID"},"cost_center":{"type":"string","description":"Cost center"},"division":{"type":"string","description":"Division"},"department":{"type":"string","description":"Department"},"organization":{"type":"string","description":"Organization"},"manager":{"type":"object","description":"Manager details","properties":{"id":{"type":"string","description":"Manager user ID"},"name":{"type":"string","description":"Manager name"},"email":{"type":"string","description":"Manager email"}}},"created_at":{"type":"integer","format":"int64","description":"Creation timestamp in milliseconds"},"created_by":{"type":"string","description":"User ID who created this user"},"updated_at":{"type":"integer","format":"int64","description":"Last update timestamp in milliseconds"},"updated_by":{"type":"string","description":"User ID who last updated this user"},"default_group_id":{"type":"string","description":"Default group ID"},"default_group_name":{"type":"string","description":"Default group name"},"groups":{"type":"array","description":"Groups the user belongs to","items":{"type":"object","properties":{"id":{"type":"string","description":"Group ID"},"name":{"type":"string","description":"Group name"}}}},"group_count":{"type":"integer","description":"Number of groups user belongs to"},"tags":{"type":"array","description":"User tags","items":{"type":"string"}},"custom_attributes":{"type":"object","description":"Custom attributes","additionalProperties":true}},"example":{"id":"1990b2fd-627c-416d-9cb9-fec64fcbe58d","username":"sampleuser","email":"sampleuser@gmail.com","first_name":"sample","middle_name":"samplemiddle","last_name":"user","phone":"+13454345677","role":"admin","status":"active","out_of_office_status":"inactive","user_source":"platform","street":"strret","city":"city","state":"state","country":"IN","zip":"98768","employee_id":"345653","cost_center":"cctest","division":"divisiontest","department":"departtest","organization":"orgtest","manager":{"id":"de858ab7-de2a-45b2-9502-bcfb1d0b7067","name":"testuser","email":"testuser@gmail.com"},"created_at":1775201132443,"created_by":"de858ab7-de2a-45b2-9502-bcfb1d0b7067","updated_at":1780263992590,"updated_by":"de858ab7-de2a-45b2-9502-bcfb1d0b7067","default_group_id":"ab5b8a01-3d2b-4daa-a8ad-bb5ba3f3e117","default_group_name":"AgentGroup","groups":[{"id":"bf309e55-40bd-4f37-998e-9de70f6edf28","name":"moderator"},{"id":"ab5b8a01-3d2b-4daa-a8ad-bb5ba3f3e117","name":"AgentGroup"}],"group_count":2,"custom_attributes":{"testNum":"testN1","testAttr":"testStr1","testDate":"testD1","testAttr2":"testStr2"},"tags":["test","test2","test3","test4","test5"]}},"userListResponse":{"type":"object","description":"Paginated list of users","properties":{"start":{"type":"integer"},"rows":{"type":"integer"},"numFound":{"type":"integer"},"list":{"type":"array","items":{"$ref":"#/components/schemas/userResponse"}}}},"groupCreateRequest":{"type":"object","description":"Request body for creating a group","properties":{"name":{"type":"string","description":"Group name"},"description":{"type":"string","description":"Group description"},"tags":{"type":"array","items":{"type":"string"},"description":"Group tags"},"members":{"type":"array","items":{"type":"object","properties":{"user_id":{"type":"string","description":"User ID"},"role":{"type":"string","description":"Member role (admin/member)","default":"member"}},"required":["user_id"]},"description":"Group members"}},"required":["name"],"example":{"name":"Support Team","description":"Customer support team","tags":["support","customer-service"],"members":[{"user_id":"user-1","role":"admin"},{"user_id":"user-2","role":"member"}]}},"groupUpdateRequest":{"type":"object","description":"Request body for updating a group","properties":{"name":{"type":"string","description":"Group name"},"description":{"type":"string","description":"Group description"},"tags":{"type":"array","items":{"type":"string"},"description":"Group tags"},"members":{"type":"array","items":{"type":"object","properties":{"user_id":{"type":"string","description":"User ID"},"role":{"type":"string","description":"Member role (admin/member)"}},"required":["user_id"]},"description":"Group members"}},"example":{"description":"Updated description","tags":["support","priority"],"members":[{"user_id":"user-1","role":"admin"},{"user_id":"user-2","role":"member"},{"user_id":"user-3","role":"member"}]}},"groupResponse":{"type":"object","description":"Group response","properties":{"id":{"type":"string","description":"Group ID"},"name":{"type":"string","description":"Group name"},"description":{"type":"string","description":"Group description"},"member_count":{"type":"integer","description":"Number of members"},"members":{"type":"array","items":{"type":"object","properties":{"user_id":{"type":"string","description":"User ID"},"user_name":{"type":"string","description":"Username"},"role":{"type":"string","description":"Member role (admin/member)"}}},"description":"Group members"},"tags":{"type":"array","items":{"type":"string"},"description":"Group tags"},"created_at":{"type":"integer","format":"int64","description":"Creation timestamp"},"updated_at":{"type":"integer","format":"int64","description":"Last update timestamp"},"created_by":{"type":"string","description":"Creator user ID"},"updated_by":{"type":"string","description":"Last updater user ID"}},"example":{"id":"ab5b8a01-3d2b-4daa-a8ad-bb5ba3f3e117","name":"AgentGroup","description":"AgentGroup","member_count":2,"members":[{"user_id":"58d5e4c9-60e6-41cc-a168-c8c633c55fce","user_name":"testuser","role":"member"},{"user_id":"de858ab7-de2a-45b2-9502-bcfb1d0b7067","user_name":"testing","role":"admin"}],"tags":["tg1","tg2","tg3"],"created_at":1775201152353,"updated_at":1780268689433,"created_by":"de858ab7-de2a-45b2-9502-bcfb1d0b7067","updated_by":"de858ab7-de2a-45b2-9502-bcfb1d0b7067"}},"groupListResponse":{"type":"object","description":"Paginated list of groups","properties":{"start":{"type":"integer"},"rows":{"type":"integer"},"numFound":{"type":"integer"},"list":{"type":"array","items":{"$ref":"#/components/schemas/groupResponse"}}}},"deleteResponse":{"type":"object","description":"Response after deleting a resource","properties":{"id":{"type":"string"},"status":{"type":"string"}},"example":{"id":"user-123","status":"deleted"}}},"responses":{"400Status":{"description":"Invalid Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}},"401Status":{"description":"Un Authorized Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}},"GenericError":{"description":"An error occured while processing the request.\nPlease contact **support@wavity.com**\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}},"404Status":{"description":"Resource Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/recordsApiError"},"examples":{"entityNotFound":{"summary":"Entity not found","value":{"message":"Failed to fetch app details with caption customers","code":"ENTITY_NOT_FOUND"}},"recordNotFound":{"summary":"Record not found","value":{"message":"Record not found with external ID: EXT-12345","code":"RECORD_NOT_FOUND"}},"jobNotFound":{"summary":"Job not found","value":{"message":"Job not found with ID: 550e8400","code":"JOB_NOT_FOUND"}}}}}},"422Status":{"description":"Unprocessable Entity - Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/recordsApiError"},"examples":{"missingRequiredField":{"summary":"Missing required field","value":{"message":"Required field 'email' is missing","code":"VALIDATION_ERROR","details":{"field":"email","constraint":"required"}}},"invalidFieldType":{"summary":"Invalid field type","value":{"message":"Field 'age' must be a number","code":"VALIDATION_ERROR","details":{"field":"age","expected":"number","received":"string"}}},"duplicateExternalId":{"summary":"Duplicate external ID","value":{"message":"Record with external ID 'EXT-12345' already exists","code":"DUPLICATE_EXTERNAL_ID"}},"batchSizeExceeded":{"summary":"Batch size exceeded","value":{"message":"Batch size exceeds maximum allowed: 1000","code":"BATCH_SIZE_EXCEEDED","details":{"maxBatchSize":1000,"requestedSize":1500}}},"invalidOperation":{"summary":"Invalid operation type","value":{"message":"Invalid operation type. Must be one of: create, update, upsert, delete","code":"INVALID_OPERATION"}}}}}},"429Status":{"description":"Too Many Requests - Rate Limit Exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/recordsApiError"},"examples":{"standardRateLimit":{"summary":"Standard rate limit exceeded","value":{"message":"Too many requests, please try again later.","code":"RATE_LIMIT_EXCEEDED","details":{"retryAfter":"60 seconds","limit":20,"windowMs":60000}}},"bulkRateLimit":{"summary":"Bulk operation rate limit exceeded","value":{"message":"Too many bulk requests, please try again later.","code":"RATE_LIMIT_EXCEEDED","details":{"retryAfter":"60 seconds","limit":10,"windowMs":60000}}},"asyncRateLimit":{"summary":"Async operation rate limit exceeded","value":{"message":"Too many async requests, please try again later.","code":"RATE_LIMIT_EXCEEDED","details":{"retryAfter":"60 seconds","limit":5,"windowMs":60000}}}}}}}},"securitySchemes":{"oAuth2AuthorizationCode":{"type":"oauth2","flows":{"authorizationCode":{"authorizationUrl":"/auth","tokenUrl":"/auth/token","refreshUrl":"/auth/token","scopes":{"read":"Read only access","write":"Read Write access"}}}},"oAuth2ClientCredentials":{"type":"oauth2","flows":{"clientCredentials":{"tokenUrl":"/auth/token","refreshUrl":"/auth/token","scopes":{"read":"Read only access","write":"Read Write access"}}}},"oAuth2PasswordGrant":{"type":"oauth2","flows":{"password":{"tokenUrl":"/auth/token","refreshUrl":"/auth/token","scopes":{"read":"Read only access","write":"Read Write access"}}}},"BearerAuthentication":{"type":"http","scheme":"bearer","bearerFormat":"JWT"}}}}