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

# Update a course evaluation question



## OpenAPI

````yaml /openapi.json patch /api/v1/course_evaluation_questions/{id}
openapi: 3.1.0
info:
  title: Scholarly API V1
  version: v1
  description: API for accessing Scholarly data
  license:
    name: Proprietary
    identifier: Proprietary
servers:
  - url: https://api.scholarlysoftware.com
    description: Production server
security: []
paths:
  /api/v1/course_evaluation_questions/{id}:
    parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
    patch:
      tags:
        - Course Evaluation Questions
      summary: Update a course evaluation question
      operationId: updateCourseEvaluationQuestion
      parameters:
        - name: Authorization
          in: header
          required: true
          description: Bearer token
          schema:
            type: string
      requestBody:
        content:
          application/vnd.api+json:
            schema:
              $ref: '#/components/schemas/UpdateCourseEvaluationQuestion'
      responses:
        '200':
          description: course evaluation question updated
          content:
            application/vnd.api+json:
              schema:
                type: object
                properties:
                  data:
                    $ref: '#/components/schemas/CourseEvaluationQuestion'
                required:
                  - data
        '401':
          description: unauthorized
          content:
            application/vnd.api+json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: forbidden
          content:
            application/vnd.api+json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: not found
          content:
            application/vnd.api+json:
              schema:
                $ref: '#/components/schemas/Error'
        '422':
          description: validation error
          content:
            application/vnd.api+json:
              schema:
                $ref: '#/components/schemas/ValidationError'
      security:
        - bearer_auth: []
components:
  schemas:
    UpdateCourseEvaluationQuestion:
      type: object
      properties:
        data:
          type: object
          properties:
            id:
              type: string
              format: uuid
            type:
              type: string
              const: course_evaluation_question
              example: course_evaluation_question
            attributes:
              type: object
              properties:
                question:
                  type: string
                  example: How would you rate this course overall?
                description:
                  type:
                    - string
                    - 'null'
                  description: Rich text (minimal HTML) shown under the question
                position:
                  type: integer
                  description: 1-based order within the section; omit on create to append
                required:
                  type: boolean
                allows_not_applicable:
                  type: boolean
                  description: >-
                    Whether students can answer N/A. An N/A response satisfies
                    required and stays out of every score.
                not_applicable_label:
                  type:
                    - string
                    - 'null'
                  description: Text of the N/A choice; null shows "N/A"
                benchmark:
                  type:
                    - number
                    - 'null'
                  description: >-
                    Score that results charts mark with a reference line. Only
                    linear_scale questions take one, within
                    start_value..end_value.
                counts_toward_section_score:
                  type: boolean
                  description: >-
                    Whether a linear_scale question feeds its section's score
                    and the Overall on results views; defaults to true
                config:
                  description: >-
                    Kind-specific settings; see the type description for the
                    shape per kind
                question_tag_uuids:
                  type: array
                  description: >-
                    UUIDs of the course_evaluation_question_tag records applied
                    to this question; assigning replaces the full set
                  items:
                    type: string
                    format: uuid
            relationships:
              type: object
              properties: {}
          required:
            - id
            - type
      required:
        - data
    CourseEvaluationQuestion:
      type: object
      properties:
        id:
          type: string
          format: uuid
        type:
          type: string
          const: course_evaluation_question
          example: course_evaluation_question
        attributes:
          type: object
          properties:
            created_at:
              type: string
              format: datetime
            updated_at:
              type: string
              format: datetime
            question:
              type: string
              example: How would you rate this course overall?
            kind:
              type: string
              enum:
                - text
                - select
                - multiple_choice
                - linear_scale
            description:
              type:
                - string
                - 'null'
              description: Rich text (minimal HTML) shown under the question
            position:
              type: integer
              description: 1-based order within the section; omit on create to append
            required:
              type: boolean
            allows_not_applicable:
              type: boolean
              description: >-
                Whether students can answer N/A. An N/A response satisfies
                required and stays out of every score.
            not_applicable_label:
              type:
                - string
                - 'null'
              description: Text of the N/A choice; null shows "N/A"
            benchmark:
              type:
                - number
                - 'null'
              description: >-
                Score that results charts mark with a reference line. Only
                linear_scale questions take one, within start_value..end_value.
            counts_toward_section_score:
              type: boolean
              description: >-
                Whether a linear_scale question feeds its section's score and
                the Overall on results views; defaults to true
            config:
              description: >-
                Kind-specific settings; see the type description for the shape
                per kind
            question_tag_uuids:
              type: array
              description: >-
                UUIDs of the course_evaluation_question_tag records applied to
                this question; assigning replaces the full set
              items:
                type: string
                format: uuid
        relationships:
          type: object
          properties:
            section:
              type: object
              properties:
                links:
                  type: object
                  properties:
                    related:
                      type: string
                      format: uri
                  required:
                    - related
                meta:
                  type: object
                data:
                  type: object
                  required:
                    - type
                    - id
                  properties:
                    type:
                      type: string
                      const: course_evaluation_question_set_section
                      example: course_evaluation_question_set_section
                    id:
                      type: string
                      format: uuid
              anyOf:
                - required:
                    - links
                - required:
                    - meta
                - required:
                    - data
            question_responses:
              type: object
              properties:
                links:
                  type: object
                  properties:
                    related:
                      type:
                        - string
                        - 'null'
                      format: uri
                  required:
                    - related
                meta:
                  type: object
                data:
                  type: array
                  items:
                    type: object
                    required:
                      - type
                      - id
                    properties:
                      type:
                        type: string
                        const: course_evaluation_question_response
                        example: course_evaluation_question_response
                      id:
                        type: string
                        format: uuid
              anyOf:
                - required:
                    - links
                - required:
                    - meta
                - required:
                    - data
            question_tags:
              type: object
              properties:
                links:
                  type: object
                  properties:
                    related:
                      type:
                        - string
                        - 'null'
                      format: uri
                  required:
                    - related
                meta:
                  type: object
                data:
                  type: array
                  items:
                    type: object
                    required:
                      - type
                      - id
                    properties:
                      type:
                        type: string
                        const: course_evaluation_question_tag
                        example: course_evaluation_question_tag
                      id:
                        type: string
                        format: uuid
              anyOf:
                - required:
                    - links
                - required:
                    - meta
                - required:
                    - data
      required:
        - id
        - type
        - attributes
    Error:
      type: object
      properties:
        errors:
          type: array
          items:
            type: object
            properties:
              status:
                type: string
              title:
                type: string
              detail:
                type: string
            required:
              - status
              - title
      required:
        - errors
    ValidationError:
      type: object
      properties:
        errors:
          type: array
          items:
            type: object
            properties:
              status:
                type: string
                example: '422'
              title:
                type: string
                example: Validation Error
              detail:
                type: string
                example: Label can't be blank
            required:
              - status
              - title
              - detail
      required:
        - errors
  securitySchemes:
    bearer_auth:
      type: http
      scheme: bearer
      bearerFormat: API Key

````

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