{
  "opencollection": "1.0.0",
  "info": {
    "name": "Drone REST Builds Secrets API",
    "version": "1.0.0"
  },
  "request": {
    "auth": {
      "type": "bearer",
      "token": "{{bearerToken}}"
    }
  },
  "items": [
    {
      "info": {
        "name": "Secrets",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "List repository secrets",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://your-drone-server/api/repos/:namespace/:name/secrets",
            "params": [
              {
                "name": "namespace",
                "value": "",
                "type": "path"
              },
              {
                "name": "name",
                "value": "",
                "type": "path"
              }
            ]
          },
          "docs": "Returns a list of all secrets for the specified repository."
        },
        {
          "info": {
            "name": "Create a repository secret",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://your-drone-server/api/repos/:namespace/:name/secrets",
            "params": [
              {
                "name": "namespace",
                "value": "",
                "type": "path"
              },
              {
                "name": "name",
                "value": "",
                "type": "path"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Creates a new secret for the specified repository."
        },
        {
          "info": {
            "name": "Get a repository secret",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://your-drone-server/api/repos/:namespace/:name/secrets/:secret",
            "params": [
              {
                "name": "namespace",
                "value": "",
                "type": "path"
              },
              {
                "name": "name",
                "value": "",
                "type": "path"
              },
              {
                "name": "secret",
                "value": "",
                "type": "path",
                "description": "The secret name."
              }
            ]
          },
          "docs": "Returns a secret by name for the specified repository."
        },
        {
          "info": {
            "name": "Update a repository secret",
            "type": "http"
          },
          "http": {
            "method": "PATCH",
            "url": "https://your-drone-server/api/repos/:namespace/:name/secrets/:secret",
            "params": [
              {
                "name": "namespace",
                "value": "",
                "type": "path"
              },
              {
                "name": "name",
                "value": "",
                "type": "path"
              },
              {
                "name": "secret",
                "value": "",
                "type": "path",
                "description": "The secret name."
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Updates an existing secret for the specified repository."
        },
        {
          "info": {
            "name": "Delete a repository secret",
            "type": "http"
          },
          "http": {
            "method": "DELETE",
            "url": "https://your-drone-server/api/repos/:namespace/:name/secrets/:secret",
            "params": [
              {
                "name": "namespace",
                "value": "",
                "type": "path"
              },
              {
                "name": "name",
                "value": "",
                "type": "path"
              },
              {
                "name": "secret",
                "value": "",
                "type": "path",
                "description": "The secret name."
              }
            ]
          },
          "docs": "Deletes a secret from the specified repository."
        },
        {
          "info": {
            "name": "List all organization secrets",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://your-drone-server/api/secrets"
          },
          "docs": "Returns a list of all organization-level secrets. Requires admin privileges."
        },
        {
          "info": {
            "name": "List namespace secrets",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://your-drone-server/api/secrets/:namespace",
            "params": [
              {
                "name": "namespace",
                "value": "",
                "type": "path",
                "description": "The organization namespace."
              }
            ]
          },
          "docs": "Returns a list of all secrets for the specified namespace/organization."
        },
        {
          "info": {
            "name": "Create a namespace secret",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://your-drone-server/api/secrets/:namespace",
            "params": [
              {
                "name": "namespace",
                "value": "",
                "type": "path",
                "description": "The organization namespace."
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Creates a new secret for the specified namespace/organization."
        },
        {
          "info": {
            "name": "Get a namespace secret",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://your-drone-server/api/secrets/:namespace/:secret",
            "params": [
              {
                "name": "namespace",
                "value": "",
                "type": "path"
              },
              {
                "name": "secret",
                "value": "",
                "type": "path"
              }
            ]
          },
          "docs": "Returns a secret by name from the specified namespace."
        },
        {
          "info": {
            "name": "Update a namespace secret",
            "type": "http"
          },
          "http": {
            "method": "PATCH",
            "url": "https://your-drone-server/api/secrets/:namespace/:secret",
            "params": [
              {
                "name": "namespace",
                "value": "",
                "type": "path"
              },
              {
                "name": "secret",
                "value": "",
                "type": "path"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Updates a secret in the specified namespace."
        },
        {
          "info": {
            "name": "Delete a namespace secret",
            "type": "http"
          },
          "http": {
            "method": "DELETE",
            "url": "https://your-drone-server/api/secrets/:namespace/:secret",
            "params": [
              {
                "name": "namespace",
                "value": "",
                "type": "path"
              },
              {
                "name": "secret",
                "value": "",
                "type": "path"
              }
            ]
          },
          "docs": "Deletes a secret from the specified namespace."
        }
      ]
    }
  ],
  "bundled": true
}