> ## 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.

# Set a skill's per-level activation

> Activate the skill at a level and set which rung of the company scale it requires there, or deactivate it.

**Requires scope:** `careers:write`.



## OpenAPI

````yaml /api-docs/openapi.v1.json patch /api/v1/careers/{id}/skills/{careerSkillId}/levels/{levelId}
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/careers/{id}/skills/{careerSkillId}/levels/{levelId}:
    patch:
      tags:
        - Career
      summary: Set a skill's per-level activation
      description: >-
        Activate the skill at a level and set which rung of the company scale it
        requires there, or deactivate it.


        **Requires scope:** `careers:write`.
      operationId: setCareerSkillLevelActivation
      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
          schema:
            type: string
          description: Opaque resource id.
        - name: careerSkillId
          required: true
          in: path
          schema:
            type: string
          description: Opaque resource id.
        - name: levelId
          required: true
          in: path
          schema:
            type: string
          description: Opaque resource id.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SetCareerSkillLevelDto'
      responses:
        '200':
          description: The resource, enveloped.
          content:
            application/json:
              schema:
                type: object
                required:
                  - data
                properties:
                  data:
                    $ref: '#/components/schemas/CareerSkillDto'
          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: >-
            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
        '422':
          description: >-
            Request understood but rejected by business rules
            (`https://help.skillsdb.com/api-docs/errors/unprocessable`)
          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:
            - careers:write
components:
  schemas:
    SetCareerSkillLevelDto:
      type: object
      properties:
        isActive:
          type: boolean
          example: true
          description: Activate (true) or deactivate (false) the skill at this level.
        benchmarkId:
          type: string
          example: '7'
          nullable: true
          description: Rung id required at this level. Ignored when deactivating.
      required:
        - isActive
    CareerSkillDto:
      type: object
      properties:
        id:
          type: string
          example: '205'
          description: Opaque id of the career–skill attachment.
        skill:
          description: The skill itself.
          allOf:
            - $ref: '#/components/schemas/ReferenceDto'
        skillDescription:
          type: string
          example: MIG and TIG welding.
          nullable: true
          description: The skill's full description text.
        sectionId:
          type: string
          example: '77'
          nullable: true
          description: Career-section id the skill sits under, or null when unsectioned.
        skillGroupIds:
          example:
            - '9'
          description: Skill group ids the skill is assigned to.
          type: array
          items:
            type: string
        position:
          type: number
          example: 2
          nullable: true
          description: Ordering within its section.
        benchmark:
          nullable: true
          description: Career-wide required rung — always resolved, never a bare integer.
          allOf:
            - $ref: '#/components/schemas/BenchmarkDto'
        requirement:
          description: >-
            The stored requirement configuration — never a per-person resolution
            (ENG-4066 decided model).
          allOf:
            - $ref: '#/components/schemas/RequirementConfigDto'
        trainingEvidence:
          description: What evidence completing training requires.
          allOf:
            - $ref: '#/components/schemas/TrainingEvidenceDto'
        trainingExpiry:
          nullable: true
          description: How long completed training stays valid; null when it never expires.
          allOf:
            - $ref: '#/components/schemas/TrainingExpiryDto'
        levels:
          description: Per-level activation for every level of the career.
          type: array
          items:
            $ref: '#/components/schemas/CareerSkillLevelDto'
      required:
        - id
        - skill
        - skillDescription
        - sectionId
        - skillGroupIds
        - position
        - benchmark
        - requirement
        - trainingEvidence
        - trainingExpiry
        - levels
    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
    ReferenceDto:
      type: object
      properties:
        id:
          type: string
          example: '42'
          description: Opaque resource id.
        name:
          type: string
          example: Welding
          description: Display name.
      required:
        - id
        - name
    BenchmarkDto:
      type: object
      properties:
        id:
          type: string
          example: '7'
          description: Opaque rung id on the company grading scale.
        grade:
          type: number
          example: 3
          description: The rung's numeric grade value.
        label:
          type: string
          example: Proficient
          description: The rung's short label.
      required:
        - id
        - grade
        - label
    RequirementConfigDto:
      type: object
      properties:
        isRequired:
          type: boolean
          example: true
          description: >-
            The stored flag, with null resolved: only an explicit false turns
            the requirement off.
        scope:
          type: string
          enum:
            - all
            - going_forward
          example: all
          description: >-
            Whether the requirement binds everyone holding the career, or only
            people assigned from the effective date forward.
        effectiveFrom:
          type: string
          example: '2026-03-01T00:00:00.000Z'
          nullable: true
          description: When the requirement takes effect (not a due date).
        setBy:
          nullable: true
          description: Who set the requirement.
          allOf:
            - $ref: '#/components/schemas/ReferenceDto'
      required:
        - isRequired
        - scope
        - effectiveFrom
        - setBy
    TrainingEvidenceDto:
      type: object
      properties:
        requiresNote:
          type: boolean
          example: false
          description: Whether completing training requires a text note.
        requiresAttachment:
          type: boolean
          example: true
          description: Whether completing training requires an attachment.
      required:
        - requiresNote
        - requiresAttachment
    TrainingExpiryDto:
      type: object
      properties:
        days:
          type: number
          example: 0
          nullable: true
        months:
          type: number
          example: 6
          nullable: true
        years:
          type: number
          example: 0
          nullable: true
      required:
        - days
        - months
        - years
    CareerSkillLevelDto:
      type: object
      properties:
        levelId:
          type: string
          example: '31'
          description: The career level this activation refers to.
        isActive:
          type: boolean
          example: true
          description: Whether the skill is active at this level.
        benchmark:
          nullable: true
          description: >-
            The rung required at this level; refines the skill's career-wide
            benchmark.
          allOf:
            - $ref: '#/components/schemas/BenchmarkDto'
      required:
        - levelId
        - isActive
        - benchmark
    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
  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`

````