PEAKS (CAES) — KeySerials API

The KeySerials resource of PEAKS (People, Equipment, Access, Keys, Space), the asset- and access-tracking application the UC Davis College of Agricultural and Environmental Sciences Computing Resources Unit builds and runs at peaks.ucdavis.edu. 11 operation(s). This entry is ONE TAG of a single application, not a separate API: all nine PEAKS entries in this file split one contract (openapi/_original/uc-davis-peaks.yaml) by tag. PEAKS is UC Davis's own software — source at github.com/ucdavis/Peaks under MIT — so the engineering is genuinely theirs. Access requires an X-Auth-Token API key issued to a campus team.

Operations 11

GET /api/{teamName}/KeySerials/Search
GET /api/{teamName}/KeySerials/SearchInKey
GET /api/{teamName}/KeySerials/GetForKey
GET /api/{teamName}/KeySerials/GetForPerson
GET /api/{teamName}/KeySerials/Details/{id}
POST /api/{teamName}/KeySerials/Create
POST /api/{teamName}/KeySerials/Update/{id}
POST /api/{teamName}/KeySerials/Assign
POST /api/{teamName}/KeySerials/Revoke/{id}
GET /api/{teamName}/KeySerials/GetHistory/{id} Takes the top 5 history records
GET /api/{teamName}/KeySerials/ListKeySerialStatus

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/uc-davis-keyserials-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

uc-davis-keyserials-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: PEAKS API v1 Access Key Serials API
  description: People Equipment Access Keys Space
  contact:
    name: Application Support
    url: https://caeshelp.ucdavis.edu/?appname=Peaks
  license:
    name: MIT
    url: https://github.com/ucdavis/Peaks/blob/master/LICENSE
  version: v1
  ProjectUrl: https://github.com/ucdavis/Peaks/
  x-operator: institution
  x-operator-note: 'PEAKS is UC Davis''s own application: peaks.ucdavis.edu is under ucdavis.edu, contact is caeshelp.ucdavis.edu, source is github.com/ucdavis/Peaks under MIT.'
  x-provenance:
    generated: '2026-08-19'
    method: searched
    source: https://peaks.ucdavis.edu/swagger/v1/swagger.json
    pristine_copy: openapi/_original/uc-davis-peaks.yaml
    note: Searched, then split by tag by refine-openapis. This file is ONE TAG of a single application; the nine uc-davis-*-api-openapi.yml files here are not nine APIs.
servers:
- url: https://peaks.ucdavis.edu
  description: PEAKS production API
