PUT /extensions/{extid}/disabled/{disabled}

启用/禁用插件 (Enable/Disable extension)

Path parameters

  • extid string Required
  • disabled boolean Required

Responses

  • 200 application/json

    Successful Response

    Hide response attributes Show response attributes object
    • id string Required
    • version string Required
    • disabled boolean

      Default value is false.

    • nickname string | null
    • config object

      Additional properties are allowed.

    • config_schema object | null

      Additional properties are allowed.

  • 422 application/json

    Validation Error

    Hide response attribute Show response attribute object
    • detail array[object]
      Hide detail attributes Show detail attributes object
      • loc array[string | integer] Required
      • msg string Required
      • type string Required
PUT /extensions/{extid}/disabled/{disabled}
curl \
 --request PUT 'http://api.example.com/extensions/{extid}/disabled/{disabled}'
Response examples (200)
{
  "id": "string",
  "version": "string",
  "disabled": false,
  "nickname": "string",
  "config": {},
  "config_schema": {}
}
Response examples (422)
{
  "detail": [
    {
      "loc": [
        "string"
      ],
      "msg": "string",
      "type": "string"
    }
  ]
}