{
  "opencollection": "1.0.0",
  "info": {
    "name": "OneCLI Agent Setup Organization Secrets API",
    "version": "1.0"
  },
  "request": {
    "auth": {
      "type": "bearer",
      "token": "{{bearerToken}}"
    }
  },
  "items": [
    {
      "info": {
        "name": "Organization Secrets",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "List organization secrets",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.onecli.sh/v1/org/secrets"
          },
          "docs": "Returns all secrets scoped to the organization. Secret values are never returned. Available on OneCLI Cloud and self-hosted Enterprise. Requires the admin or owner role."
        },
        {
          "info": {
            "name": "Create an organization secret",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.onecli.sh/v1/org/secrets",
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Creates a new secret at the organization level. Organization secrets apply across all projects. Requires admin role. Available on OneCLI Cloud and self-hosted Enterprise.\n\n1Password-sourced values (`valueSource: onepassword`) are project-only and rejected here — organization secrets must carry an inline `value`.\n"
        },
        {
          "info": {
            "name": "Update an organization secret",
            "type": "http"
          },
          "http": {
            "method": "PATCH",
            "url": "https://api.onecli.sh/v1/org/secrets/:secretId",
            "params": [
              {
                "name": "secretId",
                "value": "",
                "type": "path"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Updates one or more fields on an organization secret. Requires admin role. Available on OneCLI Cloud and self-hosted Enterprise."
        },
        {
          "info": {
            "name": "Delete an organization secret",
            "type": "http"
          },
          "http": {
            "method": "DELETE",
            "url": "https://api.onecli.sh/v1/org/secrets/:secretId",
            "params": [
              {
                "name": "secretId",
                "value": "",
                "type": "path"
              }
            ]
          },
          "docs": "Requires admin role. Available on OneCLI Cloud and self-hosted Enterprise."
        }
      ]
    }
  ],
  "bundled": true
}