---
updatedAt: 2026-05-31T12:49:47.000Z
agentTools:
  siteIndex: https://docs.jfrog.com/llms.txt
  projectIndex: https://docs.jfrog.com/administration/llms.txt
---

# Re-index Paths on Metadata Server

If needed, Artifactory can re-send Metadata events to the Metadata Server in case of an inconsistent state.
The API will recursively re-index artifacts under the given repository or path if a repository key or a directory path is specified.
Asynchronous by default. Does not delete data associated with the given paths on the Metadata Server before re-indexing by default.

**Note:** Don't send an `Accept: text/plain` header. That header returns 406 Not Acceptable.

**Since:** 7.0.0

**Security:** Requires an admin user.


# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "JFrog Platform - Artifactory System API",
    "description": "Artifactory system configuration APIs for the JFrog Platform.\n\n**Authentication:**\n- Basic authentication using username and password\n- Access Tokens instead of password for basic authentication\n- Access Tokens as bearer token in authorization header (Authorization: Bearer <token>)\n",
    "version": "1.0.0",
    "contact": {
      "name": "JFrog Support"
    }
  },
  "servers": [
    {
      "url": "https://{jfrog_url}",
      "description": "JFrog Platform",
      "variables": {
        "jfrog_url": {
          "default": "myserver.jfrog.io",
          "description": "Your JFrog Platform hostname (e.g., mycompany.jfrog.io)"
        }
      }
    }
  ],
  "tags": [
    {
      "name": "Artifactory System",
      "description": "Artifactory system configuration APIs."
    }
  ],
  "security": [
    {
      "BearerAuth": []
    }
  ],
  "paths": {
    "/artifactory/api/metadata_server/reindex": {
      "post": {
        "tags": [
          "Artifactory System"
        ],
        "summary": "Re-index Paths on Metadata Server",
        "description": "If needed, Artifactory can re-send Metadata events to the Metadata Server in case of an inconsistent state.\nThe API will recursively re-index artifacts under the given repository or path if a repository key or a directory path is specified.\nAsynchronous by default. Does not delete data associated with the given paths on the Metadata Server before re-indexing by default.\n\n**Note:** Don't send an `Accept: text/plain` header. That header returns 406 Not Acceptable.\n\n**Since:** 7.0.0\n\n**Security:** Requires an admin user.\n",
        "operationId": "reindexMetadataServer",
        "parameters": [
          {
            "name": "async",
            "in": "query",
            "required": false,
            "description": "Execute asynchronously",
            "schema": {
              "type": "boolean",
              "default": true
            }
          },
          {
            "name": "delete_first",
            "in": "query",
            "required": false,
            "description": "Delete data before re-indexing",
            "schema": {
              "type": "boolean",
              "default": false
            }
          }
        ],
        "requestBody": {
          "required": true,
          "description": "List of repository keys or directory paths to re-index.",
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "paths"
                ],
                "properties": {
                  "paths": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    },
                    "description": "List of repository keys or directory paths to re-index"
                  }
                }
              },
              "example": {
                "paths": [
                  "libs-release-local",
                  "libs-snapshot-local"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Re-indexing started successfully"
          },
          "202": {
            "description": "Accepted - Reindex operation accepted asynchronously."
          },
          "400": {
            "description": "Bad Request - Invalid paths"
          },
          "401": {
            "description": "Bad Credentials - Invalid credentials"
          },
          "403": {
            "description": "Permission Denied - Insufficient permissions"
          }
        }
      }
    }
  },
  "components": {
    "securitySchemes": {
      "BearerAuth": {
        "type": "http",
        "scheme": "bearer",
        "description": "Access Token as bearer token"
      }
    }
  }
}
```