tags:
- name: KeySerials
paths:
  /api/{teamName}/KeySerials/Search:
    get:
      tags:
      - KeySerials
      parameters:
      - name: q
        in: query
        schema:
          type: string
      - name: teamName
        in: path
        required: true
        schema:
          type: string
      - name: X-Auth-Token
        in: header
        description: access token
        required: true
        schema:
          type: string
          default: ApiKey
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/KeySerial'
        '401':
          description: Unauthorized
        '403':
          description: Forbidden
      security:
      - ApiKey:
        - KeyMasterAccess
  /api/{teamName}/KeySerials/SearchInKey:
    get:
      tags:
      - KeySerials
      parameters:
      - name: keyId
        in: query
        schema:
          type: integer
          format: int32
      - name: q
        in: query
        schema:
          type: string
      - name: teamName
        in: path
        required: true
        schema:
          type: string
      - name: X-Auth-Token
        in: header
        description: access token
        required: true
        schema:
          type: string
          default: ApiKey
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/KeySerial'
        '401':
          description: Unauthorized
        '403':
          description: Forbidden
      security:
      - ApiKey:
        - KeyMasterAccess
  /api/{teamName}/KeySerials/GetForKey:
    get:
      tags:
      - KeySerials
      parameters:
      - name: keyid
        in: query
        schema:
          type: integer
          format: int32
      - name: teamName
        in: path
        required: true
        schema:
          type: string
      - name: X-Auth-Token
        in: header
        description: access token
        required: true
        schema:
          type: string
          default: ApiKey
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/KeySerial'
        '401':
          description: Unauthorized
        '403':
          description: Forbidden
      security:
      - ApiKey:
        - KeyMasterAccess
  /api/{teamName}/KeySerials/GetForPerson:
    get:
      tags:
      - KeySerials
      parameters:
      - name: personId
        in: query
        schema:
          type: integer
          format: int32
      - name: teamName
        in: path
        required: true
        schema:
          type: string
      - name: X-Auth-Token
        in: header
        description: access token
        required: true
        schema:
          type: string
          default: ApiKey
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/KeySerial'
        '401':
          description: Unauthorized
        '403':
          description: Forbidden
      security:
      - ApiKey:
        - KeyMasterAccess
  /api/{teamName}/KeySerials/Details/{id}:
    get:
      tags:
      - KeySerials
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: integer
          format: int32
      - name: teamName
        in: path
        required: true
        schema:
          type: string
      - name: X-Auth-Token
        in: header
        description: access token
        required: true
        schema:
          type: string
          default: ApiKey
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/KeySerial'
        '401':
          description: Unauthorized
        '403':
          description: Forbidden
      security:
      - ApiKey:
        - KeyMasterAccess
  /api/{teamName}/KeySerials/Create:
    post:
      tags:
      - KeySerials
      parameters:
      - name: teamName
        in: path
        required: true
        schema:
          type: string
      - name: X-Auth-Token
        in: header
        description: access token
        required: true
        schema:
          type: string
          default: ApiKey
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateKeySerialViewModel'
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/KeySerial'
        '401':
          description: Unauthorized
        '403':
          description: Forbidden
      security:
      - ApiKey:
        - KeyMasterAccess
  /api/{teamName}/KeySerials/Update/{id}:
    post:
      tags:
      - KeySerials
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: integer
          format: int32
      - name: teamName
        in: path
        required: true
        schema:
          type: string
      - name: X-Auth-Token
        in: header
        description: access token
        required: true
        schema:
          type: string
          default: ApiKey
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UpdateKeySerialViewModel'
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/KeySerial'
        '401':
          description: Unauthorized
        '403':
          description: Forbidden
      security:
      - ApiKey:
        - KeyMasterAccess
  /api/{teamName}/KeySerials/Assign:
    post:
      tags:
      - KeySerials
      parameters:
      - name: teamName
        in: path
        required: true
        schema:
          type: string
      - name: X-Auth-Token
        in: header
        description: access token
        required: true
        schema:
          type: string
          default: ApiKey
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/AssignKeySerialViewModel'
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/KeySerial'
        '401':
          description: Unauthorized
        '403':
          description: Forbidden
      security:
      - ApiKey:
        - KeyMasterAccess
  /api/{teamName}/KeySerials/Revoke/{id}:
    post:
      tags:
      - KeySerials
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: integer
          format: int32
      - name: teamName
        in: path
        required: true
        schema:
          type: string
      - name: X-Auth-Token
        in: header
        description: access token
        required: true
        schema:
          type: string
          default: ApiKey
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/KeySerial'
        '401':
          description: Unauthorized
        '403':
          description: Forbidden
      security:
      - ApiKey:
        - KeyMasterAccess
  /api/{teamName}/KeySerials/GetHistory/{id}:
    get:
      tags:
      - KeySerials
      summary: Takes the top 5 history records
      parameters:
      - name: id
        in: path
        description: ''
        required: true
        schema:
          type: integer
          format: int32
      - name: max
        in: query
        description: Defaults to 5
        schema:
          type: integer
          format: int32
          default: 5
      - name: teamName
        in: path
        required: true
        schema:
          type: string
      - name: X-Auth-Token
        in: header
        description: access token
        required: true
        schema:
          type: string
          default: ApiKey
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/History'
        '401':
          description: Unauthorized
        '403':
          description: Forbidden
      security:
      - ApiKey:
        - KeyMasterAccess
  /api/{teamName}/KeySerials/ListKeySerialStatus:
    get:
      tags:
      - KeySerials
      parameters:
      - name: teamName
        in: path
        required: true
        schema:
          type: string
      - name: X-Auth-Token
        in: header
        description: access token
        required: true
        schema:
          type: string
          default: ApiKey
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                type: array
                items:
                  type: string
        '401':
          description: Unauthorized
        '403':
          description: Forbidden
      security:
      - ApiKey:
        - KeyMasterAccess
