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

# Get the capacity plan

> Each section against its capacity today and for the next 12 months, the same figures as the Capacity tab in Scoutworks: young people now, who moves up in and ages out over the next 3 months, open waiting-list entries, a status word, the first month it reads full, and each month projected with and without the waiting list.



## OpenAPI

````yaml /api-reference/openapi/moving-on.json get /capacity-plan
openapi: 3.1.0
info:
  title: Scoutworks public API
  version: 1.32.0
  description: >-
    Read your Scout group’s data from your own tools: spreadsheets, scripts,
    Zapier or n8n, add members, waiting-list applications and draft events, keep
    its task boards up to date, and keep its books in step with your accounting
    tools. Every request is scoped to the group that owns the key.


    **Authentication.** Send a group API key as a Bearer token. Keys are created
    by a group admin and shown once.


    **Scopes.** Each operation names the scope it needs. Area scopes
    (`members:read`, `events:read`, `badges:read`, `waiting-list:read`,
    `tasks:read`, `accounting:read`, `expenses:read`, `suppliers:read`,
    `payments:read`, `gift-aid:read`, `adults:read`, `users:read`,
    `access:read`, `compliance:read`, `communications:read`, `hire:read`,
    `fundraising:read`, `moving-on:read`, `files:read`) open an area; a
    `.contacts`, `.people` or `.compliance` scope adds detail to that area’s
    responses. The `:write` scopes change data, as the admin who created the
    key: `members:write`, `waiting-list:write` and `events:write` add and update
    members, waiting-list applications and draft events, `tasks:write` adds and
    updates tasks, `accounting:write` changes the books and attaches receipts,
    and `files:write` uploads to the Knowledge Base, and `users:write` invites,
    changes, suspends and removes users, never a group admin, and `access:write`
    manages access policies and overrides, never an admin’s access. Uploads are
    virus scanned and count towards the group’s storage. A write never emails or
    notifies a family unless it sends `notify: true`. No scope moves money:
    nothing takes, changes, cancels or refunds a payment. Fields a key may not
    see are left out, not sent as null. Health, bank details and free-text notes
    are never available.


    **Pagination.** Lists return `{ data, nextCursor }`. Pass `nextCursor` back
    as `?cursor=`, with the same filters, until it is null. `limit` is 1 to 200.


    **Writing.** Send an `Idempotency-Key` with every `POST`, so a retry answers
    with the first record instead of making a second. Every record a write or a
    single-record `GET` returns carries an `ETag`: send it as `If-Match` on a
    `PATCH`, `PUT` or `DELETE` and a change made since answers 412
    `stale_write`. See https://developers.scoutworks.app/guides/writing-data.


    **Errors.** Every error is `{ error: { code, message } }`. Branch on `code`;
    `message` is for people and may change.


    **Compatibility.** We aim to change v1 only by addition: new endpoints, new
    optional parameters, new response fields and new enum values. Ignore fields
    you do not know and treat an unknown enum value as “other”. We will try to
    warn you before a breaking change, but one can still happen without notice,
    so check responses and fail loudly on an error. Changes are listed in the
    changelog at https://developers.scoutworks.app/changelog.


    **Rate limits.** 120 requests a minute per key. `RateLimit-*` headers report
    what is left. Writes and uploads have smaller limits of their own: see
    https://developers.scoutworks.app/guides/rate-limits.
servers:
  - url: https://api.scoutworks.app/api/v1
    description: Live
  - url: https://api-demo.scoutworks.app/api/v1
    description: Demo (sample data, reset weekly)
security:
  - bearerAuth: []
tags:
  - name: Moving on
    description: Who moves to which section, and the capacity plan, read only.
paths:
  /capacity-plan:
    get:
      tags:
        - Moving on
      summary: Get the capacity plan
      description: >-
        Each section against its capacity today and for the next 12 months, the
        same figures as the Capacity tab in Scoutworks: young people now, who
        moves up in and ages out over the next 3 months, open waiting-list
        entries, a status word, the first month it reads full, and each month
        projected with and without the waiting list.
      operationId: getCapacityPlan
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    $ref: '#/components/schemas/V1CapacityPlan'
                required:
                  - data
                additionalProperties: {}
          headers:
            RateLimit-Limit:
              description: Requests allowed in the current window.
              schema:
                type: integer
            RateLimit-Remaining:
              description: Requests left in the current window.
              schema:
                type: integer
            RateLimit-Reset:
              description: Seconds until the window resets.
              schema:
                type: integer
            ETag:
              description: >-
                The record’s version as this key reads it, totals included (a
                budget’s `spent` moves it). Send it as `If-Match` on your next
                change.
              schema:
                type: string
        '401':
          description: >-
            No API key, or one that is unknown, revoked or expired
            (`invalid_api_key`).
          headers:
            RateLimit-Limit:
              description: Requests allowed in the current window.
              schema:
                type: integer
            RateLimit-Remaining:
              description: Requests left in the current window.
              schema:
                type: integer
            RateLimit-Reset:
              description: Seconds until the window resets.
              schema:
                type: integer
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/V1Error'
        '403':
          description: The key lacks the scope this operation needs (`insufficient_scope`).
          headers:
            RateLimit-Limit:
              description: Requests allowed in the current window.
              schema:
                type: integer
            RateLimit-Remaining:
              description: Requests left in the current window.
              schema:
                type: integer
            RateLimit-Reset:
              description: Seconds until the window resets.
              schema:
                type: integer
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/V1Error'
        '429':
          description: Too many requests; wait `retryAfter` seconds (`rate_limited`).
          headers:
            RateLimit-Limit:
              description: Requests allowed in the current window.
              schema:
                type: integer
            RateLimit-Remaining:
              description: Requests left in the current window.
              schema:
                type: integer
            RateLimit-Reset:
              description: Seconds until the window resets.
              schema:
                type: integer
            Retry-After:
              description: Seconds to wait before trying again.
              schema:
                type: integer
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/V1Error'
        '500':
          description: Our fault; quote `errorRef` to support (`internal_error`).
          headers:
            RateLimit-Limit:
              description: Requests allowed in the current window.
              schema:
                type: integer
            RateLimit-Remaining:
              description: Requests left in the current window.
              schema:
                type: integer
            RateLimit-Reset:
              description: Seconds until the window resets.
              schema:
                type: integer
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/V1Error'
      security:
        - bearerAuth:
            - moving-on:read
