Deputy Department API

V1 /my/department/* endpoints

GitHub OpenAPI

Operations 10

Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay

GET /my/department/{intDeptId} Get my department · GET Department / (:intDeptId)? #
Ask an LLM
“What details are stored for the department I supervise?”
“Can I look up one department by its ID?”
Tell an agent
Show my department {intDeptId}.
Get the department record {intDeptId}.
GET /my/department/{intDeptId}/weather Get the weather for my department · GET Department / weather #
Ask an LLM
“What weather is forecast for the location of the department I supervise?”
“Can I check the weather at my department's site?”
Tell an agent
Show the weather for my department {intDeptId}.
Get the weather forecast at department {intDeptId}'s location.
GET /my/department/{intDeptId}/weather/{date} Get a department's weather for a specific date · GET Department / :date #
Ask an LLM
“What was the weather at my department's site on a particular date?”
“Can I look up the weather for a specific day at a department?”
Tell an agent
Get the weather on {date} for department {intDeptId}.
Show the weather report dated {date} for the site of department {intDeptId}.
PUT /supervise/department Create a department · Create Department #
Ask an LLM
“How do I create a new department to supervise?”
“Can I add a department through the supervise endpoint?”
Tell an agent
Create a department.
Add a new department to supervise.
POST /supervise/department/all/{locationId} Create a department for all locations · POST Department / :locationId #
Ask an LLM
“Can I create a department that covers every location at once?”
“Is there a way to create one department for all sites?”
Tell an agent
Create a department for all locations {locationId}.
Create a department that covers every site in {locationId}.
GET /supervise/department/check/{id} Check a department ID · GET Department / :id #
Ask an LLM
“How do I verify a department ID before creating a department?”
“Can I check whether a department ID already exists?”
Tell an agent
Check department ID {id}.
Verify that department ID {id} is available.
PUT /supervise/department/create Create a department with the create endpoint · PUT Department / create #
Ask an LLM
“Is there a create endpoint for departments that takes a PUT?”
“Can I create a department using the PUT create endpoint?”
Tell an agent
Create a department using the create endpoint.
PUT a new department through the create endpoint.
GET /supervise/department/location/{id} Get a department by location ID · GET Department / :id #
Ask an LLM
“How do I find the department that covers a given location?”
“Can I look up a department by its location ID?”
Tell an agent
Get the department for location {id}.
Find which department supervises location {id}.
POST /supervise/department/{id} Supervise a department · POST Department / :id #
Ask an LLM
“Can I take oversight of another department?”
“Which endpoint starts a department supervision?”
Tell an agent
Supervise department {id}.
Start supervising department {id}.
DELETE /supervise/department/{id} Delete a department · DELETE Department / :id #
Ask an LLM
“How do I delete a department I no longer supervise?”
“Can I remove a department record?”
Tell an agent destructive · confirm first
Delete department {id}.
Remove the department record {id}.

Specifications

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/deputy:deputy-department-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

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. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

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

OpenAPI Specification

deputy-department-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Deputy Department API
  version: 1.0.0
  description: 'Operations tagged Department across 2 of this provider''s published API definitions: deputy-openapi.json, deputy-department-api-openapi.yml. Each path carries the servers of the definition it was published in.'
servers:
- url: https://{subdomain}.{region}.deputy.com/api/v1
  description: Deputy tenant
  variables:
    subdomain:
      default: your-subdomain
    region:
      default: deputy
      enum:
      - au
      - eu
      - na
      - deputy
security:
- BearerAuth: []
tags:
- name: Department
  description: V1 /my/department/* endpoints
paths:
  /my/department/{intDeptId}:
    get:
      tags:
      - Department
      summary: GET Department / (:intDeptId)?
      operationId: my_department__intdeptid__get
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                type: object
        '400':
          description: Bad request
        '401':
          description: Not authenticated
        '403':
          description: Insufficient permissions
        '404':
          description: Not found
      parameters:
      - name: intDeptId
        in: path
        required: true
        schema:
          type: string
          pattern: ^\d+$
    servers:
    - url: https://{subdomain}.{region}.deputy.com/api/v1
      description: Deputy tenant
      variables:
        subdomain:
          default: your-subdomain
        region:
          default: deputy
          enum:
          - au
          - eu
          - na
          - deputy
  /my/department/{intDeptId}/weather:
    get:
      tags:
      - Department
      summary: GET Department / weather
      operationId: my_department__intdeptid_weather_get
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                type: object
        '400':
          description: Bad request
        '401':
          description: Not authenticated
        '403':
          description: Insufficient permissions
        '404':
          description: Not found
      parameters:
      - name: intDeptId
        in: path
        required: true
        schema:
          type: integer
          pattern: ^\d+
    servers:
    - url: https://{subdomain}.{region}.deputy.com/api/v1
      description: Deputy tenant
      variables:
        subdomain:
          default: your-subdomain
        region:
          default: deputy
          enum:
          - au
          - eu
          - na
          - deputy
  /my/department/{intDeptId}/weather/{date}:
    get:
      tags:
      - Department
      summary: GET Department / :date
      operationId: my_department__intdeptid_weather_date_get
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                type: object
        '400':
          description: Bad request
        '401':
          description: Not authenticated
        '403':
          description: Insufficient permissions
        '404':
          description: Not found
      parameters:
      - name: intDeptId
        in: path
        required: true
        schema:
          type: integer
          pattern: ^\d+
      - name: date
        in: path
        required: true
        schema:
          type: string
          pattern: '[0-9]{4}\-[0-9]{1,2}\-[0-9]{1,2}'
    servers:
    - url: https://{subdomain}.{region}.deputy.com/api/v1
      description: Deputy tenant
      variables:
        subdomain:
          default: your-subdomain
        region:
          default: deputy
          enum:
          - au
          - eu
          - na
          - deputy
  /supervise/department:
    servers:
    - url: https://{subdomain}.{region}.deputy.com/api/v1
      description: Deputy tenant
      variables:
        subdomain:
          default: your-subdomain
        region:
          default: deputy
          enum:
          - au
          - eu
          - na
          - deputy
    put:
      tags:
      - Department
      summary: Create Department
      operationId: supervise_department__put
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                type: object
        '400':
          description: Bad request
        '401':
          description: Not authenticated
        '403':
          description: Insufficient permissions
        '404':
          description: Not found
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
  /supervise/department/all/{locationId}:
    servers:
    - url: https://{subdomain}.{region}.deputy.com/api/v1
      description: Deputy tenant
      variables:
        subdomain:
          default: your-subdomain
        region:
          default: deputy
          enum:
          - au
          - eu
          - na
          - deputy
    post:
      tags:
      - Department
      summary: POST Department / :locationId
      operationId: supervise_department__all_locationid_post
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                type: object
        '400':
          description: Bad request
        '401':
          description: Not authenticated
        '403':
          description: Insufficient permissions
        '404':
          description: Not found
      parameters:
      - name: locationId
        in: path
        required: true
        schema:
          type: integer
          pattern: \d+
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
  /supervise/department/check/{id}:
    servers:
    - url: https://{subdomain}.{region}.deputy.com/api/v1
      description: Deputy tenant
      variables:
        subdomain:
          default: your-subdomain
        region:
          default: deputy
          enum:
          - au
          - eu
          - na
          - deputy
    get:
      tags:
      - Department
      summary: GET Department / :id
      operationId: supervise_department__check_id_get
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                type: object
        '400':
          description: Bad request
        '401':
          description: Not authenticated
        '403':
          description: Insufficient permissions
        '404':
          description: Not found
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: integer
          pattern: \d+
  /supervise/department/create:
    servers:
    - url: https://{subdomain}.{region}.deputy.com/api/v1
      description: Deputy tenant
      variables:
        subdomain:
          default: your-subdomain
        region:
          default: deputy
          enum:
          - au
          - eu
          - na
          - deputy
    put:
      tags:
      - Department
      summary: PUT Department / create
      operationId: supervise_department__create_put
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                type: object
        '400':
          description: Bad request
        '401':
          description: Not authenticated
        '403':
          description: Insufficient permissions
        '404':
          description: Not found
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
  /supervise/department/location/{id}:
    servers:
    - url: https://{subdomain}.{region}.deputy.com/api/v1
      description: Deputy tenant
      variables:
        subdomain:
          default: your-subdomain
        region:
          default: deputy
          enum:
          - au
          - eu
          - na
          - deputy
    get:
      tags:
      - Department
      summary: GET Department / :id
      operationId: supervise_department__location_id_get
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                type: object
        '400':
          description: Bad request
        '401':
          description: Not authenticated
        '403':
          description: Insufficient permissions
        '404':
          description: Not found
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: integer
          pattern: \d+
  /supervise/department/{id}:
    servers:
    - url: https://{subdomain}.{region}.deputy.com/api/v1
      description: Deputy tenant
      variables:
        subdomain:
          default: your-subdomain
        region:
          default: deputy
          enum:
          - au
          - eu
          - na
          - deputy
    post:
      tags:
      - Department
      summary: POST Department / :id
      operationId: supervise_department__id_post
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                type: object
        '400':
          description: Bad request
        '401':
          description: Not authenticated
        '403':
          description: Insufficient permissions
        '404':
          description: Not found
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: integer
          pattern: \d+
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
    delete:
      tags:
      - Department
      summary: DELETE Department / :id
      operationId: supervise_department__id_delete
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                type: object
        '400':
          description: Bad request
        '401':
          description: Not authenticated
        '403':
          description: Insufficient permissions
        '404':
          description: Not found
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: integer
          pattern: \d+
components:
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      description: OAuth 2.0 access token or Deputy Permanent Token.
x-refined-from:
- deputy-openapi.json
- deputy-department-api-openapi.yml