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

# Pin or unpin a campaign

> Sets pinned. Pinned campaigns are listed first on the campaigns page and in GET /campaigns/list (newest first within pinned, then everything else newest first). The pin is workspace-wide, not per user. Omitting the field or sending false unpins. Nothing else about the campaign changes. 404 if the campaign is not in the workspace.

**Minimum role:** `edit` (`x-min-role`). **Destructive:** `false` (`x-destructive`).



## OpenAPI

````yaml /openapi.json post /campaigns/{campaign_id}/pin
openapi: 3.0.3
info:
  title: Sales Sequencer API
  version: '1'
  description: >-
    Every Sales Sequencer action over HTTP. Each call runs as the API key's
    creator, with that user's role, in the key's workspace. Auth: X-API-Key
    header.
servers:
  - url: https://api.salessequencer.com/api/v1
security:
  - key: []
paths:
  /campaigns/{campaign_id}/pin:
    post:
      tags:
        - Campaigns
      summary: Pin or unpin a campaign
      description: >-
        Sets pinned. Pinned campaigns are listed first on the campaigns page and
        in GET /campaigns/list (newest first within pinned, then everything else
        newest first). The pin is workspace-wide, not per user. Omitting the
        field or sending false unpins. Nothing else about the campaign changes.
        404 if the campaign is not in the workspace.


        **Minimum role:** `edit` (`x-min-role`). **Destructive:** `false`
        (`x-destructive`).
      operationId: campaigns_set_pinned
      parameters:
        - in: path
          name: campaign_id
          required: true
          schema:
            type: integer
      requestBody:
        content:
          application/json:
            schema:
              properties:
                pinned:
                  description: true to pin, false to unpin.
                  type: boolean
              required:
                - pinned
              type: object
      responses:
        '200':
          description: >-
            Redirect; flash 'pinned = true' or 'pinned = false' (the value now
            stored).
components:
  securitySchemes:
    key:
      in: header
      name: X-API-Key
      type: apiKey

````

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