components:
  schemas:
    V1CapacityPlan:
      type: object
      properties:
        months:
          type: array
          items:
            type: string
            pattern: ^\d{4}-\d{2}$
            description: A month, `YYYY-MM`, on the London calendar.
          description: The projected months, this month first.
        sections:
          type: array
          items:
            $ref: '#/components/schemas/V1CapacityPlanSection'
          description: >-
            Each active section in planning, in age order, as the Capacity tab
            in Scoutworks shows it.
        notPlaced:
          type: integer
          minimum: -9007199254740991
          maximum: 9007199254740991
          description: >-
            Open waiting-list entries with no section chosen, or for a section
            that has closed or left planning.
      required:
        - months
        - sections
        - notPlaced
    V1Error:
      type: object
      properties:
        error:
          type: object
          properties:
            code:
              type: string
              enum:
                - invalid_api_key
                - insufficient_scope
                - invalid_request
                - subscription_required
                - not_found
                - conflict
                - period_closed
                - source_locked
                - over_refund
                - possible_duplicate
                - invalid_transition
                - admin_protected
                - stale_write
                - insufficient_stock
                - not_available
                - not_downloadable
                - file_too_large
                - storage_full
                - unsupported_file_type
                - file_infected
                - scan_unavailable
                - service_unavailable
                - rate_limited
                - internal_error
            message:
              type: string
          required:
            - code
            - message
        errorRef:
          description: 'On a 500: a reference to quote to Scoutworks support.'
          type: string
        retryAfter:
          description: 'On a 429: seconds to wait before trying again.'
          type: integer
          minimum: -9007199254740991
          maximum: 9007199254740991
        matchingIds:
          description: >-
            On a 409 `possible_duplicate`: the ids of the records this one looks
            like, which `GET /members/{memberId}` or `GET
            /waiting-list/{entryId}` reads.
          type: array
          items:
            type: string
            format: uuid
            pattern: >-
              ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
      required:
        - error
    V1CapacityPlanSection:
      type: object
      properties:
        sectionId:
          type: string
          format: uuid
          pattern: >-
            ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
        name:
          type: string
        type:
          type: string
          enum:
            - squirrels
            - beavers
            - cubs
            - scouts
            - explorers
            - network
            - activity
          description: The age range it runs for. More values may be added.
        capacity:
          anyOf:
            - type: integer
              minimum: -9007199254740991
              maximum: 9007199254740991
            - type: 'null'
          description: Null when the group has not set one.
        currentMembers:
          type: integer
          minimum: -9007199254740991
          maximum: 9007199254740991
          description: >-
            Young people in the section today. One in two sections counts in
            both.
        waiting:
          type: integer
          minimum: -9007199254740991
          maximum: 9007199254740991
          description: >-
            Open waiting-list entries for the section: received, contacted or
            offered.
        next3Months:
          type: object
          properties:
            in:
              type: integer
              minimum: -9007199254740991
              maximum: 9007199254740991
            out:
              type: integer
              minimum: -9007199254740991
              maximum: 9007199254740991
          required:
            - in
            - out
          description: >-
            Moving up from the section below, and ageing out, over the next 3
            months.
        status:
          type: string
          enum:
            - over
            - full
            - nearly_full
            - space
            - no_capacity
          description: >-
            Today against capacity: `over`, `full` (95% or more), `nearly_full`
            (80% or more), `space`, or `no_capacity` when none is set.
        fullFrom:
          anyOf:
            - type: string
              pattern: ^\d{4}-\d{2}$
              description: A month, `YYYY-MM`, on the London calendar.
            - type: 'null'
          description: >-
            The first projected month the section reads full, without the
            waiting list. Null when it never does in the year.
        months:
          type: array
          items:
            $ref: '#/components/schemas/V1CapacityPlanMonth'
          description: The next 12 months projected, this month first.
      required:
        - sectionId
        - name
        - type
        - capacity
        - currentMembers
        - waiting
        - next3Months
        - status
        - fullFrom
        - months
    V1CapacityPlanMonth:
      type: object
      properties:
        month:
          type: string
          pattern: ^\d{4}-\d{2}$
          description: A month, `YYYY-MM`, on the London calendar.
        projected:
          type: integer
          minimum: -9007199254740991
          maximum: 9007199254740991
          description: Young people expected at the end of the month.
        projectedWithWaiting:
          type: integer
          minimum: -9007199254740991
          maximum: 9007199254740991
          description: The same, with the waiting list offered every place that opens.
        agingOut:
          type: integer
          minimum: -9007199254740991
          maximum: 9007199254740991
          description: Young people reaching the upper age limit in the month.
        agingIn:
          type: integer
          minimum: -9007199254740991
          maximum: 9007199254740991
          description: Young people expected to move up from the section below.
      required:
        - month
        - projected
        - projectedWithWaiting
        - agingOut
        - agingIn
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: >-
        A group API key, sent as `Authorization: Bearer sw_live_…`. Keys from
        staging and the demo start `sw_test_` instead. A group admin creates
        keys in Settings → Integrations → API keys.

````

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