# Configure 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}/set`



## 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 'Content-Type: application/json' \
  --data-raw '[
  "DEBUG=1"
]' \
  'http://localhost/v1.57/plugins/<NAME>/set'
```



## 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}~1set/post/parameters/0",
  "required": true,
  "schema": {
    "type": "string"
  }
}
```

## Request and responses

### Request  application/json




Schema:

```json
{
  "example": [
    "DEBUG=1"
  ],
  "items": {
    "type": "string"
  },
  "type": "array"
}
```









Schema example:
```json
[
  "DEBUG=1"
]
```


### Response 204 

No error

No response content is declared.











### Response 404 application/json

Plugin 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": "PluginSet",
  "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"
      }
    }
  ],
  "requestBody": {
    "content": {
      "application/json": {
        "schema": {
          "example": [
            "DEBUG=1"
          ],
          "items": {
            "type": "string"
          },
          "type": "array"
        }
      }
    },
    "x-codegen-request-body-name": "body"
  },
  "responses": {
    "204": {
      "description": "No error"
    },
    "404": {
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/ErrorResponse"
          }
        }
      },
      "description": "Plugin not installed"
    },
    "500": {
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/ErrorResponse"
          }
        }
      },
      "description": "Server error"
    }
  },
  "summary": "Configure a plugin",
  "tags": [
    "Plugin"
  ]
}
```

## Referenced schemas

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




