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

# Create option



## OpenAPI

````yaml /openapi.json post /protocols/{id}/questions/{questionId}/options
openapi: 3.0.1
info:
  title: NextMed's Admin Service
  description: Documentation Admin Service v1.0.0
  contact:
    name: NextMed
    email: medchatbr@gmail.com
  version: 1.0.0
servers:
  - url: http://localhost:8081
    description: Admin Service (local)
  - url: http://localhost:8080/admin-service
    description: Local API (gateway)
security: []
tags:
  - name: User Controller
    description: Endpoints to handle users
  - name: Profile Controller
    description: Endpoints to handle user's profiles
  - name: Institution Controller
    description: Endpoints to handle institutions
  - name: Unity Controller
    description: Endpoints to handle institution's unities
  - name: Specialty Controller
    description: Endpoints to handle the available specialties
  - name: Protocol Controller
    description: >-
      Endpoints to manage clinical protocols (Admin): CRUD protocol, forms,
      questions, options, score ranges
paths:
  /protocols/{id}/questions/{questionId}/options:
    post:
      tags:
        - Protocol Controller
      summary: Create option
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
            format: uuid
        - name: questionId
          in: path
          required: true
          schema:
            type: string
            format: uuid
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateProtocolQuestionOptionRequest'
      responses:
        '201':
          description: Created option
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ProtocolQuestionOption'
components:
  schemas:
    CreateProtocolQuestionOptionRequest:
      type: object
      required:
        - optionText
        - score
      properties:
        optionText:
          type: string
        score:
          type: number
        position:
          type: integer
          default: 0
    ProtocolQuestionOption:
      type: object
      properties:
        id:
          type: string
          format: uuid
        protocolQuestionId:
          type: string
          format: uuid
        optionText:
          type: string
        score:
          type: number
        position:
          type: integer
        createdAt:
          type: string
          format: date-time
        updatedAt:
          type: string
          format: date-time

````