Zywave Departments API

The Departments API from Zywave — 2 operation(s) for departments.

Operations 5

GET /policies/v2.0/departments/{id} Gets a department by id #
DELETE /policies/v2.0/departments/{id} Deletes the department information associated with the department id specified #
PUT /policies/v2.0/departments/{id} Updates the existing department information for the department id specified #
GET /policies/v2.0/departments Search for department #
POST /policies/v2.0/departments Creates a department for the agency #

Documentation

Specifications

Schemas & Data

📊
JSONSchema
https://artifacts.apis.io/zywave/json-schema/zywave-account-contact-info-schema.json
📊
JSONSchema
https://artifacts.apis.io/zywave/json-schema/zywave-account-info-schema.json
📊
JSONSchema
https://artifacts.apis.io/zywave/json-schema/zywave-account-schema.json
📊
JSONSchema
https://artifacts.apis.io/zywave/json-schema/zywave-account-contact-schema.json
📊
JSONSchema
https://artifacts.apis.io/zywave/json-schema/zywave-paged-result-of-account-external-reference-schema.json
📊
JSONSchema
https://artifacts.apis.io/zywave/json-schema/zywave-paged-result-of-account-contact-schema.json
📊
JSONSchema
https://artifacts.apis.io/zywave/json-schema/zywave-account-contact-driver-info-schema.json
📊
JSONSchema
https://artifacts.apis.io/zywave/json-schema/zywave-paged-result-of-account-contact-driver-schema.json
📊
JSONSchema
https://artifacts.apis.io/zywave/json-schema/zywave-agency-user-info-schema.json
📊
JSONSchema
https://artifacts.apis.io/zywave/json-schema/zywave-agency-user-schema.json
📊
JSONSchema
https://artifacts.apis.io/zywave/json-schema/zywave-paged-result-of-agency-user-schema.json
📊
JSONSchema
https://artifacts.apis.io/zywave/json-schema/zywave-agency-schema.json
📊
JSONSchema
https://artifacts.apis.io/zywave/json-schema/zywave-agency-collection-schema.json
📊
JSONSchema
https://artifacts.apis.io/zywave/json-schema/zywave-activity-schema.json
📊
JSONSchema
https://artifacts.apis.io/zywave/json-schema/zywave-carrier-contact-schema.json
📊
JSONSchema
https://artifacts.apis.io/zywave/json-schema/zywave-commission-schedule-schema.json
📊
JSONSchema
https://artifacts.apis.io/zywave/json-schema/zywave-broker-contact-schema.json
📊
JSONSchema
https://artifacts.apis.io/zywave/json-schema/zywave-plan-rate-metadata-schema.json
📊
JSONSchema
https://artifacts.apis.io/zywave/json-schema/zywave-file-response-schema.json
📊
JSONSchema
https://artifacts.apis.io/zywave/json-schema/zywave-paged-result-of-carrier-company-schema.json
📊
JSONSchema
https://artifacts.apis.io/zywave/json-schema/zywave-paged-result-of-carrier-schema.json
📊
JSONSchema
https://artifacts.apis.io/zywave/json-schema/zywave-carrier-company-schema.json
📊
JSONSchema
https://artifacts.apis.io/zywave/json-schema/zywave-carrier-schema.json
📊
JSONSchema
https://artifacts.apis.io/zywave/json-schema/zywave-invite-request-schema.json
📊
JSONSchema
https://artifacts.apis.io/zywave/json-schema/zywave-employee-response-schema.json
📊
JSONSchema
https://artifacts.apis.io/zywave/json-schema/zywave-tool-package-response-schema.json
📊
JSONSchema
https://artifacts.apis.io/zywave/json-schema/zywave-employee-request-schema.json
📊
JSONSchema
https://artifacts.apis.io/zywave/json-schema/zywave-tool-package-request-schema.json
📊
JSONSchema
https://artifacts.apis.io/zywave/json-schema/zywave-paged-result-of-employee-group-response-schema.json
📊
JSONSchema
https://artifacts.apis.io/zywave/json-schema/zywave-paged-result-of-company-schema.json
📊
JSONSchema
https://artifacts.apis.io/zywave/json-schema/zywave-loss-event-details-schema.json
📊
JSONSchema
https://artifacts.apis.io/zywave/json-schema/zywave-company-schema.json
📊
JSONSchema
https://artifacts.apis.io/zywave/json-schema/zywave-program-assessment-search-request-schema.json
📊
JSONSchema
https://artifacts.apis.io/zywave/json-schema/zywave-loss-event-data-schema.json
📊
JSONSchema
https://artifacts.apis.io/zywave/json-schema/zywave-rpm-data-schema.json
📊
JSONSchema
https://artifacts.apis.io/zywave/json-schema/zywave-download-request-schema.json
📊
JSONSchema
https://artifacts.apis.io/zywave/json-schema/zywave-paged-result-of-content-schema.json
📊
JSONSchema
https://artifacts.apis.io/zywave/json-schema/zywave-content-aggregation-schema.json
📊
JSONSchema
https://artifacts.apis.io/zywave/json-schema/zywave-content-schema.json
📊
JSONSchema
https://artifacts.apis.io/zywave/json-schema/zywave-recommended-content-info-schema.json
📊
JSONSchema
https://artifacts.apis.io/zywave/json-schema/zywave-file-schema.json
📊
JSONSchema
https://artifacts.apis.io/zywave/json-schema/zywave-welfare-summary-schema.json
📊
JSONSchema
https://artifacts.apis.io/zywave/json-schema/zywave-commercial-details-schema.json
📊
JSONSchema
https://artifacts.apis.io/zywave/json-schema/zywave-commercial-summary-schema.json
📊
JSONSchema
https://artifacts.apis.io/zywave/json-schema/zywave-company-contacts-schema.json
📊
JSONSchema
https://artifacts.apis.io/zywave/json-schema/zywave-company-details-schema.json
📊
JSONSchema
https://artifacts.apis.io/zywave/json-schema/zywave-paged-result-of-feature-schema.json
📊
JSONSchema
https://artifacts.apis.io/zywave/json-schema/zywave-paged-result-of-license-schema.json
📊
JSONSchema
https://artifacts.apis.io/zywave/json-schema/zywave-feature-schema.json
📊
JSONSchema
https://artifacts.apis.io/zywave/json-schema/zywave-license-schema.json
📊
JSONSchema
https://artifacts.apis.io/zywave/json-schema/zywave-feature-license-schema.json
📊
JSONSchema
https://artifacts.apis.io/zywave/json-schema/zywave-user-principal-schema.json
📊
JSONSchema
https://artifacts.apis.io/zywave/json-schema/zywave-paged-result-of-user-principal-schema.json
📊
JSONSchema
https://artifacts.apis.io/zywave/json-schema/zywave-quote-info-schema.json
📊
JSONSchema
https://artifacts.apis.io/zywave/json-schema/zywave-refresh-quote-request-schema.json
📊
JSONSchema
https://artifacts.apis.io/zywave/json-schema/zywave-plan-schema.json
📊
JSONSchema
https://artifacts.apis.io/zywave/json-schema/zywave-search-result-of-quoted-plan-with-member-rates-schema.json
📊
JSONSchema
https://artifacts.apis.io/zywave/json-schema/zywave-search-result-of-coverage-group-quoted-plan-schema.json
📊
JSONSchema
https://artifacts.apis.io/zywave/json-schema/zywave-search-result-of-plan-with-rates-schema.json
📊
JSONSchema
https://artifacts.apis.io/zywave/json-schema/zywave-policy-info-schema.json

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/zywave:zywave-departments-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. See our Privacy Policy and Terms.

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

