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

# Perform an action on an expense report export

> Performs the action given by the `action` query parameter on the export. The only action is `sendBackFromFile`, which puts every report of the export back to `READY_TO_SEND` for the export's recipient so that the export can be produced again. Restricted to the developer role.




## OpenAPI

````yaml /openapi/findity-admin-api.json put /organizations/{id}/expensereportsexports/{expenseReportExportId}
openapi: 3.1.0
info:
  title: Findity Admin API
  description: Findity Admin API
  version: 1.0.0
servers:
  - url: https://stage-api.findity.com/api/v1/admin
  - url: https://api.findity.com/api/v1/admin
security:
  - bearerAuth: []
paths:
  /organizations/{id}/expensereportsexports/{expenseReportExportId}:
    put:
      tags:
        - Expense Reports
      summary: Perform an action on an expense report export
      description: >
        Performs the action given by the `action` query parameter on the export.
        The only action is `sendBackFromFile`, which puts every report of the
        export back to `READY_TO_SEND` for the export's recipient so that the
        export can be produced again. Restricted to the developer role.
      operationId: updateExpenseReportsExport
      parameters:
        - $ref: '#/components/parameters/organizationIdPath'
        - name: expenseReportExportId
          in: path
          required: true
          description: >-
            External identifier of the export file, as returned in the `id`
            field of the list endpoint response. String. Required.
          schema:
            type: string
          example: testfile123
        - name: action
          in: query
          required: true
          description: >
            Action to perform on the export. String, enum. Accepted values:
            sendBackFromFile. Required.
          schema:
            type: string
            enum:
              - sendBackFromFile
      responses:
        '200':
          description: The reports of the export were sent back
          content:
            application/json:
              schema:
                type: object
                properties:
                  expenseReportIds:
                    type: array
                    description: >-
                      The reports that were sent back. Array of strings, UUID
                      format (32-character hexadecimal).
                    items:
                      $ref: '#/components/schemas/Uuid'
              example:
                expenseReportIds:
                  - 05b8daba9ba14a49846fe77883248cf0
                  - 7c1f0a3b9d2e4f5a8b6c0d1e2f3a4b5c
        '400':
          description: Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/400Error'
              example:
                result: error
                code: INVALID_ACTION
                description: Invalid action specified, was 'resend'
        '403':
          description: The caller does not have the developer role
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/403Error'
              example:
                result: error
                description: Insufficient rights
        '404':
          description: Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/404Error'
              examples:
                organizationNotFound:
                  summary: Organization not found
                  value:
                    result: error
                    code: ORGANIZATION_NOT_FOUND
                    description: Organization not found
                exportNotFound:
                  summary: Export not found
                  value:
                    result: error
                    code: EXPORT_NOT_FOUND
                    description: Export not found
components:
  parameters:
    organizationIdPath:
      in: path
      name: id
      required: true
      description: The unique identifier of the organization
      schema:
        $ref: '#/components/schemas/Uuid'
        example: 05b8daba9ba14a49846fe77883248cf0
  schemas:
    Uuid:
      type: string
      pattern: ^[0-9a-fA-F]{32}$
      description: UUID without dashes (32-character hex string)
    400Error:
      type: object
      properties:
        result:
          type: string
        code:
          type: string
        description:
          type: string
    403Error:
      type: object
      properties:
        result:
          type: string
        description:
          type: string
      example:
        result: error
        description: Not allowed
    404Error:
      type: object
      properties:
        result:
          type: string
        code:
          type: string
        description:
          type: string
      example:
        result: error
        code: ORGANIZATION_NOT_FOUND
        description: 'Failed to get organization for id: {orgId}'
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer

````