components:
  schemas:
    Group:
      required:
      - name
      type: object
      properties:
        id:
          type: integer
          format: int32
        name:
          maxLength: 128
          minLength: 0
          type: string
        groupPermissions:
          type:
          - array
          - 'null'
          items:
            $ref: '#/components/schemas/GroupPermission'
        teams:
          type:
          - array
          - 'null'
          items:
            $ref: '#/components/schemas/GroupXTeam'
      additionalProperties: false
    AccessAssignment:
      type: object
      properties:
        id:
          type: integer
          format: int32
        person:
          $ref: '#/components/schemas/Person'
        personId:
          type: integer
          format: int32
        requestedAt:
          type: string
          format: date-time
        requestedBy:
          $ref: '#/components/schemas/User'
        requestedById:
          type:
          - string
          - 'null'
        requestedByName:
          type:
          - string
          - 'null'
        approvedAt:
          type:
          - string
          - 'null'
          format: date-time
        expiresAt:
          type: string
          format: date-time
        isConfirmed:
          type: boolean
        confirmedAt:
          type:
          - string
          - 'null'
          format: date-time
        nextNotificationDate:
          type:
          - string
          - 'null'
          format: date-time
        accessId:
          type: integer
          format: int32
        access:
          $ref: '#/components/schemas/Access'
      additionalProperties: false
    TeamPermission:
      required:
      - role
      - team
      - user
      type: object
      properties:
        id:
          type: integer
          format: int32
        team:
          $ref: '#/components/schemas/Team'
        teamId:
          type: integer
          format: int32
        user:
          $ref: '#/components/schemas/User'
        userId:
          type:
          - string
          - 'null'
        role:
          $ref: '#/components/schemas/Role'
        roleId:
          type: integer
          format: int32
      additionalProperties: false
    Equipment:
      required:
      - name
      type: object
      properties:
        id:
          type: integer
          format: int32
        name:
          maxLength: 64
          minLength: 0
          type: string
        notes:
          type:
          - string
          - 'null'
        tags:
          type:
          - string
          - 'null'
        team:
          $ref: '#/components/schemas/Team'
        teamId:
          type: integer
          format: int32
        active:
          type: boolean
        title:
          type:
          - string
          - 'null'
          readOnly: true
        type:
          type:
          - string
          - 'null'
        serialNumber:
          type:
          - string
          - 'null'
        make:
          type:
          - string
          - 'null'
        model:
          type:
          - string
          - 'null'
        protectionLevel:
          maxLength: 2
          minLength: 0
          type:
          - string
          - 'null'
        availabilityLevel:
          maxLength: 2
          minLength: 0
          type:
          - string
          - 'null'
        systemManagementId:
          maxLength: 16
          minLength: 0
          type:
          - string
          - 'null'
        space:
          $ref: '#/components/schemas/Space'
        spaceId:
          type:
          - integer
          - 'null'
          format: int32
        assignment:
          $ref: '#/components/schemas/EquipmentAssignment'
        equipmentAssignmentId:
          type:
          - integer
          - 'null'
          format: int32
        attributes:
          type:
          - array
          - 'null'
          items:
            $ref: '#/components/schemas/EquipmentAttribute'
      additionalProperties: false
    WorkstationAttribute:
      type: object
      properties:
        id:
          type: integer
          format: int32
        workstation:
          $ref: '#/components/schemas/Workstation'
        workstationId:
          type: integer
          format: int32
        key:
          type:
          - string
          - 'null'
        value:
          type:
          - string
          - 'null'
      additionalProperties: false
    Person:
      required:
      - email
      - firstName
      - lastName
      type: object
      properties:
        id:
          type: integer
          format: int32
        active:
          type: boolean
        team:
          $ref: '#/components/schemas/Team'
        teamId:
          type: integer
          format: int32
        user:
          $ref: '#/components/schemas/User'
        userId:
          type:
          - string
          - 'null'
        firstName:
          maxLength: 50
          minLength: 0
          type: string
        lastName:
          maxLength: 50
          minLength: 0
          type: string
        name:
          maxLength: 256
          minLength: 0
          type:
          - string
          - 'null'
          readOnly: true
        nameV2:
          maxLength: 256
          minLength: 0
          type:
          - string
          - 'null'
          readOnly: true
        email:
          maxLength: 256
          minLength: 0
          type: string
          format: email
        tags:
          type:
          - string
          - 'null'
        title:
          type:
          - string
          - 'null'
        homePhone:
          type:
          - string
          - 'null'
        teamPhone:
          type:
          - string
          - 'null'
        supervisorId:
          type:
          - integer
          - 'null'
          format: int32
        supervisor:
          $ref: '#/components/schemas/Person'
        startDate:
          type:
          - string
          - 'null'
          format: date-time
        endDate:
          type:
          - string
          - 'null'
          format: date-time
        category:
          type:
          - string
          - 'null'
        notes:
          type:
          - string
          - 'null'
          format: multiline
        isSupervisor:
          type: boolean
        accessAssignments:
          type:
          - array
          - 'null'
          items:
            $ref: '#/components/schemas/AccessAssignment'
        keySerialAssignments:
          type:
          - array
          - 'null'
          items:
            $ref: '#/components/schemas/KeySerialAssignment'
        equipmentAssignments:
          type:
          - array
          - 'null'
          items:
            $ref: '#/components/schemas/EquipmentAssignment'
        workstationAssignments:
          type:
          - array
          - 'null'
          items:
            $ref: '#/components/schemas/WorkstationAssignment'
        documents:
          type:
          - array
          - 'null'
          items:
            $ref: '#/components/schemas/Document'
      additionalProperties: false
    EquipmentAttribute:
      type: object
      properties:
        id:
          type: integer
          format: int32
        equipment:
          $ref: '#/components/schemas/Equipment'
        equipmentId:
          type: integer
          format: int32
        key:
          type:
          - string
          - 'null'
        value:
          type:
          - string
          - 'null'
      additionalProperties: false
    Space:
      type: object
      properties:
        id:
          type: integer
          format: int32
        deptKey:
          type:
          - string
          - 'null'
        bldgKey:
          type:
          - string
          - 'null'
        roomKey:
          type:
          - string
          - 'null'
        floorKey:
          type:
          - string
          - 'null'
        bldgName:
          type:
          - string
          - 'null'
        floorName:
          type:
          - string
          - 'null'
        roomNumber:
          type:
          - string
          - 'null'
        roomName:
          type:
          - string
          - 'null'
        roomCategoryName:
          type:
          - string
          - 'null'
        roomCategoryCode:
          type:
          - string
          - 'null'
        chartNum:
          type:
          - string
          - 'null'
        orgId:
          type:
          - string
          - 'null'
        deptName:
          type:
          - string
          - 'null'
        source:
          type:
          - string
          - 'null'
        active:
          type: boolean
        sqFt:
          type:
          - integer
          - 'null'
          format: int32
        shortName:
          type:
          - string
          - 'null'
          readOnly: true
      additionalProperties: false
    History:
      required:
      - description
      type: object
      properties:
        id:
          type: integer
          format: int32
        description:
          minLength: 1
          type: string
        actor:
          $ref: '#/components/schemas/User'
        actorId:
          type:
          - string
          - 'null'
        actedDate:
          type: string
          format: date-time
        target:
          $ref: '#/components/schemas/Person'
        targetId:
          type:
          - integer
          - 'null'
          format: int32
        assetType:
          type:
          - string
          - 'null'
        actionType:
          type:
          - string
          - 'null'
        key:
          $ref: '#/components/schemas/Key'
        keyId:
          type:
          - integer
          - 'null'
          format: int32
        keySerial:
          $ref: '#/components/schemas/KeySerial'
        keySerialId:
          type:
          - integer
          - 'null'
          format: int32
        equipment:
          $ref: '#/components/schemas/Equipment'
        equipmentId:
          type:
          - integer
          - 'null'
          format: int32
        access:
          $ref: '#/components/schemas/Access'
        accessId:
          type:
          - integer
          - 'null'
          format: int32
        workstation:
          $ref: '#/components/schemas/Workstation'
        workstationId:
          type:
          - integer
          - 'null'
          format: int32
        document:
          $ref: '#/components/schemas/Document'
        documentId:
          type:
          - integer
          - 'null'
          format: int32
        link:
          type:
          - string
          - 'null'
          readOnly: true
      additionalProperties: false
    GroupXTeam:
      required:
      - group
      - team
      type: object
      properties:
        id:
          type: integer
          format: int32
        group:
          $ref: '#/components/schemas/Group'
        groupId:
          type: integer
          format: int32
        team:
          $ref: '#/components/schemas/Team'
        teamId:
          type: integer
          format: int32
      additionalProperties: false
    KeyXSpace:
      required:
      - key
      - space
      type: object
      properties:
        id:
          type: integer
          format: int32
        key:
          $ref: '#/components/schemas/Key'
        keyId:
          type: integer
          format: int32
        space:
          $ref: '#/components/schemas/Space'
        spaceId:
          type:
          - integer
          - 'null'
          format: int32
      additionalProperties: false
    TeamApiCode:
      required:
      - team
      type: object
      properties:
        id:
          type: integer
          format: int32
        team:
          $ref: '#/components/schemas/Team'
        teamId:
          type: integer
          format: int32
        apiCode:
          type: string
          format: uuid
      additionalProperties: false
    Document:
      required:
      - name
      type: object
      properties:
        id:
          type: integer
          format: int32
        name:
          maxLength: 64
          minLength: 0
          type: string
        notes:
          type:
          - string
          - 'null'
        tags:
          type:
          - string
          - 'null'
        team:
          $ref: '#/components/schemas/Team'
        teamId:
          type: integer
          format: int32
        active:
          type: boolean
        title:
          type:
          - string
          - 'null'
          readOnly: true
        person:
          $ref: '#/components/schemas/Person'
        personId:
          type: integer
          format: int32
        envelopeId:
          type:
          - string
          - 'null'
        templateId:
          type:
          - string
          - 'null'
        status:
          type:
          - string
          - 'null'
        createdAt:
          type: string
          format: date-time
        completedAt:
          type:
          - string
          - 'null'
          format: date-time
        accountId:
          type:
          - string
          - 'null'
        apiBasePath:
          type:
          - string
          - 'null'
      additionalProperties: false
    TeamPpsDepartment:
      required:
      - ppsDepartmentCode
      - team
      type: object
      properties:
        id:
          type: integer
          format: int32
        ppsDepartmentCode:
          maxLength: 6
          minLength: 0
          type: string
        departmentName:
          type:
          - string
          - 'null'
        team:
          $ref: '#/components/schemas/Team'
        teamId:
          type: integer
          format: int32
      additionalProperties: false
    Key:
      required:
      - code
      - name
      type: object
      properties:
        id:
          type: integer
          format: int32
        name:
          maxLength: 64
          minLength: 0
          type: string
        notes:
          type:
          - string
          - 'null'
        tags:
          type:
          - string
          - 'null'
        team:
          $ref: '#/components/schemas/Team'
        teamId:
          type: integer
          format: int32
        active:
          type: boolean
        code:
          maxLength: 64
          minLength: 0
          type: string
        keyXSpaces:
          type:
          - array
          - 'null'
          items:
            $ref: '#/components/schemas/KeyXSpace'
        serials:
          type:
          - array
          - 'null'
          items:
            $ref: '#/components/schemas/KeySerial'
        title:
          type:
          - string
          - 'null'
          readOnly: true
      additionalProperties: false
    Team:
      required:
      - name
      - slug
      type: object
      properties:
        id:
          type: integer
          format: int32
        name:
          maxLength: 128
          minLength: 0
          type: string
        slug:
          maxLength: 40
          minLength: 3
          pattern: ^([a-z0-9]+[a-z0-9\-]?)+[a-z0-9]$
          type: string
        boardingNotificationEmail:
          maxLength: 256
          minLength: 0
          type:
          - string
          - 'null'
          format: email
        people:
          type:
          - array
          - 'null'
          items:
            $ref: '#/components/schemas/Person'
        teamPermissions:
          type:
          - array
          - 'null'
          items:
            $ref: '#/components/schemas/TeamPermission'
        fisOrgs:
          type:
          - array
          - 'null'
          items:
            $ref: '#/components/schemas/FinancialOrganization'
        ppsDepartments:
          type:
          - array
          - 'null'
          items:
            $ref: '#/components/schemas/TeamPpsDepartment'
        groups:
          type:
          - array
          - 'null'
          items:
            $ref: '#/components/schemas/GroupXTeam'
        teamApiCode:
          $ref: '#/components/schemas/TeamApiCode'
        documentAccountName:
          type:
          - string
          - 'null'
        documentAccountId:
          type:
          - string
          - 'null'
        documentApiBasePath:
          type:
          - string
          - 'null'
      additionalProperties: false
    FinancialOrganization:
      required:
      - chart
      - orgCode
      - team
      type: object
      properties:
        id:
          type: integer
          format: int32
        chart:
          maxLength: 1
          minLength: 0
          type: string
        orgCode:
          maxLength: 4
          minLength: 0
          type: string
        team:
          $ref: '#/components/schemas/Team'
        teamId:
          type: integer
          format: int32
        chartAndOrg:
          type:
          - string
          - 'null'
          readOnly: true
      additionalProperties: false
    CreateKeySerialViewModel:
      required:
      - number
      type: object
      properties:
        keyId:
          type: integer
          format: int32
        number:
          maxLength: 64
          minLength: 0
          type: string
        status:
          type:
          - string
          - 'null'
        notes:
          type:
          - string
          - 'null'
      additionalProperties: false
    UpdateKeySerialViewModel:
      required:
      - number
      - status
      type: object
      properties:
        number:
          maxLength: 64
          minLength: 0
          type: string
        status:
          minLength: 1
          type: string
        notes:
          type:
          - string
          - 'null'
      additionalProperties: false
    Workstation:
      required:
      - name
      - space
      type: object
      properties:
        id:
          type: integer
          format: int32
        name:
          maxLength: 64
          minLength: 0
          type: string
        notes:
          type:
          - string
          - 'null'
        tags:
          type:
          - string
          - 'null'
        team:
          $ref: '#/components/schemas/Team'
        teamId:
          type: integer
          format: int32
        active:
          type: boolean
        title:
          type:
          - string
          - 'null'
          readOnly: true
        type:
          type:
          - string
          - 'null'
        space:
          $ref: '#/components/schemas/Space'
        spaceId:
          type: integer
          format: int32
        assignment:
          $ref: '#/components/schemas/WorkstationAssignment'
        workstationAssignmentId:
          type:
          - integer
          - 'null'
          format: int32
        attributes:
          type:
          - array
          - 'null'
          items:
            $ref: '#/components/schemas/WorkstationAttribute'
      additionalProperties: false
    Role:
      required:
      - name
      type: object
      properties:
        id:
          type: integer
          format: int32
        name:
          maxLength: 50
          minLength: 0
          type: string
        isAdmin:
          type: boolean
      additionalProperties: false
    GroupPermission:
      required:
      - group
      - user
      type: object
      properties:
        id:
          type: integer
          format: int32
        group:
          $ref: '#/components/schemas/Group'
        groupId:
          type: integer
          format: int32
        user:
          $ref: '#/components/schemas/User'
        userId:
          type:
          - string
          - 'null'
      additionalProperties: false
    AssignKeySerialViewModel:
      type: object
      properties:
        keySerialId:
          type: integer
          format: int32
        personId:
          type: integer
          format: int32
        expiresAt:
          type: string
          format: date-time
      additionalProperties: false
    User:
      required:
      - email
      - firstName
      - lastName
      type: object
      properties:
        id:
          type:
          - string
          - 'null'
        iam:
          type:
          - string
          - 'null'
        firstName:
          maxLength: 50
          minLength: 0
          type: string
        lastName:
          maxLength: 50
          minLength: 0
          type: string
        name:
          maxLength: 256
          minLength: 0
          type:
          - string
          - 'null'
          readOnly: true
        email:
          maxLength: 256
          minLength: 0
          type: string
          format: email
        pronouns:
          maxLength: 50
          minLength: 0
          type:
          - string
          - 'null'
        people:
          type:
          - array
          - 'null'
          items:
            $ref: '#/components/schemas/Person'
        teamPermissions:
          type:
          - array
          - 'null'
          items:
            $ref: '#/components/schemas/TeamPermission'
      additionalProperties: false
    WorkstationAssignment:
      type: object
      properties:
        id:
          type: integer
          format: int32
        person:
          $ref: '#/components/schemas/Person'
        personId:
          type: integer
          format: int32
        requestedAt:
          type: string
          format: date-time
        requestedBy:
          $ref: '#/components/schemas/User'
        requestedById:
          type:
          - string
          - 'null'
        requestedByName:
          type:
          - string
          - 'null'
        approvedAt:
          type:
   

# --- truncated at 32 KB (36 KB total) ---
# Full source: https://raw.githubusercontent.com/api-evangelist/uc-davis/refs/heads/main/openapi/uc-davis-keyserials-api-openapi.yml