OpenAPI Specification

zywave-departments-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Policies Departments API
  version: v2.0
servers:
- url: https://api.zywave.com
security:
- oidc:
  - api.policies
  - api.policies:read
tags:
- name: Departments
paths:
  /policies/v2.0/departments/{id}:
    get:
      tags:
      - Departments
      summary: Gets a department by id
      operationId: Departments_GetDepartment
      parameters:
      - name: id
        in: path
        required: true
        description: The department id.
        schema:
          type: integer
          format: int32
        x-position: 1
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Department'
        '401':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ProblemDetails'
        '403':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ProblemDetails'
        '404':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ProblemDetails'
      security:
      - oidc:
        - api.policies:read
    delete:
      tags:
      - Departments
      summary: Deletes the department information associated with the department id specified
      operationId: Departments_DeleteDepartment
      parameters:
      - name: id
        in: path
        required: true
        description: The id of the department to delete.
        schema:
          type: integer
          format: int32
        x-position: 1
      responses:
        '401':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ProblemDetails'
        '403':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ProblemDetails'
        '204':
          description: A 204 No Content response.
      security:
      - oidc:
        - api.policies
    put:
      tags:
      - Departments
      summary: Updates the existing department information for the department id specified
      operationId: Departments_PutDepartment
      parameters:
      - name: id
        in: path
        required: true
        description: The id of the department to update
        schema:
          type: integer
          format: int32
        x-position: 1
      requestBody:
        x-name: departmentInfo
        description: The information to update on the department.
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/DepartmentInfo'
        required: true
        x-position: 2
      responses:
        '204':
          description: ''
        '404':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ProblemDetails'
        '400':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ProblemDetails'
        '401':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ProblemDetails'
        '403':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ProblemDetails'
      security:
      - oidc:
        - api.policies
  /policies/v2.0/departments:
    get:
      tags:
      - Departments
      summary: Search for department
      description: 'The Zywave API search is implemented using OData Version 4.0.1. Not all OData operations are available for the Zywave API platform at this time. Not all properties are filterable or sortable.

        The following properties can be used when filtering and ordering the response.

        * Id

        * Description

        * IsArchived


        See the Zywave API search documentation for more details about using OData search.'
      operationId: Departments_SearchDepartments
      parameters:
      - name: $filter
        x-originalName: filter
        in: query
        description: The search criteria for the request. To view a list of supported search operations and the properties which can be searched see the documentation above.
        schema:
          type:
          - string
          - 'null'
        x-position: 1
      - name: $orderBy
        x-originalName: orderBy
        in: query
        description: Defines the order in which the results are returned. To view a list of properties that can be used in ordering see the documentation above.
        schema:
          type:
          - string
          - 'null'
        x-position: 2
      - name: $skip
        x-originalName: skip
        in: query
        description: The number of total records to skip before displaying the first result. For example, if there are 10 total records and $skip is set to 5 the first record shown in the response will be the 6th record returned. In order to avoid an error please ensure that the $skip is dividable by the $top.
        schema:
          type:
          - integer
          - 'null'
          format: int32
        x-position: 3
      - name: $top
        x-originalName: top
        in: query
        description: The total number of records returned in the response. In order to avoid an error please ensure that the $skip is dividable by the $top.
        schema:
          type:
          - integer
          - 'null'
          format: int32
        x-position: 4
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PagedResultOfDepartment'
        '400':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ValidationProblemDetails'
        '401':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ProblemDetails'
        '403':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ProblemDetails'
      security:
      - oidc:
        - api.policies:read
    post:
      tags:
      - Departments
      summary: Creates a department for the agency
      operationId: Departments_PostDepartment
      requestBody:
        x-name: departmentInfo
        description: The department to create.
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/DepartmentInfo'
        required: true
        x-position: 1
      responses:
        '201':
          description: A 201 Created response containing the id of the created department.
          content:
            application/json:
              schema:
                type: integer
                format: int32
        '400':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ValidationProblemDetails'
        '401':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ProblemDetails'
        '403':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ProblemDetails'
      security:
      - oidc:
        - api.policies
