Infoworks Admin Metadata Cleanup API

The Admin Metadata Cleanup API from Infoworks — 8 operation(s) for admin metadata cleanup.

Operations 11

GET /admin/metadata-cleanup/policies Get metadata cleanup policies. #
GET /admin/metadata-cleanup/policies/jobs Get Jobs cleanup policy. #
PUT /admin/metadata-cleanup/policies/jobs Edit the Jobs Cleanup Policy #
GET /admin/metadata-cleanup/policies/audits Get Audits cleanup policy. #
PUT /admin/metadata-cleanup/policies/audits Edit the Audits Cleanup Policy #
GET /admin/metadata-cleanup/policies/metrics Get Metrics cleanup policy. #
PUT /admin/metadata-cleanup/policies/metrics Edit the Metrics Cleanup Policy #
GET /admin/metadata-cleanup/schedule Get Schedule of cleanup policy. #
PUT /admin/metadata-cleanup/schedule/enable Edit Schedule of cleanup policy. #
PUT /admin/metadata-cleanup/schedule/disable Edit Schedule of cleanup policy. #
PUT /admin/metadata-cleanup/schedule/user Edit Scheduling User of cleanup policy. Hit this API with the delegation token of the required User. #

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/infoworks-admin-metadata-cleanup-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

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

infoworks-admin-metadata-cleanup-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  contact: {}
  title: Infoworks Rest API V3 Admin Metadata Cleanup API
  version: '1.0'
  description: Infoworks Rest API V3
servers:
- url: '{protocol}://{host}:{port}/v3'
  variables:
    protocol:
      default: http
      enum:
      - http
      - https
    host:
      default: localhost
    port:
      default: '3001'
