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

# Update an assessment

> Title, description, visibility and population while both tracks are still draft; a track's deadline while that track is draft. Anything else is a 409.

**Requires scope:** `assessments:write`.



## OpenAPI

````yaml /api-docs/openapi.v1.json patch /api/v1/assessments/{id}
openapi: 3.0.0
info:
  title: SkillsDB Public API
  description: >-
    The SkillsDB public REST API. Authenticate every request with an API key
    created in Settings → API Credentials, sent as `Authorization: Bearer
    sdb_live_…`. Errors follow RFC 9457 problem details; every `type` URI
    resolves under https://help.skillsdb.com/api-docs/errors/.
  version: '1'
  contact: {}
servers:
  - url: https://prod.skillsdbnext.com
    description: Production
  - url: https://staging.skillsdbnext.com
    description: Staging
security: []
tags: []
paths:
  /api/v1/assessments/{id}:
    patch:
      tags:
        - Assessment
      summary: Update an assessment
      description: >-
        Title, description, visibility and population while both tracks are
        still draft; a track's deadline while that track is draft. Anything else
        is a 409.


        **Requires scope:** `assessments:write`.
      operationId: updateAssessment
      parameters:
        - name: Idempotency-Key
          in: header
          required: false
          description: >-
            Any unique string (at most 200 characters). Retrying with the same
            key and identical content replays the stored response for 24h
            instead of executing twice.
          schema:
            type: string
            maxLength: 200
        - name: id
          required: true
          in: path
          description: Assessment id.
          schema:
            example: '42'
            type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UpdateAssessmentDto'
      responses:
        '200':
          description: The resource, enveloped.
          content:
            application/json:
              schema:
                type: object
                required:
                  - data
                properties:
                  data:
                    $ref: '#/components/schemas/AssessmentDetailDto'
          headers:
            X-Request-Id:
              description: Unique id for this request — quote it when contacting support.
              schema:
                type: string
            RateLimit-Limit:
              description: The bucket's hourly allowance.
              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
            Idempotency-Replayed:
              description: >-
                `true` when this response was replayed from a previous execution
                under the same Idempotency-Key.
              schema:
                type: string
        '400':
          description: >-
            Validation failed
            (`https://help.skillsdb.com/api-docs/errors/validation-error`)
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ProblemDetailsDto'
          headers:
            X-Request-Id:
              description: Unique id for this request — quote it when contacting support.
              schema:
                type: string
            RateLimit-Limit:
              description: The bucket's hourly allowance.
              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
        '401':
          description: >-
            Invalid credential
            (`https://help.skillsdb.com/api-docs/errors/invalid-credential`)
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ProblemDetailsDto'
          headers:
            X-Request-Id:
              description: Unique id for this request — quote it when contacting support.
              schema:
                type: string
            RateLimit-Limit:
              description: The bucket's hourly allowance.
              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
        '403':
          description: >-
            Insufficient scope
            (`https://help.skillsdb.com/api-docs/errors/insufficient-scope`) ·
            Insufficient permissions
            (`https://help.skillsdb.com/api-docs/errors/insufficient-permissions`)
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ProblemDetailsDto'
          headers:
            X-Request-Id:
              description: Unique id for this request — quote it when contacting support.
              schema:
                type: string
            RateLimit-Limit:
              description: The bucket's hourly allowance.
              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
        '404':
          description: Not found (`https://help.skillsdb.com/api-docs/errors/not-found`)
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ProblemDetailsDto'
          headers:
            X-Request-Id:
              description: Unique id for this request — quote it when contacting support.
              schema:
                type: string
            RateLimit-Limit:
              description: The bucket's hourly allowance.
              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
        '409':
          description: >-
            Conflict (`https://help.skillsdb.com/api-docs/errors/conflict`) ·
            Idempotency key reused with different content
            (`https://help.skillsdb.com/api-docs/errors/idempotency-key-reused`)
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ProblemDetailsDto'
          headers:
            X-Request-Id:
              description: Unique id for this request — quote it when contacting support.
              schema:
                type: string
            RateLimit-Limit:
              description: The bucket's hourly allowance.
              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
        '429':
          description: >-
            Rate limit exceeded
            (`https://help.skillsdb.com/api-docs/errors/rate-limit-exceeded`)
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ProblemDetailsDto'
          headers:
            X-Request-Id:
              description: Unique id for this request — quote it when contacting support.
              schema:
                type: string
            RateLimit-Limit:
              description: The bucket's hourly allowance.
              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 retrying.
              schema:
                type: integer
        '500':
          description: >-
            Internal error
            (`https://help.skillsdb.com/api-docs/errors/internal-error`)
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ProblemDetailsDto'
          headers:
            X-Request-Id:
              description: Unique id for this request — quote it when contacting support.
              schema:
                type: string
            RateLimit-Limit:
              description: The bucket's hourly allowance.
              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
      security:
        - apiKey:
            - assessments:write
