LogoРТА Технологии
OpenAPIOauth2

Create Auth Application

PUT
/api/oauth2/

Authorization

OAuth2PasswordBearer
AuthorizationBearer <token>

In: header

Request Body

application/json

allowed_hosts?|null
name*string
Lengthlength <= 255
description?string|null
auth_type*string
Value in"auth_by_telegram_id"

Response Body

application/json

application/json

curl -X PUT "https://app.otascribe.ru/api/api/oauth2/" \  -H "Content-Type: application/json" \  -d '{    "name": "string",    "auth_type": "auth_by_telegram_id"  }'
{
  "allowed_hosts": [
    "string"
  ],
  "name": "string",
  "description": "string",
  "auth_type": "auth_by_telegram_id",
  "app_id": "string",
  "app_secret": "string"
}
{
  "detail": [
    {
      "loc": [
        "string"
      ],
      "msg": "string",
      "type": "string"
    }
  ]
}