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

# Update the options of a draft company

> Update the subscription options of a company that has not been activated yet. Only the fields you send are changed. Activation closes this endpoint: an activated company answers 409 and its configuration is then managed from the Primo cockpit. Only accessible with a Workspace API key.

<span className="badge-write">Key: Write</span><span className="badge-workspace">Scope: Workspace</span>


## OpenAPI

````yaml https://api.getprimo.com/openapi.json patch /workspace/companies/{companyId}/options
openapi: 3.1.1
info:
  title: Public API - BETA
  description: Read docs on https://docs.getprimo.com/
  version: '1.0'
  contact: {}
servers:
  - url: https://api.getprimo.com
security:
  - apikey: []
tags: []
paths:
  /workspace/companies/{companyId}/options:
    patch:
      tags:
        - Workspace
      summary: Update the options of a draft company
      description: >-
        Update the subscription options of a company that has not been activated
        yet. Only the fields you send are changed. Activation closes this
        endpoint: an activated company answers 409 and its configuration is then
        managed from the Primo cockpit. Only accessible with a Workspace API
        key.
      operationId: updateCompanyOptions
      parameters:
        - name: companyId
          required: true
          in: path
          schema:
            type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UpdateCompanyOptionsBody'
      responses:
        default:
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetCompany_Output'
components:
  schemas:
    UpdateCompanyOptionsBody:
      type: object
      properties:
        mdmEnable:
          type: boolean
        saasEnable:
          type: boolean
        edrProducts:
          type: array
          items:
            type: string
            enum:
              - SENTINEL_ONE_CONTROL
              - SENTINEL_ONE_COMPLETE
              - SENTINEL_ONE_VIGILANCE
              - THREATDOWN_STANDARD
              - THREATDOWN_MDR
        isDemo:
          type: boolean
        edrAdminContacts:
          type: array
          items:
            type: object
            properties:
              firstName:
                type: string
                minLength: 1
              lastName:
                type: string
                minLength: 1
              email:
                type: string
                format: email
                pattern: >-
                  ^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$
            required:
              - firstName
              - lastName
              - email
    GetCompany_Output:
      type: object
      properties:
        id:
          type: string
          description: Unique company identifier
        name:
          type: string
          description: Company display name
        createdAt:
          type: string
          format: date-time
          pattern: >-
            ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$
        updatedAt:
          type: string
          format: date-time
          pattern: >-
            ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$
        domainName:
          description: Primary email domain of the company
          anyOf:
            - type: string
            - type: 'null'
        status:
          description: >-
            Derived from the subscription: DEMO for a demo company, TRIAL /
            TRIAL_EXPIRED during a trial, DRAFT before activation, otherwise
            ACTIVE. A demo company reads DEMO from the moment the option is set,
            so use isDraft — not status — to tell whether it has been activated
          anyOf:
            - type: string
              enum:
                - DRAFT
                - ACTIVE
                - INACTIVE
                - DEMO
                - TRIAL
                - TRIAL_EXPIRED
            - type: 'null'
        isDraft:
          type: boolean
          description: >-
            True until the company is activated: it is not usable yet, and its
            options can still be changed
        options:
          anyOf:
            - type: object
              properties:
                mdmEnable:
                  description: Device management (MDM) is part of the company subscription
                  type: boolean
                saasEnable:
                  description: SaaS management (IAM) is part of the company subscription
                  type: boolean
                edrProducts:
                  description: EDR products subscribed by the company
                  type: array
                  items:
                    type: string
                    enum:
                      - SENTINEL_ONE_CONTROL
                      - SENTINEL_ONE_COMPLETE
                      - SENTINEL_ONE_VIGILANCE
                      - THREATDOWN_STANDARD
                      - THREATDOWN_MDR
                isDemo:
                  description: The company is a demo environment and is never billed
                  type: boolean
                edrAdminContacts:
                  description: >-
                    People the EDR console is opened in the name of, when an EDR
                    product is subscribed
                  type: array
                  items:
                    type: object
                    properties:
                      firstName:
                        type: string
                        minLength: 1
                      lastName:
                        type: string
                        minLength: 1
                      email:
                        type: string
                        format: email
                        pattern: >-
                          ^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$
                    required:
                      - firstName
                      - lastName
                      - email
                    additionalProperties: false
              required:
                - mdmEnable
                - saasEnable
                - edrProducts
                - isDemo
                - edrAdminContacts
              additionalProperties: false
            - type: 'null'
      required:
        - id
        - name
        - createdAt
        - updatedAt
        - domainName
        - status
        - isDraft
        - options
      additionalProperties: false
  securitySchemes:
    apikey:
      scheme: bearer
      bearerFormat: API key
      type: http
      description: >-
        Use your Primo API key in the Authorization header as `Bearer
        <API_KEY>`.

````