# Enable a plugin


[API catalog](/reference/api/) · [Docker Engine overview](/reference/api/engine/version/v1.57/) · [Product manual](https://docs.docker.com/engine/) · [OpenAPI specification](/reference/api/engine/version/v1.57.yaml)

API version: 1.57





`POST /plugins/{name}/enable`



## Connection and access

[API connection and authentication guidance](/reference/api/engine/version/v1.57/#connection)


Server: `/v1.57`

Effective security: alternatives are OR; schemes within an alternative are AND. An empty array declares no HTTP authentication requirement.

```json
null
```

## Example request

Replace placeholders and provide the required credentials or request body.

```console
curl \
  --request POST \
  --unix-socket "${DOCKER_SOCKET:-/var/run/docker.sock}" \
  --header 'Accept: application/json' \
  'http://localhost/v1.57/plugins/<NAME>/enable'
```



## Parameters

### name

Location: path. Required: yes.

The name of the plugin. The `:latest` tag is optional, and is the
default if omitted.


```json
{
  "description": "The name of the plugin. The `:latest` tag is optional, and is the\ndefault if omitted.\n",
  "in": "path",
  "name": "name",
  "pointer": "/paths/~1plugins~1{name}~1enable/post/parameters/0",
  "required": true,
  "schema": {
    "type": "string"
  }
}
```

### timeout

Location: query. Required: no.

Set the HTTP client timeout (in seconds)

```json
{
  "description": "Set the HTTP client timeout (in seconds)",
  "in": "query",
  "name": "timeout",
  "pointer": "/paths/~1plugins~1{name}~1enable/post/parameters/1",
  "schema": {
    "default": 0,
    "type": "integer"
  }
}
```

## Request and responses

### Response 200 application/json

no error











### Response 200 text/plain

no error











### Response 404 application/json

plugin is not installed


Schema:

```json
{
  "$ref": "#/components/schemas/ErrorResponse"
}
```









Schema example:
```json
{
  "message": "Something went wrong."
}
```


### Response 500 application/json

server error


Schema:

```json
{
  "$ref": "#/components/schemas/ErrorResponse"
}
```









Schema example:
```json
{
  "message": "Something went wrong."
}
```


## Complete operation contract

```json
{
  "operationId": "PluginEnable",
  "parameters": [
    {
      "description": "The name of the plugin. The `:latest` tag is optional, and is the\ndefault if omitted.\n",
      "in": "path",
      "name": "name",
      "required": true,
      "schema": {
        "type": "string"
      }
    },
    {
      "description": "Set the HTTP client timeout (in seconds)",
      "in": "query",
      "name": "timeout",
      "schema": {
        "default": 0,
        "type": "integer"
      }
    }
  ],
  "responses": {
    "200": {
      "content": {
        "application/json": {},
        "text/plain": {}
      },
      "description": "no error"
    },
    "404": {
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/ErrorResponse"
          }
        }
      },
      "description": "plugin is not installed"
    },
    "500": {
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/ErrorResponse"
          }
        }
      },
      "description": "server error"
    }
  },
  "summary": "Enable a plugin",
  "tags": [
    "Plugin"
  ]
}
```

## Referenced schemas

- [#/components/schemas/ErrorResponse](/reference/api/engine/version/v1.57/schemas/ErrorResponse/)




