---
title: "PATCH /api/assessments/company/{id}"
method: PATCH
path: "/api/assessments/company/{id}"
tags: ["api"]
---

# PATCH /api/assessments/company/{id}

`PATCH /api/assessments/company/{id}`

## Request body

- TrainingCompanyAssessment
  - `id` string, uuid
  - `assessment` Assessment, required
    - `id` string, uuid
    - `questions` AssessmentQuestion[], required
      - `id` string, uuid, nullable
      - `position` integer
      - `answers` AssessmentAnswer[]
        - `id` string, uuid, nullable
        - `answer` string, required — You must use the Slack nomenclature for the markdown, for more info visit: https://api.slack.com/reference/surfaces/formatting
        - `correct` boolean, nullable
        - `position` integer
        - `explanation` string, nullable
      - `editor_content` EditorStateInQuestionSerializers
        - `id` string, uuid
        - `note_editor_state` string, nullable
        - `summary_editor_state` string, nullable
        - `question_editor_state` string, nullable
        - `quiz_editor_state` string, nullable
        - `quiz_message_state` string, nullable
        - `content` LessonImageInQuestionSerializers[]
          - `id` string, uuid
          - `company` string, uuid, nullable
          - `image_name` string, nullable
          - `image_url` string, uri, nullable
          - `image_url_public` string, uri, nullable
          - `editor_content` string, uuid, nullable
          - `content_type` 'lesson' | 'quiz' | 'engagement_question' | 'engagement_message' | 'assessment_question_content', nullable
      - `image_ids` string[]
      - `slack_markup` string
      - `single_select` boolean
      - `single_correct` boolean
    - `created` string, date-time
    - `modified` string, date-time
    - `title` string, required
    - `company` string, uuid, nullable
  - `created` string, date-time
  - `modified` string, date-time
  - `passing_grade` integer
  - `retake_status` 'optional' | 'force_retake' | 'force_continue'
  - `is_active` boolean
  - `position` integer
  - `polymorphic_ctype` integer
  - `company` string, uuid, required
  - `created_by` string, uuid, nullable
  - `curriculum` string, uuid, required
  - `lessons_to_skip` string[]

## Response `200`

OK

- TrainingCompanyAssessment
  - `id` string, uuid
  - `assessment` Assessment, required
    - `id` string, uuid
    - `questions` AssessmentQuestion[], required
      - `id` string, uuid, nullable
      - `position` integer
      - `answers` AssessmentAnswer[]
        - `id` string, uuid, nullable
        - `answer` string, required — You must use the Slack nomenclature for the markdown, for more info visit: https://api.slack.com/reference/surfaces/formatting
        - `correct` boolean, nullable
        - `position` integer
        - `explanation` string, nullable
      - `editor_content` EditorStateInQuestionSerializers
        - `id` string, uuid
        - `note_editor_state` string, nullable
        - `summary_editor_state` string, nullable
        - `question_editor_state` string, nullable
        - `quiz_editor_state` string, nullable
        - `quiz_message_state` string, nullable
        - `content` LessonImageInQuestionSerializers[]
          - `id` string, uuid
          - `company` string, uuid, nullable
          - `image_name` string, nullable
          - `image_url` string, uri, nullable
          - `image_url_public` string, uri, nullable
          - `editor_content` string, uuid, nullable
          - `content_type` 'lesson' | 'quiz' | 'engagement_question' | 'engagement_message' | 'assessment_question_content', nullable
      - `image_ids` string[]
      - `slack_markup` string
      - `single_select` boolean
      - `single_correct` boolean
    - `created` string, date-time
    - `modified` string, date-time
    - `title` string, required
    - `company` string, uuid, nullable
  - `created` string, date-time
  - `modified` string, date-time
  - `passing_grade` integer
  - `retake_status` 'optional' | 'force_retake' | 'force_continue'
  - `is_active` boolean
  - `position` integer
  - `polymorphic_ctype` integer
  - `company` string, uuid, required
  - `created_by` string, uuid, nullable
  - `curriculum` string, uuid, required
  - `lessons_to_skip` string[]

---

[API](https://skmtc.net/haekka/apis/snippets-api.md) · [All operations](https://skmtc.net/haekka/apis/snippets-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/haekka/snippets-api/versions/2a72ba99e389/schema)
