PATCH /v1/features/

Update company features (on/off)

application/json

Body

Request for updating a feature values

  • name string

    Name

  • enabled boolean

    Enabled

Responses

  • 403 application/json

    Not authorized

    Hide response attributes Show response attributes object

    Error schema

    • statusCode number Required

      Status Code

    • messages array[string] Required

      List of error messages

    • exception object

      Exception

  • 404 application/json

    Not found

    Hide response attributes Show response attributes object

    Error schema

    • statusCode number Required

      Status Code

    • messages array[string] Required

      List of error messages

    • exception object

      Exception

  • 200 application/json

    successful operation

    Hide response attribute Show response attribute object
    • features array[object] Required

      Features list

      Feature schema

      Hide features attributes Show features attributes object
      • name string Required

        Values are shop, payg, calendar, or processing_fees.

      • enabled boolean Required

        Enabled

      • disabledByAdmin boolean Required

        Disabled by admin

PATCH /v1/features/
curl \
 --request PATCH 'https://api-dev.classmanager.io/v1/features/' \
 --header "Content-Type: application/json" \
 --data '{"name":"string","enabled":true}'
Request examples
{
  "name": "string",
  "enabled": true
}
Response examples (403)
{
  "statusCode": 42.0,
  "messages": [
    "string"
  ],
  "exception": {}
}
Response examples (404)
{
  "statusCode": 42.0,
  "messages": [
    "string"
  ],
  "exception": {}
}
Response examples (200)
{
  "features": [
    {
      "name": "shop",
      "enabled": true,
      "disabledByAdmin": false
    }
  ]
}