components:
  schemas:
    UpdateAssessmentDto:
      type: object
      properties:
        title:
          type: string
          example: Q2 Skills Review (final)
          maxLength: 500
        description:
          type: string
          example: Updated brief.
          maxLength: 4000
        managerGradesVisibleAt:
          type: string
          enum:
            - immediately
            - after_employee_assessment
            - after_manager_assessment
            - after_assessment_ended
        allPeople:
          type: boolean
          example: false
        peopleTypeIds:
          type: array
          items:
            type: string
        employeeDeadlineAt:
          type: string
          example: '2026-03-31'
        managerDeadlineAt:
          type: string
          example: '2026-04-15'
    AssessmentDetailDto:
      type: object
      properties:
        id:
          type: string
          example: '42'
          description: Opaque assessment id.
        title:
          type: string
          example: Q2 Skills Review
        description:
          type: string
          example: Annual proficiency check-in.
          nullable: true
        status:
          type: string
          enum:
            - draft
            - active
            - completed
            - cancelled
          nullable: true
          description: The cycle's overall lifecycle state.
        tracks:
          description: Employee and manager tracks, kept distinct.
          allOf:
            - $ref: '#/components/schemas/AssessmentTracksDto'
        startedAt:
          type: string
          example: '2026-03-01T00:00:00.000Z'
          nullable: true
          description: When the first track started.
        endedAt:
          type: string
          example: null
          nullable: true
          description: When both tracks had ended.
        deadlineAt:
          type: string
          example: null
          nullable: true
          description: Overall deadline, when set.
        managerGradesVisibleAt:
          type: string
          enum:
            - immediately
            - after_employee_assessment
            - after_manager_assessment
            - after_assessment_ended
          nullable: true
          description: >-
            When a manager's grades become visible to the employee (blind
            assessment).
        allPeople:
          type: boolean
          example: true
          description: Targets everyone rather than a scoped population.
        counts:
          $ref: '#/components/schemas/AssessmentCountsDto'
        createdAt:
          type: string
          example: '2026-02-20T09:00:00.000Z'
          nullable: true
        updatedAt:
          type: string
          example: null
          nullable: true
        scope:
          $ref: '#/components/schemas/AssessmentScopeDto'
      required:
        - id
        - title
        - description
        - status
        - tracks
        - startedAt
        - endedAt
        - deadlineAt
        - managerGradesVisibleAt
        - allPeople
        - counts
        - createdAt
        - updatedAt
        - scope
    ProblemDetailsDto:
      type: object
      properties:
        type:
          type: string
          example: https://help.skillsdb.com/api-docs/errors/validation-error
          description: >-
            A URI identifying the problem type — always resolves to a
            documentation page.
        title:
          type: string
          example: Validation failed
        status:
          type: number
          example: 400
        detail:
          type: string
          example: limit must be between 1 and 200
          description: Human-readable explanation specific to this occurrence.
        instance:
          type: string
          example: /api/v1/people
        requestId:
          type: string
          example: 0192c2f1-6f4e-7ab3-b1c4-5f6a7b8c9d0e
          description: >-
            Matches the X-Request-Id response header — quote it when contacting
            support.
        errors:
          description: Field-level failures, present on validation-error problems.
          type: array
          items:
            $ref: '#/components/schemas/ProblemFieldErrorDto'
        error:
          type: string
          example: trial_expired
          enum:
            - trial_expired
          description: >-
            Present only on a 403 when the workspace's trial has expired, so API
            access is suspended.
        upgrade_url:
          type: string
          example: https://app.skillsdb.com/settings/billing
          description: >-
            Present only alongside `error: trial_expired`: where a workspace
            admin upgrades to restore API access.
      required:
        - type
        - title
        - status
        - detail
        - instance
        - requestId
    AssessmentTracksDto:
      type: object
      properties:
        employee:
          $ref: '#/components/schemas/AssessmentTrackStateDto'
        manager:
          $ref: '#/components/schemas/AssessmentTrackStateDto'
      required:
        - employee
        - manager
    AssessmentCountsDto:
      type: object
      properties:
        assigned:
          type: number
          example: 120
          description: Assessable people in the cycle.
        completed:
          type: number
          example: 40
          description: People whose overall assessment is completed.
        employeesAssigned:
          type: number
          example: 118
        employeesCompleted:
          type: number
          example: 60
        managersAssigned:
          type: number
          example: 14
          description: Distinct managers with assessable reports.
        managersCompleted:
          type: number
          example: 5
          description: Managers who completed every report.
      required:
        - assigned
        - completed
        - employeesAssigned
        - employeesCompleted
        - managersAssigned
        - managersCompleted
    AssessmentScopeDto:
      type: object
      properties:
        allPeople:
          type: boolean
          example: false
        businessUnitIds:
          example:
            - '3'
          type: array
          items:
            type: string
        divisionIds:
          example: []
          type: array
          items:
            type: string
        countryIds:
          example: []
          type: array
          items:
            type: string
        businessRegionIds:
          example: []
          type: array
          items:
            type: string
        cityIds:
          example: []
          type: array
          items:
            type: string
        siteIds:
          example: []
          type: array
          items:
            type: string
        departmentIds:
          example:
            - '12'
            - '15'
          type: array
          items:
            type: string
        teamIds:
          example: []
          type: array
          items:
            type: string
        shiftIds:
          example: []
          type: array
          items:
            type: string
        peopleTypeIds:
          example: []
          type: array
          items:
            type: string
      required:
        - allPeople
        - businessUnitIds
        - divisionIds
        - countryIds
        - businessRegionIds
        - cityIds
        - siteIds
        - departmentIds
        - teamIds
        - shiftIds
        - peopleTypeIds
    ProblemFieldErrorDto:
      type: object
      properties:
        field:
          type: string
          example: email
        code:
          type: string
          example: max_length
        message:
          type: string
          example: email must be shorter than or equal to 75 characters
      required:
        - field
        - code
        - message
    AssessmentTrackStateDto:
      type: object
      properties:
        status:
          type: string
          enum:
            - draft
            - active
            - completed
            - cancelled
          example: active
        startedAt:
          type: string
          example: '2026-03-01T00:00:00.000Z'
          nullable: true
        endedAt:
          type: string
          example: null
          nullable: true
        deadlineAt:
          type: string
          example: '2026-03-31T00:00:00.000Z'
          nullable: true
      required:
        - status
        - startedAt
        - endedAt
        - deadlineAt
  securitySchemes:
    apiKey:
      scheme: bearer
      type: http
      description: >-
        An API key issued by a company administrator — an environment prefix
        (production: `sdb_live_`) followed by 32 characters. The prefix
        identifies the environment and MUST NOT be hard-coded or validated by
        clients; treat the whole key as opaque. Shown exactly once at creation;
        only a one-way hash is stored.


        **Scopes** (granted per key on the create screen; `:write` never implies
        `:read`):


        - `skills:read`

        - `skills:write`

        - `people:read`

        - `people:write`

        - `careers:read`

        - `careers:write`

        - `training:read`

        - `training:write`

        - `flags:read`

        - `flags:write`

        - `org:read`

        - `org:write`

        - `assessments:read`

        - `learning:read`

        - `learning:write`

        - `certifications:read`

        - `certifications:write`

        - `assessments:write`

        - `proficiency:read`

        - `proficiency:write`

        - `surveys:read`

        - `surveys:write`

        - `labels:read`

        - `labels:write`

````