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

# Order pinned reports

> Pins are the workspace's: a report pinned to the home Dashboard's report menu (`dashboard`) or to the Reports tab of account pages (`accounts`) shows there for everyone, in the order set, as when an admin pins it on the reports page. Sets the order of a context's pins: send every report pinned there, each once (GET /v1/reports/pins), in the order to show them; anything else is a 422 naming what's missing, extra or repeated, and nothing changes. Returns the context's pins in their new order.



## OpenAPI

````yaml /api/statisfy-api.openapi.json put /v1/reports/pins/{context}/order
openapi: 3.1.0
info:
  description: >-
    The agent-first Statisfy API. Authenticate with an API key (`Authorization:
    Bearer stfy_live_…`), then call `GET /v1/meta/capabilities` to discover
    every operation and its schemas.
  title: Statisfy API
  version: 1.0.0
servers:
  - url: https://api.statisfy.com
    description: Production
security: []
paths:
  /v1/reports/pins/{context}/order:
    put:
      tags:
        - reports
      summary: Order pinned reports
      description: >-
        Pins are the workspace's: a report pinned to the home Dashboard's report
        menu (`dashboard`) or to the Reports tab of account pages (`accounts`)
        shows there for everyone, in the order set, as when an admin pins it on
        the reports page. Sets the order of a context's pins: send every report
        pinned there, each once (GET /v1/reports/pins), in the order to show
        them; anything else is a 422 naming what's missing, extra or repeated,
        and nothing changes. Returns the context's pins in their new order.
      operationId: reports_reorder_pins
      parameters:
        - description: >-
            Where the pin shows: `dashboard` is the report menu on the home
            Dashboard, `accounts` the Reports tab of every account page
          in: path
          name: context
          required: true
          schema:
            enum:
              - dashboard
              - accounts
            type: string
      requestBody:
        content:
          application/json:
            schema:
              additionalProperties: false
              properties:
                report_ids:
                  description: >-
                    Every report pinned to the context, each once, in the order
                    to show them
                  items:
                    type: string
                  minItems: 1
                  title: Report Ids
                  type: array
              required:
                - report_ids
              type: object
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ReportPinsResponse'
          description: Successful Response
      security:
        - HTTPBearer: []
components:
  schemas:
    ReportPinsResponse:
      properties:
        data:
          items:
            $ref: '#/components/schemas/ReportPin'
          title: Data
          type: array
      required:
        - data
      title: ReportPinsResponse
      type: object
    ReportPin:
      properties:
        context:
          enum:
            - dashboard
            - accounts
          title: Context
          type: string
        description:
          anyOf:
            - type: string
            - type: 'null'
          title: Description
        name:
          description: The report's name
          title: Name
          type: string
        pinned_at:
          anyOf:
            - format: date-time
              type: string
            - type: 'null'
          title: Pinned At
        position:
          description: Its place in the context, from 0
          title: Position
          type: integer
        report_id:
          description: The pinned report's id
          title: Report Id
          type: string
      required:
        - report_id
        - context
        - name
        - description
        - position
        - pinned_at
      title: ReportPin
      type: object
  securitySchemes:
    HTTPBearer:
      scheme: bearer
      type: http
      description: >-
        An API key, sent as `Authorization: Bearer stfy_live_…`. See
        [Authentication](/rest-api/authentication) for how to get one and which
        scopes it needs.

````

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