> ## 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.

# Default Ticket Relation Definition Entity

> Set default values into a new TicketRelationDefinitionEntity.

NetServer calculates default values on the entity, which is required when creating/storing a new instance Calls the List agent service CreateDefaultTicketRelationDefinitionEntity.
NsApiSlow threshold: 5000 ms.



## OpenAPI

````yaml /openapi/rest/openapi-v3-TicketRelationDefinition.json get /api/v1/TicketRelationDefinition/default
openapi: 3.0.0
info:
  version: v1-REST
  title: SuperOffice REST API v1
  description: SuperOffice REST API - TicketRelationDefinition
  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/TicketRelationDefinition/default:
    get:
      tags:
        - TicketRelationDefinition
      summary: Default Ticket Relation Definition Entity
      description: "Set default values into a new TicketRelationDefinitionEntity.\n\nNetServer calculates default values on the entity, which is required when creating/storing a new instance Calls the List agent service CreateDefaultTicketRelationDefinitionEntity.\r\nNsApiSlow threshold: 5000 ms."
      operationId: v1TicketRelationDefinitionEntity_DefaultTicketRelationDefinitionEntity
      parameters:
        - 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
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: >-
                  #/components/schemas/SuperOffice.CRM.Services.TicketRelationDefinitionEntity
            text/json:
              schema:
                $ref: >-
                  #/components/schemas/SuperOffice.CRM.Services.TicketRelationDefinitionEntity
            application/xml:
              schema:
                $ref: >-
                  #/components/schemas/SuperOffice.CRM.Services.TicketRelationDefinitionEntity
            text/xml:
              schema:
                $ref: >-
                  #/components/schemas/SuperOffice.CRM.Services.TicketRelationDefinitionEntity
            application/json-patch+json:
              schema:
                $ref: >-
                  #/components/schemas/SuperOffice.CRM.Services.TicketRelationDefinitionEntity
            application/merge-patch+json:
              schema:
                $ref: >-
                  #/components/schemas/SuperOffice.CRM.Services.TicketRelationDefinitionEntity
      security:
        - SuperOffice_Password: []
          SuperId_Authentication: []
components:
  schemas:
    SuperOffice.CRM.Services.TicketRelationDefinitionEntity:
      description: "Ticket relation definition entity\r\n<para />\r\nCarrier object for TicketRelationDefinitionEntity.\r\nServices for the TicketRelationDefinitionEntity Carrier is available from the <see cref=\"T:SuperOffice.CRM.Services.IListAgent\">List Agent</see>."
      type: object
      properties:
        TicketRelationDefId:
          format: int32
          description: Primary key
          type: integer
        Name:
          description: The name of this Ticket relation
          type: string
        Description:
          description: Tooltip or other description
          type: string
        Rank:
          format: int32
          description: Rank order
          type: integer
        RelationType:
          description: Type of the relation (Related, Parent, Child)
          enum:
            - Related
            - Parent
            - Child
          type: string
        IsBuiltIn:
          description: Is this row part of SuperOffice priming data
          type: boolean
        IsParentMandatory:
          description: Parent relation is mandatory when a new request is created
          type: boolean
        IsCloseParentWithChild:
          description: Close parent when all children are closed
          type: boolean
        IsPreventClosingParent:
          description: Prevent closing parent until all children are closed
          type: boolean
        IsCloseWithParent:
          description: Offer to close all related when parent is closed
          type: boolean
        SourceTicketTypes:
          description: Source ticket type(s) for this relation
          type: array
          items:
            format: int32
            type: integer
        DestinationTicketTypes:
          description: Destination ticket type(s) for this relation
          type: array
          items:
            format: int32
            type: integer
        TableRight:
          $ref: '#/components/schemas/SuperOffice.CRM.Security.TableRight'
        FieldProperties:
          description: >-
            Field property dictionary mapping field names to field access
            rights.
          type: object
          additionalProperties:
            $ref: '#/components/schemas/SuperOffice.CRM.Security.FieldProperty'
    SuperOffice.CRM.Security.TableRight:
      description: "Wraps a table right together with an explanatory reason.\r\nCode can indicate why access is restricted."
      type: object
      properties:
        Mask:
          type: string
        Reason:
          type: string
    SuperOffice.CRM.Security.FieldProperty:
      description: >-
        Class holding properties like field length, field type about a field in
        the carrier.
      type: object
      properties:
        FieldRight:
          $ref: '#/components/schemas/SuperOffice.CRM.Security.FieldRight'
        FieldType:
          type: string
        FieldLength:
          format: int32
          description: ''
          type: integer
    SuperOffice.CRM.Security.FieldRight:
      description: "Wraps the field right together with an explanatory reason.\r\nAlso adds logical operators to the field rights so that they can be easily combined."
      type: object
      properties:
        Mask:
          type: string
        Reason:
          type: string

````

## Related topics

- [Create Default Ticket Relation Definition Entity](/en/api/reference/restful/agent/list_agent/create-default-ticket-relation-definition-entity.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)
- [Default Relation Definition Entity](/en/api/reference/restful/rest/relationdefinition/default-relation-definition-entity.md)
- [Delete Ticket Relation Definition Entity](/en/api/reference/restful/rest/ticketrelationdefinition/delete-ticket-relation-definition-entity.md)
- [SuperOffice.WebApi.Data.TicketRelationDefinitionEntity](/en/api/reference/webapi/SuperOffice.WebApi.Data.TicketRelationDefinitionEntity.md)