components:
  schemas:
    ProblemDetails:
      type: object
      additionalProperties: {}
      properties:
        type:
          type:
          - string
          - 'null'
        title:
          type:
          - string
          - 'null'
        status:
          type:
          - integer
          - 'null'
          format: int32
        detail:
          type:
          - string
          - 'null'
        instance:
          type:
          - string
          - 'null'
    DepartmentInfo:
      type: object
      additionalProperties: false
      required:
      - description
      properties:
        description:
          type: string
          description: The description of the department.
          maxLength: 50
          minLength: 1
        isArchived:
          type: boolean
          description: Indicates whether the department is archived.
    Department:
      allOf:
      - $ref: '#/components/schemas/DepartmentInfo'
      - type: object
        additionalProperties: false
        properties:
          id:
            type: integer
            description: The unique Zywave identifier for the department.
            format: int32
    ValidationProblemDetails:
      allOf:
      - $ref: '#/components/schemas/HttpValidationProblemDetails'
      - type: object
        additionalProperties: {}
        properties:
          errors:
            type: object
            additionalProperties:
              type: array
              items:
                type: string
    HttpValidationProblemDetails:
      allOf:
      - $ref: '#/components/schemas/ProblemDetails'
      - type: object
        additionalProperties: {}
        properties:
          errors:
            type: object
            additionalProperties:
              type: array
              items:
                type: string
    PagedResultOfDepartment:
      type: object
      additionalProperties: false
      properties:
        hasMoreResults:
          type: boolean
        pageIndex:
          type: integer
          format: int32
        pageSize:
          type: integer
          format: int32
        skip:
          type: integer
          format: int32
        take:
          type: integer
          format: int32
        totalCount:
          type: integer
          format: int32
        items:
          type: array
          items:
            $ref: '#/components/schemas/Department'
  securitySchemes:
    oidc:
      type: openIdConnect
      openIdConnectUrl: https://auth.zywave.com/.well-known/openid-configuration
x-generator: NSwag v14.7.1.0 (NJsonSchema v11.6.1.0 (Newtonsoft.Json v13.0.0.0))