bots

Updates a bot in the database with form data

Update language, notifier_interval, reminder_repeat_max and reminder_time of the bot

patch/v1/bots/{id}

Path parameters

idinteger required

id of bot that needs to be updated

Request body

idinteger
team_idstring
team_namestring
language'ru_RU' | 'en_US'

bot language

notifier_intervalinteger
reminder_repeat_maxinteger
reminder_timeinteger
reporting_channelstring
reporting_timestring
individual_reports_onboolean

Example request

{
  "team_id": "TB9KS3E13",
  "team_name": "example",
  "reporting_channel": "TBA234GH",
  "reporting_time": "9:00"
}

Response

successful operation

idinteger
team_idstring
team_namestring
language'ru_RU' | 'en_US'

bot language

notifier_intervalinteger
reminder_repeat_maxinteger
reminder_timeinteger
reporting_channelstring
reporting_timestring
individual_reports_onboolean

Example response

{
  "team_id": "TB9KS3E13",
  "team_name": "example",
  "reporting_channel": "TBA234GH",
  "reporting_time": "9:00"
}

Changes

Changed in 4 of the 33 revisions of this API.16

    • added the non-success response with the status 404

      response-non-success-status-added

    • removed the non-success response with the status 403

      response-non-success-status-removed

    • removed the non-success response with the status 500

      response-non-success-status-removed

    • the endpoint scheme security Auth was added to the API

      api-security-added

    • the endpoint scheme security JWT was removed from the API

      api-security-removed

    • endpoint added

      endpoint-added

    • api path removed without deprecation

      api-path-removed-without-deprecation