> ## Documentation Index
> Fetch the complete documentation index at: https://docs.superoffice.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Validate Ticket Relation Definition

> Validate a ticket relation definition against combinations of source and destination ticket types.

Returns one result per source/destination pair.
NsApiSlow threshold: 5000 ms.
<para />## Experimental: ## This method is experimental, subject to change, and not intended for partners.



## OpenAPI

````yaml /openapi/agent/openapi-v3-ListAgent.json post /api/v1/Agents/List/ValidateTicketRelationDefinition
openapi: 3.0.0
info:
  version: v1-Agents
  title: SuperOffice Agent API v1
  description: SuperOffice Agent API - ListAgent
  contact:
    name: SuperOffice DevNet
    url: https://docs.superoffice.com/en/api/index.html
    email: sdk@superoffice.com
servers:
  - url: http://localhost:56350
  - url: https://localhost:56350
security: []
tags: []
externalDocs:
  description: >-
    The SuperOffice DevNet Community has more documentation, examples, and
    discussion forums.
  url: https://community.superoffice.com/en/developer/
paths:
  /api/v1/Agents/List/ValidateTicketRelationDefinition:
    post:
      tags:
        - List_Agent
      summary: Validate Ticket Relation Definition
      description: "Validate a ticket relation definition against combinations of source and destination ticket types.\n\nReturns one result per source/destination pair.\r\nNsApiSlow threshold: 5000 ms.\r\n<para />## Experimental: ## This method is experimental, subject to change, and not intended for partners."
      operationId: v1ListAgent_ValidateTicketRelationDefinition
      parameters:
        - name: $select
          in: query
          description: >-
            Optional comma separated list of properties to include in the
            result. Other fields are then nulled out to reduce payload size:
            "Name,department,category". Default = show all fields.
          required: false
          schema:
            type: string
        - name: Accept-Language
          in: header
          description: >-
            Convert string references and multi-language values into a specified
            language (iso2) code.
          required: false
          schema:
            type: string
        - name: SO-Language
          in: header
          description: >-
            Convert string references and multi-language values into a specified
            language (iso2) code. Overrides Accept-Language value.
          required: false
          schema:
            type: string
        - name: SO-Culture
          in: header
          description: >-
            Number, date formatting in a specified culture (iso2 language) code.
            Partially overrides SO-Language/Accept-Language value. Ignored if no
            Language set.
          required: false
          schema:
            type: string
        - name: SO-TimeZone
          in: header
          description: >-
            Specify the timezone code that you would like date/time responses
            converted to.
          required: false
          schema:
            type: string
        - name: SO-AppToken
          in: header
          description: >-
            The application token that identifies the partner app. Used when
            calling Online WebAPI from a server.
          required: false
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: >-
                #/components/schemas/SuperOffice.WebApi.v1.Carriers.ListCarriers.ValidateTicketRelationDefinitionRequest
          text/json:
            schema:
              $ref: >-
                #/components/schemas/SuperOffice.WebApi.v1.Carriers.ListCarriers.ValidateTicketRelationDefinitionRequest
          application/xml:
            schema:
              $ref: >-
                #/components/schemas/SuperOffice.WebApi.v1.Carriers.ListCarriers.ValidateTicketRelationDefinitionRequest
          text/xml:
            schema:
              $ref: >-
                #/components/schemas/SuperOffice.WebApi.v1.Carriers.ListCarriers.ValidateTicketRelationDefinitionRequest
          application/x-www-form-urlencoded:
            schema:
              $ref: >-
                #/components/schemas/SuperOffice.WebApi.v1.Carriers.ListCarriers.ValidateTicketRelationDefinitionRequest
          application/json-patch+json:
            schema:
              $ref: >-
                #/components/schemas/SuperOffice.WebApi.v1.Carriers.ListCarriers.ValidateTicketRelationDefinitionRequest
          application/merge-patch+json:
            schema:
              $ref: >-
                #/components/schemas/SuperOffice.WebApi.v1.Carriers.ListCarriers.ValidateTicketRelationDefinitionRequest
        description: >-
          TicketRelationDefinitionId, SourceTicketTypeIds,
          DestinationTicketTypeIds, RelationType
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: >-
                    #/components/schemas/SuperOffice.CRM.Services.TicketRelationDefinitionResult
            text/json:
              schema:
                type: array
                items:
                  $ref: >-
                    #/components/schemas/SuperOffice.CRM.Services.TicketRelationDefinitionResult
            application/xml:
              schema:
                type: array
                items:
                  $ref: >-
                    #/components/schemas/SuperOffice.CRM.Services.TicketRelationDefinitionResult
            text/xml:
              schema:
                type: array
                items:
                  $ref: >-
                    #/components/schemas/SuperOffice.CRM.Services.TicketRelationDefinitionResult
            application/json-patch+json:
              schema:
                type: array
                items:
                  $ref: >-
                    #/components/schemas/SuperOffice.CRM.Services.TicketRelationDefinitionResult
            application/merge-patch+json:
              schema:
                type: array
                items:
                  $ref: >-
                    #/components/schemas/SuperOffice.CRM.Services.TicketRelationDefinitionResult
      security:
        - SuperOffice_Password: []
          SuperId_Authentication: []
