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

# Grant or revoke a system grant

> One audited additive system grant change for one person. No one may revoke their own grant.



## OpenAPI

````yaml /openapi.generated.json post /access/system-grants
openapi: 3.1.0
info:
  description: >-
    Public API reference. Generated from apps/engine/openapi.yaml by make
    docs-openapi-write. Do not edit.
  title: Nexio platform API
  version: '1'
servers:
  - url: https://api.usenexio.com
security: []
tags:
  - name: Access
  - name: Catalog
  - name: Conversations
  - name: Documents
  - name: Engines
  - name: Events
  - name: Feedback
  - name: Graph
  - name: Records
  - name: Roadmap
  - name: Runs
  - name: Webhooks
  - name: accounts
  - name: actions
  - name: activities
  - name: activity-feed
  - name: attachments
  - name: audit
  - name: benefit-plans
  - name: billing-transactions
  - name: carrier_documents
  - name: certificate-holders
  - name: certificate_drafts
  - name: certificates
  - name: change_feed
  - name: claims
  - name: classes
  - name: codes
  - name: commission_facts
  - name: connections
  - name: contacts
  - name: contingencies
  - name: conversations
  - name: customer
  - name: customer_contacts
  - name: deals
  - name: dependents
  - name: document_extractions
  - name: documents
  - name: drivers
  - name: eforms
  - name: employees
  - name: events
  - name: feature_requests
  - name: form-templates
  - name: invoices
  - name: leads
  - name: line_schedules_other
  - name: loss_history
  - name: machines
  - name: markets
  - name: motor-carriers
  - name: notes
  - name: opportunities
  - name: opportunity-signals
  - name: pages
  - name: personal_lines_detail
  - name: placement_choices
  - name: placement_feedback
  - name: placements
  - name: policies
  - name: policy_parties
  - name: policy_personnel
  - name: policy_transactions
  - name: premium_rows
  - name: procedures
  - name: proposals
  - name: quote_comparisons
  - name: quotes
  - name: records
  - name: register-views
  - name: renewal-entries
  - name: risk_review_choices
  - name: rollups
  - name: seats
  - name: sec-filings
  - name: service_agreements
  - name: submissions
  - name: suspenses
  - name: tasks
  - name: umbrella_underlying
  - name: underwriting_questions
  - name: uploaded_documents
  - name: vehicles
  - name: workflows
paths:
  /access/system-grants:
    post:
      tags:
        - Access
      summary: Grant or revoke a system grant
      description: >-
        One audited additive system grant change for one person. No one may
        revoke their own grant.
      operationId: setAccessSystemGrant
      parameters:
        - description: The person the request is made for (a WorkOS user id).
          in: header
          name: Nexio-Act-As
          schema:
            description: The person the request is made for (a WorkOS user id).
            type: string
        - description: >-
            The acting person's verified email, lowercased. Ignored without
            Nexio-Act-As.
          in: header
          name: Nexio-Act-As-Email
          schema:
            description: >-
              The acting person's verified email, lowercased. Ignored without
              Nexio-Act-As.
            type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/AccessSystemGrantRequest'
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AccessSystemGrantChange'
          description: OK
        '400':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorEnvelope'
          description: Bad Request
        '401':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorEnvelope'
          description: Unauthorized
        '403':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorEnvelope'
          description: Forbidden
        '404':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorEnvelope'
          description: Not Found
        '409':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorEnvelope'
          description: Conflict
        '500':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorEnvelope'
          description: Internal Server Error
        '503':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorEnvelope'
          description: Service Unavailable
      security:
        - bearer: []
components:
  schemas:
    AccessSystemGrantRequest:
      additionalProperties: false
      properties:
        email:
          type: string
        grant:
          type: string
        operator:
          description: >-
            The operator the calling app names, recorded in the audit snapshot;
            never trusted as the actor.
          type: string
        reason:
          type: string
        revoke:
          type: boolean
      required:
        - email
        - grant
        - reason
      type: object
    AccessSystemGrantChange:
      additionalProperties: false
      properties:
        action:
          description: The audit action the change recorded.
          type: string
        before:
          description: >-
            The state the change replaced, as the audit recorded it, when there
            was one.
        data:
          $ref: '#/components/schemas/SystemGrant'
        principal:
          description: The person the change is about.
          type: string
        request_id:
          description: The request's id, as logged.
          type: string
      required:
        - action
        - data
      type: object
    ErrorEnvelope:
      additionalProperties: false
      properties:
        code:
          description: The stable machine-readable error code. One meaning forever.
          type: string
        details:
          description: Structured detail for the code.
        message:
          description: A human-readable sentence about this occurrence.
          type: string
      required:
        - code
        - message
      type: object
    SystemGrant:
      additionalProperties: false
      properties:
        grant_name:
          type: string
        granted_at:
          format: date-time
          type: string
        granted_by:
          type: string
        principal_email:
          type: string
        principal_id:
          type: string
        reason:
          type: string
        revoked_at:
          format: date-time
          type: string
        status:
          type: string
        version:
          format: int64
          type: integer
      required:
        - principal_id
        - grant_name
        - status
        - granted_by
        - reason
        - granted_at
        - version
      type: object
  securitySchemes:
    bearer:
      description: The org's platform API key.
      scheme: bearer
      type: http

````

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