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

# Post notificationsbulk apply async



## OpenAPI

````yaml /api-reference/specs/hmrc-dps.json post /notifications/bulk-apply-async
openapi: 3.0.1
info:
  title: HMRC DPS Service
  description: >-
    HMRC Data Provisioning Service (DPS) API for payroll notifications and data
    retrieval
  contact:
    name: FlowPayroll
    email: support@flowpayroll.com
  version: v1
servers:
  - url: https://api.sandbox.flowpayroll.ai/v1/hmrc-dps
security:
  - X-Auth-Token: []
    X-Org-Id: []
tags:
  - name: Notifications
    description: >-
      List, retrieve, and act on individual HMRC DPS notifications (apply,
      ignore, reassign, set status).
  - name: Bulk actions
    description: Apply, dismiss, retrieve, and re-match notifications in bulk.
  - name: Jobs
    description: Track and cancel asynchronous DPS retrieval and processing jobs.
  - name: Pagination
    description: Inspect and initialise DPS pagination state.
paths:
  /notifications/bulk-apply-async:
    post:
      tags:
        - Bulk actions
      operationId: BulkApplyNotificationsAsync
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/BulkApplyNotificationAsyncRequest'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: >-
                  #/components/schemas/ResponseBody_BulkNotificationAsyncResponseDto
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ResponseBody_DpsErrorDto'
components:
  schemas:
    BulkApplyNotificationAsyncRequest:
      required:
        - notificationIds
      type: object
      properties:
        notificationIds:
          maxItems: 1000
          minItems: 1
          type: array
          items:
            type: string
      additionalProperties: false
    ResponseBody_BulkNotificationAsyncResponseDto:
      type: object
      properties:
        message:
          $ref: '#/components/schemas/MessageWithTokenResponse'
        content:
          $ref: >-
            #/components/schemas/ContentResponse_BulkNotificationAsyncResponseDto
        validationIssues:
          type: array
          items:
            $ref: '#/components/schemas/ValidationIssue'
          nullable: true
      additionalProperties: false
    ResponseBody_DpsErrorDto:
      type: object
      properties:
        message:
          $ref: '#/components/schemas/MessageWithTokenResponse'
        content:
          $ref: '#/components/schemas/ContentResponse_DpsErrorDto'
        validationIssues:
          type: array
          items:
            $ref: '#/components/schemas/ValidationIssue'
          nullable: true
      additionalProperties: false
    MessageWithTokenResponse:
      type: object
      properties:
        text:
          type: string
        token:
          type: string
        tokenArguments:
          type: array
          items:
            $ref: '#/components/schemas/ValidationIssueArgument'
          nullable: true
      additionalProperties: false
    ContentResponse_BulkNotificationAsyncResponseDto:
      type: object
      properties:
        data:
          $ref: '#/components/schemas/BulkNotificationAsyncResponseDto'
        metadata:
          $ref: '#/components/schemas/ContentMetadataResponse'
      additionalProperties: false
    ValidationIssue:
      type: object
      properties:
        field:
          type: string
        reason:
          type: string
        reasonToken:
          type: string
        reasonTokenArguments:
          type: array
          items:
            $ref: '#/components/schemas/ValidationIssueArgument'
          nullable: true
      additionalProperties: false
    ContentResponse_DpsErrorDto:
      type: object
      properties:
        data:
          $ref: '#/components/schemas/DpsErrorDto'
        metadata:
          $ref: '#/components/schemas/ContentMetadataResponse'
      additionalProperties: false
    ValidationIssueArgument:
      type: object
      properties:
        name:
          type: string
        value:
          nullable: true
      additionalProperties: false
    BulkNotificationAsyncResponseDto:
      type: object
      properties:
        jobId:
          type: string
        status:
          enum:
            - Pending
            - Running
            - Completed
            - Failed
            - Cancelled
          type: string
        operationType:
          enum:
            - RetrieveAll
            - BulkApplyNotifications
            - BulkDismissNotifications
          type: string
        totalNotifications:
          type: integer
          format: int32
        createdDate:
          type: string
          format: date-time
        estimatedCompletionDate:
          type: string
          format: date-time
          nullable: true
        statusUrl:
          type: string
        executionArn:
          type: string
          nullable: true
      additionalProperties: false
    ContentMetadataResponse:
      type: object
      properties:
        dateFormat:
          type: string
        dateTimeFormat:
          type: string
        paginationToken:
          type: string
          nullable: true
      additionalProperties: false
    DpsErrorDto:
      type: object
      properties:
        error:
          type: string
        message:
          type: string
        details:
          type: string
          nullable: true
        timestamp:
          type: string
          format: date-time
      additionalProperties: false
  securitySchemes:
    X-Auth-Token:
      type: apiKey
      description: Authentication token for API access
      name: X-Auth-Token
      in: header
    X-Org-Id:
      type: apiKey
      description: >-
        Organisation to scope the request to. Required when the principal can
        access more than one organisation; optional for single-organisation
        principals (the authorizer resolves it automatically).
      name: X-Org-Id
      in: header

````