---
title: "POST /api/employees/{id}/quizzes/{employee_weekly_id}/unassign"
method: POST
path: "/api/employees/{id}/quizzes/{employee_weekly_id}/unassign"
tags: ["api"]
---

# POST /api/employees/{id}/quizzes/{employee_weekly_id}/unassign

`POST /api/employees/{id}/quizzes/{employee_weekly_id}/unassign`

Deactivate EmployeeWeekly. Receive status 200 OK if successful or 404 if no active employee weekly is found.

## Request body

- object

## Response `200`

Created

- EmployeeWeekly
  - `id` string, uuid
  - `employee` EmployeeWithoutCompanyDetails, required
    - `id` string, uuid
    - `name` string, required
    - `avatar_image` string, uri, nullable
    - `email` string, email, required
    - `slack_uid` string, nullable, required
    - `role` string, uuid, nullable
    - `company` string, uuid
    - `user` string, uuid
    - `is_admin` boolean
    - `is_manager` string
    - `points` integer
    - `level` string
  - `weekly` CompanyWeeklyQuiz, required
    - `id` string, uuid
    - `quiz` WeeklyQuiz, required
      - `id` string, uuid
      - `title` string, nullable
      - `company` string, uuid, nullable
      - `engagement_type` 'private' | 'channel'
      - `mention_channel` boolean
      - `channel` string, nullable
      - `questions` QuizQuestion[]
        - `id` string, uuid
        - `answers` QuizQuestionAnswer[]
          - `id` string, uuid
          - `created` string, date-time
          - `modified` string, date-time
          - `answer` string, required — You must use the Slack nomenclature for the markdown, for more info visit: https://api.slack.com/reference/surfaces/formatting
          - `position` integer
          - `correct` boolean, nullable
          - `explanation` string, nullable — You must use the Slack nomenclature for the markdown, for more info visit: https://api.slack.com/reference/surfaces/formatting
          - `question` string, uuid
        - `editor_content` EditorStateInLessonSerializers
          - `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` LessonImageInLessonSerializers[], required
            - `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
        - `quiz_question_context` string
        - `engagement_custom_video` CustomEngagementQuestionVideo[]
          - `id` string, uuid
          - `engagement_question` string, uuid, nullable
          - `service_id` integer
          - `name` string, required
          - `duration` integer
          - `hashed_id` string
          - `progress` string, decimal, required
          - `thumbnail` string, required
          - `processed` boolean
          - `plays` integer
        - `created` string, date-time
        - `modified` string, date-time
        - `position` integer
        - `answer_type` 'no_action' | 'user_acknowledged' | 'multiple_choice' | 'neutral' | 'written_response' | 'external_url', nullable
        - `external_url` string, uri, nullable
        - `external_url_btn_text` string, nullable
        - `single_select` boolean
        - `quiz` string, uuid
      - `channel_engagements` ChannelEngagement[], required
        - `id` string, uuid
        - `created` string, date-time
        - `modified` string, date-time
        - `video_ts` string, nullable
        - `message_ts` string, required
        - `channel` string, required
        - `schedule_id` string
        - `engagement` string, uuid, required
      - `anonymize_user_results` boolean
    - `next_renew_date` string
    - `start_date_for_dynamic_engagement` string
    - `owners` Owner[]
      - `id` string, uuid, required
      - `name` string, required
    - `welcome_message` EngagementWelcomeMessage, required
      - `id` string, uuid
      - `editor_content` RichTextEditorState, required
        - `id` string, uuid
        - `editor_state` string, nullable
        - `content` ContentImage[]
          - `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
      - `created` string, date-time
      - `modified` string, date-time
      - `enabled` boolean
      - `slack_markup` string, nullable
      - `button_text` string
      - `polymorphic_ctype` integer
      - `engagement` string, uuid, required
    - `closing_message` EngagementClosingMessage, required
      - `id` string, uuid
      - `editor_content` RichTextEditorState, required
        - `id` string, uuid
        - `editor_state` string, nullable
        - `content` ContentImage[]
          - `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
      - `created` string, date-time
      - `modified` string, date-time
      - `enabled` boolean
      - `slack_markup` string, nullable
      - `show_review_option` boolean
      - `polymorphic_ctype` integer
      - `engagement` string, uuid, required
    - `created` string, date-time
    - `modified` string, date-time
    - `active` boolean
    - `start_date` string, date-time, nullable
    - `channels` string[]
    - `okta_groups_sync` string[]
    - `auto_enroll` boolean
    - `send_cycle` 'once' | 'weekly' | 'monthly' | 'quarterly' | 'semi-annual' | 'annual'
    - `respect_users_tz` boolean
    - `company` string, uuid, required
    - `created_by` string, uuid, nullable
  - `finished` string
  - `active` boolean
  - `active_question` string, uuid, nullable, required
  - `questions` EmployeeWeeklyQuestion[], required
    - `id` string, uuid
    - `created` string, date-time
    - `modified` string, date-time
    - `finished` boolean
    - `correct` boolean
    - `finish_date` string, date-time, nullable
    - `answers` object, nullable
    - `written_answer` string, nullable
    - `acknowledged` boolean
    - `employee_quiz` string, uuid, nullable
    - `question` string, uuid, nullable

## Other responses

- `404` — Not Found
- `500` — Internal Error

---

[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/revisions/2a72ba99e389/schema)
