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

# Reatribui a ordem dos atalhos VoIP da organização



## OpenAPI

````yaml https://portal.unicontrol.me/v1/openapi post /v1/voip-shortcuts/reorder
openapi: 3.1.0
info:
  title: Unicontrol API
  description: Welcome
  version: 1.0.0
servers:
  - url: http://0.0.0.0:3000
    description: Local Server
  - url: https://portal.test.flexhome.casa
    description: Development
  - url: https://portal.unicontrol.me
    description: Production
security:
  - bearerAuth: []
paths:
  /v1/voip-shortcuts/reorder:
    post:
      tags:
        - VoIP
      summary: Reatribui a ordem dos atalhos VoIP da organização
      operationId: postV1Voip-shortcutsReorder
      parameters:
        - in: header
          name: X-Organization-Id
          required: false
          schema:
            type: string
          description: >-
            ID da organização para contexto (opcional). Quando presente, filtra
            recursos da org.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - ids
              properties:
                ids:
                  type: array
                  description: >-
                    IDs dos atalhos na nova ordem desejada. IDs fora da org são
                    ignorados.
                  items:
                    type: integer
            example:
              ids:
                - 3
                - 1
                - 2
      responses:
        '200':
          description: Lista reordenada
          content:
            application/json:
              schema:
                type: array
                items:
                  type: object
                  properties:
                    id:
                      type: integer
                    org_id:
                      type: string
                    label:
                      type: string
                    number:
                      type: string
                    icon:
                      type: string
                      nullable: true
                    position:
                      type: integer
                    created_at:
                      type: string
                      format: date-time
                    updated_at:
                      type: string
                      format: date-time
              example:
                - id: 1
                  org_id: org_xyz
                  label: Portaria
                  number: '2000'
                  icon: doorbell
                  position: 0
                  created_at: '2026-10-14T10:00:00Z'
                  updated_at: '2026-10-14T10:00:00Z'
        '400':
          description: Dados inválidos
          content:
            application/json:
              schema:
                type: object
                properties:
                  message:
                    type: string
              example:
                message: validation error
        '401':
          description: Não autenticado
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
              example:
                error: unauthorized
        '403':
          description: Acesso negado
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
              example:
                error: forbidden
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.