tags:
- name: Admin Metadata Cleanup
paths:
  /admin/metadata-cleanup/policies:
    get:
      security:
      - BearerAuth: []
      operationId: getCleanupPolicies
      tags:
      - Admin Metadata Cleanup
      summary: Get metadata cleanup policies.
      description: Get metadata cleanup policies.
      responses:
        '200':
          description: Ok.
          content:
            application/json:
              schema:
                allOf:
                - type: object
                  properties:
                    message:
                      type: string
                      example: Example Success Message
                - type: object
                  properties:
                    result:
                      type: array
                      items:
                        oneOf:
                        - allOf:
                          - properties:
                              action:
                                type: string
                                example: delete
                                enum:
                                - archive
                                - delete
                                - disabled
                              retention_period_in_days:
                                type: integer
                                example: 90
                          properties:
                            collection_group_name:
                              type: string
                              example: jobs
                            last_cleanup_at:
                              type: string
                              example: '2020-1-13T00:00:00.000Z'
                        - allOf:
                          - properties:
                              action:
                                type: string
                                example: delete
                                enum:
                                - archive
                                - delete
                                - disabled
                              retention_period_in_days:
                                type: integer
                                example: 90
                          properties:
                            collection_group_name:
                              type: string
                              example: audits
                            last_cleanup_at:
                              type: string
                              example: '2020-1-13T00:00:00.000Z'
                        - allOf:
                          - properties:
                              action:
                                type: string
                                example: delete
                                enum:
                                - archive
                                - delete
                                - disabled
                              retention_period_in_days:
                                type: integer
                                example: 90
                          properties:
                            collection_group_name:
                              type: string
                              example: metrics
                            last_cleanup_at:
                              type: string
                              example: '2020-1-13T00:00:00.000Z'
        '400':
          description: Request has invalid body or parameters.
          content:
            application/json:
              schema:
                type: object
                allOf:
                - type: object
                  properties:
                    message:
                      type: string
                      example: Something went wrong
                    details:
                      type: object
                      properties: {}
                - type: object
                  properties:
                    iw_code:
                      type: string
                      example: IW10006
                    help:
                      type: string
                      example: http://api.infoworks.io/help/IW10006
        '401':
          description: Authentication Failed. Please check your Credentials
          content:
            application/json:
              schema:
                type: object
                allOf:
                - type: object
                  properties:
                    message:
                      type: string
                      example: Something went wrong
                    details:
                      type: object
                      properties: {}
                - type: object
                  properties:
                    iw_code:
                      type: string
                      example: IW10005
                    help:
                      type: string
                      example: http://api.infoworks.io/help/IW10005
        '403':
          description: Forbidden. User lacks access to specified resource.
          content:
            application/json:
              schema:
                type: object
                allOf:
                - type: object
                  properties:
                    message:
                      type: string
                      example: Something went wrong
                    details:
                      type: object
                      properties: {}
                - type: object
                  properties:
                    iw_code:
                      type: string
                      example: IW10004
                    help:
                      type: string
                      example: http://api.infoworks.io/help/IW10004
        '500':
          description: Internal Server Error.
          content:
            application/json:
              schema:
                type: object
                allOf:
                - type: object
                  properties:
                    message:
                      type: string
                      example: Something went wrong
                    details:
                      type: object
                      properties: {}
                - type: object
                  properties:
                    iw_code:
                      type: string
                      example: IW10002
                    help:
                      type: string
                      example: http://api.infoworks.io/help/IW10002
  /admin/metadata-cleanup/policies/jobs:
    get:
      security:
      - BearerAuth: []
      operationId: getJobsPolicy
      tags:
      - Admin Metadata Cleanup
      summary: Get Jobs cleanup policy.
      description: Get Jobs cleanup policy.
      responses:
        '200':
          description: Ok.
          content:
            application/json:
              schema:
                allOf:
                - type: object
                  properties:
                    message:
                      type: string
                      example: Example Success Message
                - properties:
                    result:
                      allOf:
                      - properties:
                          action:
                            type: string
                            example: delete
                            enum:
                            - archive
                            - delete
                            - disabled
                          retention_period_in_days:
                            type: integer
                            example: 90
                      properties:
                        collection_group_name:
                          type: string
                          example: jobs
                        last_cleanup_at:
                          type: string
                          example: '2020-1-13T00:00:00.000Z'
        '400':
          description: Request has invalid body or parameters.
          content:
            application/json:
              schema:
                type: object
                allOf:
                - type: object
                  properties:
                    message:
                      type: string
                      example: Something went wrong
                    details:
                      type: object
                      properties: {}
                - type: object
                  properties:
                    iw_code:
                      type: string
                      example: IW10006
                    help:
                      type: string
                      example: http://api.infoworks.io/help/IW10006
        '401':
          description: Authentication Failed. Please check your Credentials
          content:
            application/json:
              schema:
                type: object
                allOf:
                - type: object
                  properties:
                    message:
                      type: string
                      example: Something went wrong
                    details:
                      type: object
                      properties: {}
                - type: object
                  properties:
                    iw_code:
                      type: string
                      example: IW10005
                    help:
                      type: string
                      example: http://api.infoworks.io/help/IW10005
        '403':
          description: Forbidden. User lacks access to specified resource.
          content:
            application/json:
              schema:
                type: object
                allOf:
                - type: object
                  properties:
                    message:
                      type: string
                      example: Something went wrong
                    details:
                      type: object
                      properties: {}
                - type: object
                  properties:
                    iw_code:
                      type: string
                      example: IW10004
                    help:
                      type: string
                      example: http://api.infoworks.io/help/IW10004
        '500':
          description: Internal Server Error.
          content:
            application/json:
              schema:
                type: object
                allOf:
                - type: object
                  properties:
                    message:
                      type: string
                      example: Something went wrong
                    details:
                      type: object
                      properties: {}
                - type: object
                  properties:
                    iw_code:
                      type: string
                      example: IW10002
                    help:
                      type: string
                      example: http://api.infoworks.io/help/IW10002
    put:
      security:
      - BearerAuth: []
      operationId: setJobsPolicy
      tags:
      - Admin Metadata Cleanup
      summary: Edit the Jobs Cleanup Policy
      description: Edit the Jobs Cleanup Policy
      requestBody:
        content:
          application/json:
            schema:
              allOf:
              - properties:
                  action:
                    type: string
                    example: delete
                    enum:
                    - archive
                    - delete
                    - disabled
                  retention_period_in_days:
                    type: integer
                    example: 90
              - properties:
                  collection_group_name:
                    type: string
                    example: jobs
      responses:
        '200':
          description: Ok.
          content:
            application/json:
              schema:
                type: object
                properties:
                  message:
                    type: string
                    example: Example Success Message
        '400':
          description: Request has invalid body or parameters.
          content:
            application/json:
              schema:
                type: object
                allOf:
                - type: object
                  properties:
                    message:
                      type: string
                      example: Something went wrong
                    details:
                      type: object
                      properties: {}
                - type: object
                  properties:
                    iw_code:
                      type: string
                      example: IW10006
                    help:
                      type: string
                      example: http://api.infoworks.io/help/IW10006
        '401':
          description: Authentication Failed. Please check your Credentials
          content:
            application/json:
              schema:
                type: object
                allOf:
                - type: object
                  properties:
                    message:
                      type: string
                      example: Something went wrong
                    details:
                      type: object
                      properties: {}
                - type: object
                  properties:
                    iw_code:
                      type: string
                      example: IW10005
                    help:
                      type: string
                      example: http://api.infoworks.io/help/IW10005
        '403':
          description: Forbidden. User lacks access to specified resource.
          content:
            application/json:
              schema:
                type: object
                allOf:
                - type: object
                  properties:
                    message:
                      type: string
                      example: Something went wrong
                    details:
                      type: object
                      properties: {}
                - type: object
                  properties:
                    iw_code:
                      type: string
                      example: IW10004
                    help:
                      type: string
                      example: http://api.infoworks.io/help/IW10004
        '500':
          description: Internal Server Error.
          content:
            application/json:
              schema:
                type: object
                allOf:
                - type: object
                  properties:
                    message:
                      type: string
                      example: Something went wrong
                    details:
                      type: object
                      properties: {}
                - type: object
                  properties:
                    iw_code:
                      type: string
                      example: IW10002
                    help:
                      type: string
                      example: http://api.infoworks.io/help/IW10002
  /admin/metadata-cleanup/policies/audits:
    get:
      security:
      - BearerAuth: []
      operationId: getAuditsPolicy
      tags:
      - Admin Metadata Cleanup
      summary: Get Audits cleanup policy.
      description: Get Audits cleanup policy.
      responses:
        '200':
          description: Ok.
          content:
            application/json:
              schema:
                allOf:
                - type: object
                  properties:
                    message:
                      type: string
                      example: Example Success Message
                - properties:
                    result:
                      allOf:
                      - properties:
                          action:
                            type: string
                            example: delete
                            enum:
                            - archive
                            - delete
                            - disabled
                          retention_period_in_days:
                            type: integer
                            example: 90
                      properties:
                        collection_group_name:
                          type: string
                          example: audits
                        last_cleanup_at:
                          type: string
                          example: '2020-1-13T00:00:00.000Z'
        '400':
          description: Request has invalid body or parameters.
          content:
            application/json:
              schema:
                type: object
                allOf:
                - type: object
                  properties:
                    message:
                      type: string
                      example: Something went wrong
                    details:
                      type: object
                      properties: {}
                - type: object
                  properties:
                    iw_code:
                      type: string
                      example: IW10006
                    help:
                      type: string
                      example: http://api.infoworks.io/help/IW10006
        '401':
          description: Authentication Failed. Please check your Credentials
          content:
            application/json:
              schema:
                type: object
                allOf:
                - type: object
                  properties:
                    message:
                      type: string
                      example: Something went wrong
                    details:
                      type: object
                      properties: {}
                - type: object
                  properties:
                    iw_code:
                      type: string
                      example: IW10005
                    help:
                      type: string
                      example: http://api.infoworks.io/help/IW10005
        '403':
          description: Forbidden. User lacks access to specified resource.
          content:
            application/json:
              schema:
                type: object
                allOf:
                - type: object
                  properties:
                    message:
                      type: string
                      example: Something went wrong
                    details:
                      type: object
                      properties: {}
                - type: object
                  properties:
                    iw_code:
                      type: string
                      example: IW10004
                    help:
                      type: string
                      example: http://api.infoworks.io/help/IW10004
        '500':
          description: Internal Server Error.
          content:
            application/json:
              schema:
                type: object
                allOf:
                - type: object
                  properties:
                    message:
                      type: string
                      example: Something went wrong
                    details:
                      type: object
                      properties: {}
                - type: object
                  properties:
                    iw_code:
                      type: string
                      example: IW10002
                    help:
                      type: string
                      example: http://api.infoworks.io/help/IW10002
    put:
      security:
      - BearerAuth: []
      operationId: setAuditsPolicy
      tags:
      - Admin Metadata Cleanup
      summary: Edit the Audits Cleanup Policy
      description: Edit the Audits Cleanup Policy
      requestBody:
        content:
          application/json:
            schema:
              allOf:
              - properties:
                  action:
                    type: string
                    example: delete
                    enum:
                    - archive
                    - delete
                    - disabled
                  retention_period_in_days:
                    type: integer
                    example: 90
              - properties:
                  collection_group_name:
                    type: string
                    example: audits
      responses:
        '200':
          description: Ok.
          content:
            application/json:
              schema:
                type: object
                properties:
                  message:
                    type: string
                    example: Example Success Message
        '400':
          description: Request has invalid body or parameters.
          content:
            application/json:
              schema:
                type: object
                allOf:
                - type: object
                  properties:
                    message:
                      type: string
                      example: Something went wrong
                    details:
                      type: object
                      properties: {}
                - type: object
                  properties:
                    iw_code:
                      type: string
                      example: IW10006
                    help:
                      type: string
                      example: http://api.infoworks.io/help/IW10006
        '401':
          description: Authentication Failed. Please check your Credentials
          content:
            application/json:
              schema:
                type: object
                allOf:
                - type: object
                  properties:
                    message:
                      type: string
                      example: Something went wrong
                    details:
                      type: object
                      properties: {}
                - type: object
                  properties:
                    iw_code:
                      type: string
                      example: IW10005
                    help:
                      type: string
                      example: http://api.infoworks.io/help/IW10005
        '403':
          description: Forbidden. User lacks access to specified resource.
          content:
            application/json:
              schema:
                type: object
                allOf:
                - type: object
                  properties:
                    message:
                      type: string
                      example: Something went wrong
                    details:
                      type: object
                      properties: {}
                - type: object
                  properties:
                    iw_code:
                      type: string
                      example: IW10004
                    help:
                      type: string
                      example: http://api.infoworks.io/help/IW10004
        '500':
          description: Internal Server Error.
          content:
            application/json:
              schema:
                type: object
                allOf:
                - type: object
                  properties:
                    message:
                      type: string
                      example: Something went wrong
                    details:
                      type: object
                      properties: {}
                - type: object
                  properties:
                    iw_code:
                      type: string
                      example: IW10002
                    help:
                      type: string
                      example: http://api.infoworks.io/help/IW10002
  /admin/metadata-cleanup/policies/metrics:
    get:
      security:
      - BearerAuth: []
      operationId: getMetricsPolicy
      tags:
      - Admin Metadata Cleanup
      summary: Get Metrics cleanup policy.
      description: Get Metrics cleanup policy.
      responses:
        '200':
          description: Ok.
          content:
            application/json:
              schema:
                allOf:
                - type: object
                  properties:
                    message:
                      type: string
                      example: Example Success Message
                - properties:
                    result:
                      allOf:
                      - properties:
                          action:
                            type: string
                            example: delete
                            enum:
                            - archive
                            - delete
                            - disabled
                          retention_period_in_days:
                            type: integer
                            example: 90
                      properties:
                        collection_group_name:
                          type: string
                          example: metrics
                        last_cleanup_at:
                          type: string
                          example: '2020-1-13T00:00:00.000Z'
        '400':
          description: Request has invalid body or parameters.
          content:
            application/json:
              schema:
                type: object
                allOf:
                - type: object
                  properties:
                    message:
                      type: string
                      example: Something went wrong
                    details:
                      type: object
                      properties: {}
                - type: object
                  properties:
                    iw_code:
                      type: string
                      example: IW10006
                    help:
                      type: string
                      example: http://api.infoworks.io/help/IW10006
        '401':
          description: Authentication Failed. Please check your Credentials
          content:
            application/json:
              schema:
                type: object
                allOf:
                - type: object
                  properties:
                    message:
                      type: string
                      example: Something went wrong
                    details:
                      type: object
                      properties: {}
                - type: object
                  properties:
                    iw_code:
                      type: string
                      example: IW10005
                    help:
                      type: string
                      example: http://api.infoworks.io/help/IW10005
        '403':
          description: Forbidden. User lacks access to specified resource.
          content:
            application/json:
              schema:
                type: object
                allOf:
                - type: object
                  properties:
                    message:
                      type: string
                      example: Something went wrong
                    details:
                      type: object
                      properties: {}
                - type: object
                  properties:
                    iw_code:
                      type: string
                      example: IW10004
                    help:
                      type: string
                      example: http://api.infoworks.io/help/IW10004
        '500':
          description: Internal Server Error.
          content:
            application/json:
              schema:
                type: object
                allOf:
                - type: object
                  properties:
                    message:
                      type: string
                      example: Something went wrong
                    details:
                      type: object
                      properties: {}
                - type: object
                  properties:
                    iw_code:
                      type: string
                      example: IW10002
                    help:
                      type: string
                      example: http://api.infoworks.io/help/IW10002
    put:
      security:
      - BearerAuth: []
      operationId: setMetricsPolicy
      tags:
      - Admin Metadata Cleanup
      summary: Edit the Metrics Cleanup Policy
      description: Edit the Metrics Cleanup Policy
      requestBody:
        content:
          application/json:
            schema:
              allOf:
              - properties:
                  action:
                    type: string
                    example: delete
                    enum:
                    - archive
                    - delete
                    - disabled
                  retention_period_in_days:
                    type: integer
                    example: 90
              - properties:
                  collection_group_name:
                    type: string
                    example: metrics
      responses:
        '200':
          description: Ok.
          content:
            application/json:
              schema:
                type: object
                properties:
                  message:
                    type: string
                    example: Example Success Message
        '400':
          description: Request has invalid body or parameters.
          content:
            application/json:
              schema:
                type: object
                allOf:
                - type: object
                  properties:
                    message:
                      type: string
                      example: Something went wrong
                    details:
                      type: object
                      properties: {}
                - type: object
                  properties:
                    iw_code:
                      type: string
                      example: IW10006
                    help:
                      type: string
                      example: http://api.infoworks.io/help/IW10006
        '401':
          description: Authentication Failed. Please check your Credentials
          content:
            application/json:
              schema:
                type: object
                allOf:
                - type: object
                  properties:
                    message:
                      type: string
                      example: Something went wrong
                    details:
                      type: object
                      properties: {}
                - type: object
                  properties:
                    iw_code:
                      type: string
                      example: IW10005
                    help:
                      type: string
                      example: http://api.infoworks.io/help/IW10005
        '403':
          description: Forbidden. User lacks access to specified resource.
          content:
            application/json:
              schema:
                type: object
                allOf:
                - type: object
                  properties:
                    message:
                      type: string
                      example: Something went wrong
                    details:
                      type: object
                      properties: {}
                - type: object
                  properties:
                    iw_code:
                      type: string
                      example: IW10004
                    help:
                      type: string
                      example: http://api.infoworks.io/help/IW10004
        '500':
          description: Internal Server Error.
          content:
            application/json:
              schema:
                type: object
                allOf:
                - type: object
                  properties:
                    message:
                      type: string
                      example: Something went wrong
                    details:
                      type: object
                      properties: {}
                - type: object
                  properties:
                    iw_code:
            

# --- truncated at 32 KB (91 KB total) ---
# Full source: https://raw.githubusercontent.com/api-evangelist/infoworks/refs/heads/main/openapi/infoworks-admin-metadata-cleanup-api-openapi.yml