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

# Get Ticket Relation Actions

> Get the relation-driven actions that apply to a ticket, such as whether to offer closing the parent or whether open children are blocking the ticket from being closed.

NsApiSlow threshold: 5000 ms.
<para />## Experimental: ## This method is experimental, subject to change, and not intended for partners.



## OpenAPI

````yaml /openapi/agent/openapi-v3-TicketAgent.json post /api/v1/Agents/Ticket/GetTicketRelationActions
openapi: 3.0.0
info:
  version: v1-Agents
  title: SuperOffice Agent API v1
  description: SuperOffice Agent API - TicketAgent
  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/Ticket/GetTicketRelationActions:
    post:
      tags:
        - Ticket_Agent
      summary: Get Ticket Relation Actions
      description: "Get the relation-driven actions that apply to a ticket, such as whether to offer closing the parent or whether open children are blocking the ticket from being closed.\n\nNsApiSlow threshold: 5000 ms.\r\n<para />## Experimental: ## This method is experimental, subject to change, and not intended for partners."
      operationId: v1TicketAgent_GetTicketRelationActions
      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.TicketCarriers.GetTicketRelationActionsRequest
          text/json:
            schema:
              $ref: >-
                #/components/schemas/SuperOffice.WebApi.v1.Carriers.TicketCarriers.GetTicketRelationActionsRequest
          application/xml:
            schema:
              $ref: >-
                #/components/schemas/SuperOffice.WebApi.v1.Carriers.TicketCarriers.GetTicketRelationActionsRequest
          text/xml:
            schema:
              $ref: >-
                #/components/schemas/SuperOffice.WebApi.v1.Carriers.TicketCarriers.GetTicketRelationActionsRequest
          application/x-www-form-urlencoded:
            schema:
              $ref: >-
                #/components/schemas/SuperOffice.WebApi.v1.Carriers.TicketCarriers.GetTicketRelationActionsRequest
          application/json-patch+json:
            schema:
              $ref: >-
                #/components/schemas/SuperOffice.WebApi.v1.Carriers.TicketCarriers.GetTicketRelationActionsRequest
          application/merge-patch+json:
            schema:
              $ref: >-
                #/components/schemas/SuperOffice.WebApi.v1.Carriers.TicketCarriers.GetTicketRelationActionsRequest
        description: TicketId, ParentTicketId, TicketTypeId
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: >-
                  #/components/schemas/SuperOffice.CRM.Services.TicketRelationAction
            text/json:
              schema:
                $ref: >-
                  #/components/schemas/SuperOffice.CRM.Services.TicketRelationAction
            application/xml:
              schema:
                $ref: >-
                  #/components/schemas/SuperOffice.CRM.Services.TicketRelationAction
            text/xml:
              schema:
                $ref: >-
                  #/components/schemas/SuperOffice.CRM.Services.TicketRelationAction
            application/json-patch+json:
              schema:
                $ref: >-
                  #/components/schemas/SuperOffice.CRM.Services.TicketRelationAction
            application/merge-patch+json:
              schema:
                $ref: >-
                  #/components/schemas/SuperOffice.CRM.Services.TicketRelationAction
      security:
        - SuperOffice_Password: []
          SuperId_Authentication: []
components:
  schemas:
    SuperOffice.WebApi.v1.Carriers.TicketCarriers.GetTicketRelationActionsRequest:
      description: >-
        GetTicketRelationActions: Get the relation-driven actions that apply to
        a ticket, such as whether to offer closing the parent or whether open
        children are blocking the ticket from being closed.
      type: object
      properties:
        TicketId:
          format: int32
          type: integer
        ParentTicketId:
          format: int32
          type: integer
        TicketTypeId:
          format: int32
          type: integer
    SuperOffice.CRM.Services.TicketRelationAction:
      description: "Relation-driven actions applicable to a ticket, indicating whether to offer closing the parent or whether open children are blocking the ticket from being closed.\r\n<para />\r\nCarrier object for TicketRelationAction.\r\nServices for the TicketRelationAction Carrier is available from the <see cref=\"T:SuperOffice.CRM.Services.ITicketAgent\">Ticket Agent</see>."
      type: object
      properties:
        TicketIdToClose:
          format: int32
          description: >-
            ID of the parent ticket to offer closing when all its children are
            closed. 0 if not applicable.
          type: integer
        IsParentRequired:
          description: True if a parent relation is mandatory for this ticket type.
          type: boolean
        CanCloseCurrentTicket:
          description: >-
            True if the ticket may be closed. False if unclosed children are
            blocking it.
          type: boolean
        Children:
          description: >-
            Ids of unclosed child tickets. If CanCloseCurrentTicket is false,
            these are the tickets blocking the close.
          type: array
          items:
            format: int32
            type: integer

````

## Related topics

- [SuperOffice.WebApi.Data.Ticket GetTicketRelationActionsRequest](/en/api/reference/webapi/SuperOffice.WebApi.Data.Ticket_GetTicketRelationActionsRequest.md)
- [SuperOffice.WebApi.Agents.TicketAgent](/en/api/reference/webapi/SuperOffice.WebApi.Agents.TicketAgent.md)
- [SuperOffice.WebApi.Agents.ITicketAgent](/en/api/reference/webapi/SuperOffice.WebApi.Agents.ITicketAgent.md)
- [WebAPI changes in SuperOffice 12.0](/release-notes/12/api/changes-webapi-12.0.342.0.md)
- [SuperOffice.WebApi.Data.TicketRelationAction](/en/api/reference/webapi/SuperOffice.WebApi.Data.TicketRelationAction.md)
- [Get Ticket Relations](/en/api/reference/restful/agent/ticket_agent/get-ticket-relations.md)