components:
  schemas:
    SuperOffice.WebApi.v1.Carriers.ListCarriers.ValidateTicketRelationDefinitionRequest:
      description: >-
        ValidateTicketRelationDefinition: Validate a ticket relation definition
        against combinations of source and destination ticket types. Returns one
        result per source/destination pair.
      type: object
      properties:
        TicketRelationDefinitionId:
          format: int32
          type: integer
        SourceTicketTypeIds:
          type: array
          items:
            format: int32
            type: integer
        DestinationTicketTypeIds:
          type: array
          items:
            format: int32
            type: integer
        RelationType:
          enum:
            - Related
            - Parent
            - Child
          type: string
    SuperOffice.CRM.Services.TicketRelationDefinitionResult:
      description: "Validation result for a single source/destination ticket type combination in a relation definition.\r\n<para />\r\nCarrier object for TicketRelationDefinitionResult.\r\nServices for the TicketRelationDefinitionResult Carrier is available from the <see cref=\"T:SuperOffice.CRM.Services.IListAgent\">List Agent</see>."
      type: object
      properties:
        SourceTicketTypeId:
          format: int32
          description: The source ticket type id this result applies to.
          type: integer
        DestinationTicketTypeId:
          format: int32
          description: The destination ticket type id this result applies to.
          type: integer
        IsValid:
          description: >-
            True if no conflicting relation definition exists for this
            combination.
          type: boolean
        ExistingRelationDefinitionName:
          description: Name of the conflicting relation definition if IsValid is false.
          type: string

````

## Related topics

- [SuperOffice.WebApi.Data.List ValidateTicketRelationDefinitionRequest](/en/api/reference/webapi/SuperOffice.WebApi.Data.List_ValidateTicketRelationDefinitionRequest.md)
- [SuperOffice.WebApi.Agents.IListAgent](/en/api/reference/webapi/SuperOffice.WebApi.Agents.IListAgent.md)
- [SuperOffice.WebApi.Agents.ListAgent](/en/api/reference/webapi/SuperOffice.WebApi.Agents.ListAgent.md)
- [WebAPI changes in SuperOffice 12.0](/release-notes/12/api/changes-webapi-12.0.342.0.md)
- [Validate Ticket Relations](/en/api/reference/restful/agent/ticket_agent/validate-ticket-relations.md)
- [SuperOffice.WebApi.Data.Ticket ValidateTicketRelationsRequest](/en/api/reference/webapi/SuperOffice.WebApi.Data.Ticket_ValidateTicketRelationsRequest.md)
