Genesys Workforce Management API

Adherence, Schedules, Forecasts, Intraday Monitoring, Time Off Requests, Configuration

OpenAPI Specification

genesys-workforce-management-api-openapi.yml Raw ↑
swagger: '2.0'
info:
  description: With the PureCloud Platform API, you can control all aspects of your PureCloud environment. With the APIs you can access the system configuration, manage conversations and more.
  version: v2
  title: PureCloud Platform Agent Assistants Workforce Management API
  termsOfService: https://help.genesys.cloud/articles/terms-and-conditions/
  contact:
    name: PureCloud Developer Evangelists
    url: https://developer.genesys.cloud/
    email: DeveloperEvangelists@genesys.com
  license:
    name: UNLICENSED
    url: https://help.genesys.cloud/articles/terms-and-conditions/
host: api.mypurecloud.com
schemes:
- https
consumes:
- application/json
produces:
- application/json
tags:
- name: Workforce Management
  description: Adherence, Schedules, Forecasts, Intraday Monitoring, Time Off Requests, Configuration
  externalDocs:
    description: Workforce Management Documentation
    url: https://developer.genesys.cloud/useragentman/workforcemanagement/
paths:
  /api/v2/workforcemanagement/calendar/data/ics:
    get:
      tags:
      - Workforce Management
      summary: Get ics formatted calendar based on shareable link
      description: ''
      operationId: getWorkforcemanagementCalendarDataIcs
      produces:
      - text/calendar
      parameters:
      - name: calendarId
        in: query
        description: The id of the ics-formatted calendar
        required: true
        type: string
      responses:
        '200':
          description: successful operation
          schema:
            type: string
        '400':
          description: The request could not be understood by the server due to malformed syntax.
          schema:
            $ref: '#/definitions/ErrorBody'
          x-inin-error-codes:
            bad.request: The request could not be understood by the server due to malformed syntax.
            response.entity.too.large: The response is over the size limit. Reduce pageSize or expand list to reduce response size if applicable
            invalid.date: 'Dates must be specified as ISO-8601 strings. For example: yyyy-MM-ddTHH:mm:ss.SSSZ'
            invalid.query.param.value: 'Value [%s] is not valid for parameter [%s]. Allowable values are: %s'
            invalid.property: Value [%s] is not a valid property for object [%s]
            constraint.validation: Query parameter did not pass validation
            invalid.value: 'Value [%s] is not valid for field type [%s]. Allowable values are: %s'
        '401':
          description: No authentication bearer token specified in authorization header.
          schema:
            $ref: '#/definitions/ErrorBody'
          x-inin-error-codes:
            authentication.required: No authentication bearer token specified in authorization header.
            ip.not.authorized: 'Requests originating from this IP address are not authorized: [%s]'
            bad.credentials: Invalid login credentials.
        '403':
          description: You are not authorized to perform the requested action.
          schema:
            $ref: '#/definitions/ErrorBody'
          x-inin-error-codes:
            missing.division.permission: Unable to perform the requested action. You are missing the following permission '%s' in the provided division(s).
            app.not.authorized.for.scope: App not authorized to use scope %s
            missing.permissions: 'Unable to perform the requested action. You are missing the following permission(s): %s'
            not.authorized: You are not authorized to perform the requested action.
            missing.any.permissions: 'Unable to perform the requested action. You must have at least one of the following permissions assigned: %s'
            forbidden: Forbidden from getting calendar
            authz.policy.denied: 'Unable to perform the requested action. Your organization''s security policies have denied access. Policy ID(s): [%s]'
            missing.any.division.permissions: 'Unable to perform the requested action. You must have at least one of the following permissions assigned: %s in at least one of the following division(s): %s'
        '404':
          description: The requested resource was not found.
          schema:
            $ref: '#/definitions/ErrorBody'
          x-inin-error-codes:
            not.found: The requested resource was not found.
            wfm.external.calendar.entity.not.found: The requested calendar entity was not found
        '408':
          description: The client did not produce a request within the server timeout limit. This can be caused by a slow network connection and/or large payloads.
          schema:
            $ref: '#/definitions/ErrorBody'
          x-inin-error-codes:
            client.timeout: The client did not produce a request within the server timeout limit. This can be caused by a slow network connection and/or large payloads.
        '409':
          description: The request conflicts with the current state of the target resource.
          schema:
            $ref: '#/definitions/ErrorBody'
          x-inin-error-codes:
            request.conflict: The request conflicts with the current state of the target resource.
        '413':
          description: 'The request is over the size limit. Maximum bytes: %s'
          schema:
            $ref: '#/definitions/ErrorBody'
          x-inin-error-codes:
            request.entity.too.large: 'The request is over the size limit. Maximum bytes: %s'
        '415':
          description: Unsupported Media Type - Unsupported or incorrect media type, such as an incorrect Content-Type value in the header.
          schema:
            $ref: '#/definitions/ErrorBody'
          x-inin-error-codes:
            unsupported.media.type: Unsupported Media Type - Unsupported or incorrect media type, such as an incorrect Content-Type value in the header.
        '429':
          description: Rate limit exceeded the maximum. Retry the request in [%s] seconds
          schema:
            $ref: '#/definitions/ErrorBody'
          x-inin-error-codes:
            too.many.requests.retry.after: Rate limit exceeded the maximum. Retry the request in [%s] seconds
            too.many.requests: Rate limit exceeded the maximum [%s] requests within [%s] seconds
        '500':
          description: The server encountered an unexpected condition which prevented it from fulfilling the request.
          schema:
            $ref: '#/definitions/ErrorBody'
          x-inin-error-codes:
            internal.server.error: The server encountered an unexpected condition which prevented it from fulfilling the request.
        '503':
          description: Service Unavailable - The server is currently unavailable (because it is overloaded or down for maintenance).
          schema:
            $ref: '#/definitions/ErrorBody'
          x-inin-error-codes:
            service.unavailable: Service Unavailable - The server is currently unavailable (because it is overloaded or down for maintenance).
        '504':
          description: The request timed out.
          schema:
            $ref: '#/definitions/ErrorBody'
          x-inin-error-codes:
            authentication.request.timeout: Authentication request timeout.
            request.timeout: The request timed out.
      x-purecloud-method-name: getWorkforcemanagementCalendarDataIcs
  /api/v2/workforcemanagement/managementunits/{managementUnitId}/activitycodes:
    get:
      tags:
      - Workforce Management
      summary: 'Deprecated: Instead use /api/v2/workforcemanagement/businessunits/{businessUnitId}/activitycodes. Get the list of activity codes'
      description: ''
      operationId: getWorkforcemanagementManagementunitActivitycodes
      produces:
      - application/json
      parameters:
      - name: managementUnitId
        in: path
        description: The ID of the management unit, or 'mine' for the management unit of the logged-in user.
        required: true
        type: string
      responses:
        '200':
          description: successful operation
          schema:
            $ref: '#/definitions/ActivityCodeContainer'
        '400':
          description: The request could not be understood by the server due to malformed syntax.
          schema:
            $ref: '#/definitions/ErrorBody'
          x-inin-error-codes:
            bad.request: The request could not be understood by the server due to malformed syntax.
            response.entity.too.large: The response is over the size limit. Reduce pageSize or expand list to reduce response size if applicable
            invalid.date: 'Dates must be specified as ISO-8601 strings. For example: yyyy-MM-ddTHH:mm:ss.SSSZ'
            invalid.query.param.value: 'Value [%s] is not valid for parameter [%s]. Allowable values are: %s'
            invalid.property: Value [%s] is not a valid property for object [%s]
            constraint.validation: '%s'
            invalid.value: 'Value [%s] is not valid for field type [%s]. Allowable values are: %s'
        '401':
          description: No authentication bearer token specified in authorization header.
          schema:
            $ref: '#/definitions/ErrorBody'
          x-inin-error-codes:
            authentication.required: No authentication bearer token specified in authorization header.
            ip.not.authorized: 'Requests originating from this IP address are not authorized: [%s]'
            bad.credentials: Invalid login credentials.
        '403':
          description: You are not authorized to perform the requested action.
          schema:
            $ref: '#/definitions/ErrorBody'
          x-inin-error-codes:
            missing.division.permission: Unable to perform the requested action. You are missing the following permission '%s' in the provided division(s).
            app.not.authorized.for.scope: App not authorized to use scope %s
            missing.permissions: 'Unable to perform the requested action. You are missing the following permission(s): %s'
            not.authorized: You are not authorized to perform the requested action.
            missing.any.permissions: 'Unable to perform the requested action. You must have at least one of the following permissions assigned: %s'
            authz.policy.denied: 'Unable to perform the requested action. Your organization''s security policies have denied access. Policy ID(s): [%s]'
            missing.any.division.permissions: 'Unable to perform the requested action. You must have at least one of the following permissions assigned: %s in at least one of the following division(s): %s'
        '404':
          description: The requested resource was not found.
          schema:
            $ref: '#/definitions/ErrorBody'
          x-inin-error-codes:
            wfm.management.unit.not.found: Management unit not found
            wfm.entity.not.found: One of the requested resources in the path variables was not found, please check the error details for more information
            not.found: The requested resource was not found.
        '408':
          description: The client did not produce a request within the server timeout limit. This can be caused by a slow network connection and/or large payloads.
          schema:
            $ref: '#/definitions/ErrorBody'
          x-inin-error-codes:
            client.timeout: The client did not produce a request within the server timeout limit. This can be caused by a slow network connection and/or large payloads.
        '409':
          description: The request conflicts with the current state of the target resource.
          schema:
            $ref: '#/definitions/ErrorBody'
          x-inin-error-codes:
            request.conflict: The request conflicts with the current state of the target resource.
        '413':
          description: 'The request is over the size limit. Maximum bytes: %s'
          schema:
            $ref: '#/definitions/ErrorBody'
          x-inin-error-codes:
            request.entity.too.large: 'The request is over the size limit. Maximum bytes: %s'
        '415':
          description: Unsupported Media Type - Unsupported or incorrect media type, such as an incorrect Content-Type value in the header.
          schema:
            $ref: '#/definitions/ErrorBody'
          x-inin-error-codes:
            unsupported.media.type: Unsupported Media Type - Unsupported or incorrect media type, such as an incorrect Content-Type value in the header.
        '429':
          description: Rate limit exceeded the maximum. Retry the request in [%s] seconds
          schema:
            $ref: '#/definitions/ErrorBody'
          x-inin-error-codes:
            too.many.requests.retry.after: Rate limit exceeded the maximum. Retry the request in [%s] seconds
            too.many.requests: Rate limit exceeded the maximum [%s] requests within [%s] seconds
        '500':
          description: The server encountered an unexpected condition which prevented it from fulfilling the request.
          schema:
            $ref: '#/definitions/ErrorBody'
          x-inin-error-codes:
            internal.server.error: The server encountered an unexpected condition which prevented it from fulfilling the request.
        '503':
          description: Service Unavailable - The server is currently unavailable (because it is overloaded or down for maintenance).
          schema:
            $ref: '#/definitions/ErrorBody'
          x-inin-error-codes:
            service.unavailable: Service Unavailable - The server is currently unavailable (because it is overloaded or down for maintenance).
        '504':
          description: The request timed out.
          schema:
            $ref: '#/definitions/ErrorBody'
          x-inin-error-codes:
            authentication.request.timeout: Authentication request timeout.
            request.timeout: The request timed out.
      security:
      - PureCloud OAuth:
        - workforce-management
        - workforce-management:readonly
      deprecated: true
      x-inin-requires-permissions:
        type: ANY
        permissions:
        - wfm:activityCode:add
        - wfm:activityCode:delete
        - wfm:activityCode:edit
        - wfm:activityCode:view
        - wfm:agent:edit
        - wfm:agentSchedule:view
        - wfm:agentTimeOffRequest:submit
        - wfm:agent:view
        - wfm:businessUnit:add
        - wfm:businessUnit:delete
        - wfm:businessUnit:edit
        - wfm:businessUnit:view
        - wfm:historicalAdherence:view
        - wfm:shrinkage:view
        - wfm:intraday:view
        - wfm:managementUnit:add
        - wfm:managementUnit:delete
        - wfm:managementUnit:edit
        - wfm:managementUnit:view
        - wfm:publishedSchedule:view
        - wfm:realtimeAdherence:view
        - wfm:schedule:add
        - wfm:schedule:delete
        - wfm:schedule:edit
        - wfm:schedule:generate
        - wfm:schedule:view
        - wfm:shortTermForecast:add
        - wfm:shortTermForecast:delete
        - wfm:shortTermForecast:edit
        - wfm:shortTermForecast:view
        - wfm:timeOffRequest:add
        - wfm:timeOffRequest:edit
        - wfm:timeOffRequest:view
        - wfm:workPlan:add
        - wfm:workPlan:delete
        - wfm:workPlan:edit
        - wfm:workPlan:view
        - wfm:workPlanRotation:add
        - wfm:workPlanRotation:delete
        - wfm:workPlanRotation:edit
        - wfm:workPlanRotation:view
        - wfm:agentSchedulingPreferencesQuery:view
        - wfm:agentSchedulingPreferences:edit
        - wfm:agentSchedulingPreferencesSettings:view
        - wfm:schedulingPreferencesQuery:view
        - wfm:schedulingPreferencesSettings:view
        - wfm:schedulingPreferencesSettings:edit
      x-purecloud-method-name: getWorkforcemanagementManagementunitActivitycodes
  /api/v2/workforcemanagement/businessunits/{businessUnitId}/activitycodes:
    get:
      tags:
      - Workforce Management
      summary: Get activity codes
      description: ''
      operationId: getWorkforcemanagementBusinessunitActivitycodes
      produces:
      - application/json
      parameters:
      - name: businessUnitId
        in: path
        description: The ID of the business unit, or 'mine' for the business unit of the logged-in user.
        required: true
        type: string
      - name: forceDownloadService
        in: query
        description: Force the result of this operation to be sent via download service. For testing/app development purposes
        required: false
        type: boolean
      responses:
        '200':
          description: successful operation
          schema:
            $ref: '#/definitions/BusinessUnitActivityCodeListing'
        '400':
          description: The request could not be understood by the server due to malformed syntax.
          schema:
            $ref: '#/definitions/ErrorBody'
          x-inin-error-codes:
            bad.request: The request could not be understood by the server due to malformed syntax.
            response.entity.too.large: The response is over the size limit. Reduce pageSize or expand list to reduce response size if applicable
            invalid.date: 'Dates must be specified as ISO-8601 strings. For example: yyyy-MM-ddTHH:mm:ss.SSSZ'
            invalid.query.param.value: 'Value [%s] is not valid for parameter [%s]. Allowable values are: %s'
            invalid.property: Value [%s] is not a valid property for object [%s]
            constraint.validation: '%s'
            invalid.value: 'Value [%s] is not valid for field type [%s]. Allowable values are: %s'
        '401':
          description: No authentication bearer token specified in authorization header.
          schema:
            $ref: '#/definitions/ErrorBody'
          x-inin-error-codes:
            authentication.required: No authentication bearer token specified in authorization header.
            ip.not.authorized: 'Requests originating from this IP address are not authorized: [%s]'
            bad.credentials: Invalid login credentials.
        '403':
          description: You are not authorized to perform the requested action.
          schema:
            $ref: '#/definitions/ErrorBody'
          x-inin-error-codes:
            missing.division.permission: Unable to perform the requested action. You are missing the following permission '%s' in the provided division(s).
            app.not.authorized.for.scope: App not authorized to use scope %s
            missing.permissions: 'Unable to perform the requested action. You are missing the following permission(s): %s'
            not.authorized: You are not authorized to perform the requested action.
            missing.any.permissions: 'Unable to perform the requested action. You must have at least one of the following permissions assigned: %s'
            authz.policy.denied: 'Unable to perform the requested action. Your organization''s security policies have denied access. Policy ID(s): [%s]'
            missing.any.division.permissions: 'Unable to perform the requested action. You must have at least one of the following permissions assigned: %s in at least one of the following division(s): %s'
        '404':
          description: The requested resource was not found.
          schema:
            $ref: '#/definitions/ErrorBody'
          x-inin-error-codes:
            wfm.entity.not.found: One of the requested resources in the path variables was not found, please check the error details for more information
            wfm.business.unit.not.found: Business unit not found
            not.found: The requested resource was not found.
        '408':
          description: The client did not produce a request within the server timeout limit. This can be caused by a slow network connection and/or large payloads.
          schema:
            $ref: '#/definitions/ErrorBody'
          x-inin-error-codes:
            client.timeout: The client did not produce a request within the server timeout limit. This can be caused by a slow network connection and/or large payloads.
        '409':
          description: The request conflicts with the current state of the target resource.
          schema:
            $ref: '#/definitions/ErrorBody'
          x-inin-error-codes:
            request.conflict: The request conflicts with the current state of the target resource.
        '413':
          description: 'The request is over the size limit. Maximum bytes: %s'
          schema:
            $ref: '#/definitions/ErrorBody'
          x-inin-error-codes:
            request.entity.too.large: 'The request is over the size limit. Maximum bytes: %s'
        '415':
          description: Unsupported Media Type - Unsupported or incorrect media type, such as an incorrect Content-Type value in the header.
          schema:
            $ref: '#/definitions/ErrorBody'
          x-inin-error-codes:
            unsupported.media.type: Unsupported Media Type - Unsupported or incorrect media type, such as an incorrect Content-Type value in the header.
        '429':
          description: Rate limit exceeded the maximum. Retry the request in [%s] seconds
          schema:
            $ref: '#/definitions/ErrorBody'
          x-inin-error-codes:
            too.many.requests.retry.after: Rate limit exceeded the maximum. Retry the request in [%s] seconds
            too.many.requests: Rate limit exceeded the maximum [%s] requests within [%s] seconds
        '500':
          description: The server encountered an unexpected condition which prevented it from fulfilling the request.
          schema:
            $ref: '#/definitions/ErrorBody'
          x-inin-error-codes:
            internal.server.error: The server encountered an unexpected condition which prevented it from fulfilling the request.
        '503':
          description: Service Unavailable - The server is currently unavailable (because it is overloaded or down for maintenance).
          schema:
            $ref: '#/definitions/ErrorBody'
          x-inin-error-codes:
            service.unavailable: Service Unavailable - The server is currently unavailable (because it is overloaded or down for maintenance).
        '504':
          description: The request timed out.
          schema:
            $ref: '#/definitions/ErrorBody'
          x-inin-error-codes:
            authentication.request.timeout: Authentication request timeout.
            request.timeout: The request timed out.
      security:
      - PureCloud OAuth:
        - workforce-management
        - workforce-management:readonly
      x-inin-requires-permissions:
        type: ANY
        permissions:
        - wfm:agentSchedule:view
        - wfm:agentTimeOffRequest:submit
        - wfm:activityCode:add
        - wfm:activityCode:delete
        - wfm:activityCode:edit
        - wfm:activityCode:view
        - wfm:agent:edit
        - wfm:agent:view
        - wfm:businessUnit:add
        - wfm:businessUnit:delete
        - wfm:businessUnit:edit
        - wfm:businessUnit:view
        - wfm:historicalAdherence:view
        - wfm:shrinkage:view
        - wfm:intraday:view
        - wfm:managementUnit:add
        - wfm:managementUnit:delete
        - wfm:managementUnit:edit
        - wfm:managementUnit:view
        - wfm:realtimeAdherence:view
        - wfm:schedule:add
        - wfm:schedule:delete
        - wfm:schedule:edit
        - wfm:schedule:generate
        - wfm:schedule:view
        - wfm:publishedSchedule:view
        - wfm:serviceGoalTemplate:add
        - wfm:serviceGoalTemplate:delete
        - wfm:serviceGoalTemplate:edit
        - wfm:serviceGoalTemplate:view
        - wfm:planningGroup:add
        - wfm:planningGroup:delete
        - wfm:planningGroup:edit
        - wfm:planningGroup:view
        - wfm:shiftTradeRequest:edit
        - wfm:shiftTradeRequest:view
        - wfm:shortTermForecast:add
        - wfm:shortTermForecast:delete
        - wfm:shortTermForecast:edit
        - wfm:shortTermForecast:view
        - wfm:timeOffLimit:add
        - wfm:timeOffLimit:delete
        - wfm:timeOffLimit:edit
        - wfm:timeOffLimit:view
        - wfm:timeOffPlan:add
        - wfm:timeOffPlan:delete
        - wfm:timeOffPlan:edit
        - wfm:timeOffPlan:view
        - wfm:timeOffRequest:add
        - wfm:timeOffRequest:edit
        - wfm:timeOffRequest:view
        - wfm:workPlan:add
        - wfm:workPlan:delete
        - wfm:workPlan:edit
        - wfm:workPlan:view
        - wfm:workPlanRotation:add
        - wfm:workPlanRotation:delete
        - wfm:workPlanRotation:edit
        - wfm:workPlanRotation:view
        - wfm:agentSchedulingPreferencesQuery:view
        - wfm:agentSchedulingPreferences:edit
        - wfm:agentSchedulingPreferencesSettings:view
        - wfm:schedulingPreferencesQuery:view
        - wfm:schedulingPreferencesSettings:view
        - wfm:schedulingPreferencesSettings:edit
      x-purecloud-method-name: getWorkforcemanagementBusinessunitActivitycodes
    post:
      tags:
      - Workforce Management
      summary: Create a new activity code
      description: ''
      operationId: postWorkforcemanagementBusinessunitActivitycodes
      produces:
      - application/json
      parameters:
      - name: businessUnitId
        in: path
        description: The ID of the business unit, or 'mine' for the business unit of the logged-in user.
        required: true
        type: string
      - in: body
        name: body
        description: body
        required: true
        schema:
          $ref: '#/definitions/CreateActivityCodeRequest'
      responses:
        '200':
          description: successful operation
          schema:
            $ref: '#/definitions/BusinessUnitActivityCode'
        '400':
          description: The request could not be understood by the server due to malformed syntax.
          schema:
            $ref: '#/definitions/ErrorBody'
          x-inin-error-codes:
            wfm.entity.not.found: One of the requested resources in the request body was not found, please check the error details for more information
            bad.request: The request could not be understood by the server due to malformed syntax.
            wfm.ids.may.not.be.blank: One or more secondary presence IDs was passed in as a blank value
            invalid.property: Value [%s] is not a valid property for object [%s]
            constraint.validation: '%s'
            wfm.validation.failure: One or more of the request's fields did not pass validation. See userParams and the error message for more details
            wfm.primary.secondary.presences: The request contains one or more primary secondary presences
            wfm.too.many.secondary.presences: The request contains too many secondary presences
            response.entity.too.large: The response is over the size limit. Reduce pageSize or expand list to reduce response size if applicable
            invalid.date: 'Dates must be specified as ISO-8601 strings. For example: yyyy-MM-ddTHH:mm:ss.SSSZ'
            invalid.query.param.value: 'Value [%s] is not valid for parameter [%s]. Allowable values are: %s'
            client.failed.request: The client did not produce a request with valid end of stream signaling. This can be caused by poor network connection and/or client behavior.
            invalid.value: 'Value [%s] is not valid for field type [%s]. Allowable values are: %s'
        '401':
          description: No authentication bearer token specified in authorization header.
          schema:
            $ref: '#/definitions/ErrorBody'
          x-inin-error-codes:
            authentication.required: No authentication bearer token specified in authorization header.
            ip.not.authorized: 'Requests originating from this IP address are not authorized: [%s]'
            bad.credentials: Invalid login credentials.
        '403':
          description: You are not authorized to perform the requested action.
          schema:
            $ref: '#/definitions/ErrorBody'
          x-inin-error-codes:
            missing.division.permission: Unable to perform the requested action. You are missing the following permission '%s' in the provided division(s).
            app.not.authorized.for.scope: App not authorized to use scope %s
            missing.permissions: 'Unable to perform the requested action. You are missing the following permission(s): %s'
            not.authorized: You are not authorized to perform the requested action.
            missing.any.permissions: 'Unable to perform the requested action. You must have at least one of the following permissions assigned: %s'
            authz.policy.denied: 'Unable to perform the requested action. Your organization''s security policies have denied access. Policy ID(s): [%s]'
            missing.any.division.permissions: 'Unable to perform the requested action. You must have at least one of the following permissions assigned: %s in at least one of the following division(s): %s'
        '404':
          description: The requested resource was not found.
          schema:
            $ref: '#/definitions/ErrorBody'
          x-inin-error-codes:
            wfm.secondary.presences.inactive.or.not.found: One or more secondary presences are inactive or do not exist
            wfm.entity.not.found: One of the requested resources in the path variables was not found, please check the error details for more information
            wfm.business.unit.not.found: Business unit not found
            not.found: The requested resource was not found.
        '408':
          description: The client did not produce a request within the server timeout limit. This can be caused by a slow network connection and/or large payloads.
          schema:
            $ref: '#/definitions/ErrorBody'
          x-inin-error-codes:
            client.timeout: The client did not produce a request within the server timeout limit. This can be caused by a slow network connection and/or large payloads.
        '409':
          description: The request conflicts with the current state of the target resource.
          schema:
            $ref: '#/definitions/ErrorBody'
          x-inin-error-codes:
            request.conflict: The request conflicts with the current state of the target resource.
        '413':
          description: 'The request is over the size limit. Maximum bytes: %s'
          schema:
            $ref: '#/definitions/ErrorBody'
          x-inin-error-codes:
            request.entity.too.large: 'The request is over the size limit. Maximum bytes: %s'
        '415':
          description: Unsupported Media Type - Unsupported or incorrect media type, such as an incorrect Content-Type value in the header.
          schema:
            $ref: '#/definitions/ErrorBody'
          x-inin-error-codes:
            unsupported.media.type: Unsupported Media Type - Unsupported or incorrect media type, such as an incorrect Content-Type value in the header.
        '429':
          description: Rate limit exceeded the maximum. Retry the request in [%s] seconds
          schema:
            $ref: '#/definitions/ErrorBody'
          x-inin-error-codes:
            too.many.requests.retry.after: Rate limit exceeded the maximum. Retry the request in [%s] seconds
            too.many.requests: Rate limit exceeded the maximum [%s] requests within [%s] seconds
        '500':
          description: The server encountered an unexpected condition which prevented it from fulfilling the request.
          schema:
            $ref: '#/definitions/ErrorBody'
          x-inin-error-codes:
            internal.server.error: The server encountered an unexpected condition which prevented it from fulfilling the request.
        '503':
          description: Service Unavailable - The server is currently unavailable (because it is overloaded or down for maintenance).
          schema:
            $ref: '#/definitions/ErrorBody'
          x-inin-error-codes:
            service.unavailable: Service Unavailable - The server is currently unavailable (because it is overloaded or down for maintenance).
        '504':
          description: The request timed out.
          schema:
            $ref: '#/definitions/ErrorBody'
          x-inin-error-codes:
            authentication.request.timeout: Authentication request timeout.
            request.timeout: The request timed out.
      security:
      - PureCloud OAuth:
        - workforce-management
      x-inin-requires-permissions:
        type: ANY
        permissions:
        - wfm:activityCode:add
      x-purecloud-method-name: postWorkforcemanagementBusinessunitActivitycodes
  /api/v2/workforcemanagement/businessunits/{businessUnitId}/activi

# --- truncated at 32 KB (2910 KB total) ---
# Full source: https://raw.githubusercontent.com/api-evangelist/genesys/refs/heads/main/openapi/genesys-workforce-management-api-openapi.yml