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

# Show teams

> Retrieves team assignations for a specific resource.



## OpenAPI

````yaml preview post /api/directory/resources.show-teams
openapi: 3.1.0
info:
  title: tipee
  version: preview
servers: []
security:
  - basicAuth: []
tags:
  - name: Activity
    description: Activity
  - name: Balances
    description: Balances
  - name: Directory
    description: Directory
  - name: Schedule
    description: Schedule
  - name: Timeclock
    description: Timeclock
paths:
  /api/directory/resources.show-teams:
    post:
      tags:
        - Directory
      summary: Show teams
      description: Retrieves team assignations for a specific resource.
      operationId: post_app_ui_api_directory_directoryquery_resourceteamsshow
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ShowResourceTeamsQuery'
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/ResourceTeamView'
components:
  schemas:
    ShowResourceTeamsQuery:
      required:
        - resource_id
      properties:
        resource_id:
          $ref: '#/components/schemas/Snowflake'
        team_ids:
          type: array
          items:
            $ref: '#/components/schemas/Snowflake'
        head:
          type: boolean
        date_range:
          $ref: '#/components/schemas/LocalDateInterval'
      type: object
    ResourceTeamView:
      required:
        - team
        - head
        - date_range
        - regrouping
        - contract_number
        - external_id
      properties:
        team:
          $ref: '#/components/schemas/TeamSummaryView'
        head:
          type: boolean
        date_range:
          $ref: '#/components/schemas/LocalDateInterval'
        regrouping:
          anyOf:
            - $ref: '#/components/schemas/Redacted'
            - type: string
            - type: 'null'
        contract_number:
          anyOf:
            - $ref: '#/components/schemas/Redacted'
            - type: string
            - type: 'null'
        external_id:
          anyOf:
            - $ref: '#/components/schemas/Redacted'
            - type: string
            - type: 'null'
      type: object
    Snowflake:
      type: string
      format: snowflake
      example: '872815618512410358'
    LocalDateInterval:
      type: string
      format: local-date-interval
      example: 2019-11-11/2019-12-12
    TeamSummaryView:
      required:
        - id
        - name
      properties:
        id:
          $ref: '#/components/schemas/Snowflake'
        name:
          type: string
      type: object
    Redacted:
      required:
        - redacted
      properties:
        redacted:
          type: string
          example: forbidden
          enum:
            - forbidden
            - confidential
      type: object
      x-tipee-bindgen-redacted: true

````