> ## 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.

# Set the projections of a company

> Enter or replace what a company is expected to reach: its employees, and its laptops and smartphones and tablets when it has MDM or an EDR (null otherwise). Required before `activateCompany` by a partner, and can be changed at any time, before or after the activation: the date of the first entry is kept. To find the companies whose projections are missing, call `getCompanies` with missingProjections=true. Only accessible with a Workspace API key or through the Workspace MCP.

Key: WriteScope: Workspace


## OpenAPI

````yaml https://api.getprimo.com/openapi.json put /workspace/companies/{companyId}/projections
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}/projections:
    put:
      tags:
        - Workspace
      summary: Set the projections of a company
      description: >-
        Enter or replace what a company is expected to reach: its employees, and
        its laptops and smartphones and tablets when it has MDM or an EDR (null
        otherwise). Required before `activateCompany` by a partner, and can be
        changed at any time, before or after the activation: the date of the
        first entry is kept. To find the companies whose projections are
        missing, call `getCompanies` with missingProjections=true. Only
        accessible with a Workspace API key or through the Workspace MCP.
      operationId: setCompanyProjections
      parameters:
        - name: companyId
          required: true
          in: path
          schema:
            type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SetCompanyProjectionsBody'
      responses:
        default:
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetCompany_Output'
components:
  schemas:
    SetCompanyProjectionsBody:
      type: object
      properties:
        employees:
          description: Employees the company is expected to reach
          type: integer
          minimum: 1
          maximum: 1000000
        laptops:
          description: >-
            Laptops the company is expected to reach. Required when the company
            has MDM or an EDR, null otherwise
          anyOf:
            - type: integer
              minimum: 0
              maximum: 1000000
            - type: 'null'
        smartphonesAndTablets:
          description: >-
            Smartphones and tablets the company is expected to reach. Required
            when the company has MDM or an EDR, null otherwise
          anyOf:
            - type: integer
              minimum: 0
              maximum: 1000000
            - type: 'null'
      required:
        - employees
        - laptops
        - smartphonesAndTablets
    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'
        projections:
          description: >-
            What the company is expected to reach, entered by its partner. null
            until entered
          anyOf:
            - type: object
              properties:
                employees:
                  description: Employees the company is expected to reach
                  type: integer
                  minimum: -9007199254740991
                  maximum: 9007199254740991
                laptops:
                  description: >-
                    Laptops the company is expected to reach; null when it has
                    neither MDM nor an EDR
                  anyOf:
                    - type: integer
                      minimum: -9007199254740991
                      maximum: 9007199254740991
                    - type: 'null'
                smartphonesAndTablets:
                  description: >-
                    Smartphones and tablets the company is expected to reach;
                    null when it has neither MDM nor an EDR
                  anyOf:
                    - type: integer
                      minimum: -9007199254740991
                      maximum: 9007199254740991
                    - type: 'null'
                enteredAt:
                  description: When the projections were first entered
                  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:
                  description: When the projections last changed
                  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))$
              required:
                - employees
                - laptops
                - smartphonesAndTablets
                - enteredAt
                - updatedAt
              additionalProperties: false
            - type: 'null'
      required:
        - id
        - name
        - createdAt
        - updatedAt
        - domainName
        - status
        - isDraft
        - options
        - projections
      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>`.

````

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