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

# Group structure



## OpenAPI

````yaml https://api.inyett.com/swagger/v1/swagger.json get /1/{country}/CompanyData/{orgNr}/groupstructure
openapi: 3.0.4
info:
  title: Inyett Automation
  description: |-
    <h3>How to connect</h3>
                        <p>Read more about our API and how to connect on <a href='https://docs.inyett.com/home' target='_blank'>docs.inyett.com</a></p> <b>This API version has been deprecated.</b>
  version: '1.0'
servers: []
security:
  - X-Api-Key: []
  - Bearer: []
paths:
  /1/{country}/CompanyData/{orgNr}/groupstructure:
    get:
      tags:
        - Inyett Company Data
      summary: Group structure
      parameters:
        - name: country
          in: path
          required: true
          schema:
            $ref: '#/components/schemas/Country'
        - name: orgNr
          in: path
          required: true
          schema:
            type: string
        - name: AppId
          in: header
          description: App id
          schema:
            type: string
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GroupStructure'
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ProblemDetails'
      deprecated: true
components:
  schemas:
    Country:
      enum:
        - SE
        - 'NO'
      type: string
    GroupStructure:
      type: object
      properties:
        orgNumber:
          type: string
          nullable: true
        companyName:
          type: string
          nullable: true
        countryCode:
          type: string
          nullable: true
        countryName:
          type: string
          nullable: true
        ownedPercent:
          type: string
          nullable: true
        closestGroupMotherOrgNumber:
          type: string
          nullable: true
        groupMotherOrgNumber:
          type: string
          nullable: true
        groupMotherName:
          type: string
          nullable: true
        level:
          type: integer
          format: int32
        dateUpdated:
          type: string
          format: date-time
      additionalProperties: false
    ProblemDetails:
      type: object
      properties:
        type:
          type: string
          nullable: true
        title:
          type: string
          nullable: true
        status:
          type: integer
          format: int32
          nullable: true
        detail:
          type: string
          nullable: true
        instance:
          type: string
          nullable: true
      additionalProperties: {}
  securitySchemes:
    X-Api-Key:
      type: apiKey
      description: 'Api key needed to access the endpoints. X-Api-Key: My api key'
      name: X-Api-Key
      in: header
    Bearer:
      type: http
      description: Please enter a valid token
      scheme: Bearer
      bearerFormat: JWT

````