---
updatedAt: 2026-10-06T17:37:25.000Z
agentTools:
  projectIndex: https://docs.akeyless.io/llms.txt
---

# /folder-sync

# OpenAPI definition

```json
{
  "openapi": "3.0.0",
  "info": {
    "contact": {
      "email": "support@akeyless.io",
      "name": "Akeyless",
      "url": "http://akeyless.io"
    },
    "description": "The purpose of this application is to provide access to Akeyless API.",
    "title": "Identity & access",
    "version": "3.0"
  },
  "paths": {
    "/folder-sync": {
      "post": {
        "operationId": "folderSync",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/folderSync"
              }
            }
          },
          "required": true,
          "x-go-name": "Body"
        },
        "responses": {
          "200": {
            "$ref": "#/components/responses/folderSyncResponse"
          },
          "default": {
            "$ref": "#/components/responses/errorResponse"
          }
        },
        "tags": [
          "Folders"
        ],
        "x-docs-category": "Identity & access",
        "x-docs-group": "Folders"
      }
    }
  },
  "tags": [
    {
      "name": "Folders"
    }
  ],
  "x-readme": {
    "apply-tag-changes": true
  },
  "servers": [
    {
      "url": "https://api.akeyless.io"
    }
  ],
  "components": {
    "responses": {
      "errorResponse": {
        "description": "errorResponse wraps any error to return it as a JSON object with one \"error\"\nfield.",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/JSONError"
            }
          }
        }
      },
      "folderSyncResponse": {
        "description": "",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/folderSyncOutput"
            }
          }
        }
      }
    },
    "schemas": {
      "JSONError": {
        "properties": {
          "error": {
            "type": "string",
            "x-go-name": "Err"
          }
        },
        "title": "JSONError wraps an error with JSON object.",
        "type": "object",
        "x-go-package": "akeyless.io/akeyless-main-repo/go/src/client"
      },
      "folderSync": {
        "properties": {
          "accessibility": {
            "default": "regular",
            "description": "for personal password manager",
            "type": "string",
            "x-go-name": "ItemAccessibilityString"
          },
          "delete-remote": {
            "description": "Delete the secret from the remote target as well",
            "type": "boolean",
            "x-go-name": "DeleteRemote"
          },
          "engine-name": {
            "description": "Hashi Vault engine name prefix, must end with '/'",
            "type": "string",
            "x-go-name": "EngineName"
          },
          "json": {
            "default": false,
            "description": "Set output format to JSON",
            "type": "boolean",
            "x-go-name": "Json"
          },
          "name": {
            "description": "Folder name",
            "type": "string",
            "x-go-name": "FolderName"
          },
          "namespace": {
            "description": "Vault namespace, relevant only for Hashicorp Vault Target",
            "type": "string",
            "x-go-name": "Namespace"
          },
          "token": {
            "description": "Authentication token (see `/auth` and `/configure`)",
            "type": "string",
            "x-go-name": "Profile"
          },
          "uid-token": {
            "description": "The universal identity token, Required only for universal_identity authentication",
            "type": "string",
            "x-go-name": "UIDToken"
          },
          "usc-name": {
            "description": "Universal Secret Connector name, If not provided all attached USC's will be synced",
            "type": "string",
            "x-go-name": "USCName"
          }
        },
        "required": [
          "name"
        ],
        "title": "folderSync is a command that syncs folder secrets.",
        "type": "object",
        "x-go-package": "akeyless.io/akeyless-main-repo/go/src/client/commands"
      },
      "folderSyncOutput": {
        "properties": {
          "folder_name": {
            "type": "string",
            "x-go-name": "FolderName"
          }
        },
        "type": "object",
        "x-go-package": "akeyless.io/akeyless-main-repo/go/src/client/commands"
      }
    }
  }
}
```