Перейти к основному содержимому

Обновить приложение

PATCH
/applications

Контракт

Параметр
Значение
Разделapplications
АвторизацияCookieAuth
Принимаетapplication/json
Возвращаетapplication/json

Параметры

1 параметр

Имя
Где
Обязательный
Тип
Описание
requestbodyдаobjectПоля приложения для обновления (должны включать ID)
  • {
      "allowPerSessionSpeed": true,
      "baseBps": 0,
      "basePps": 0,
      "clientIp": "<string>",
      "createdAt": "<string>",
      "defaultSpeedMode": "<string>",
      "defaultTimeout": 0,
      "defaultUsers": 0,
      "description": "<string>",
      "followTimestamps": true,
      "id": 0,
      "issuer": {
        "agreementAccepted": true,
        "createdAt": "<string>",
        "deletedAt": "<string>",
        "email": "<string>",
        "group": {
          "createdAt": "<string>",
          "deletedAt": "<string>",
          "id": 0,
          "issuer": {},
          "issuerID": 0,
          "name": "<string>",
          "permissions": [
            {}
          ],
          "updatedAt": "<string>",
          "users": [
            {}
          ]
        },
        "groupID": 0,
        "id": 0,
        "isActive": true,
        "isRequiredToSetPassword": true,
        "lastLogin": "<string>",
        "notificationsReadAt": "<string>",
        "passwordLength": 0,
        "realName": "<string>",
        "updatedAt": "<string>"
      },
      "issuerId": 0,
      "lockParameters": true,
      "loop": true,
      "mode": "<string>",
      "name": "<string>",
      "parameters": [
        {
          "allowedValues": [
            "<string>"
          ],
          "applicationId": 0,
          "defaultValue": "<string>",
          "description": "<string>",
          "extractLength": 0,
          "extractOffset": 0,
          "extractSessionIdx": 0,
          "extractStepIdx": 0,
          "id": 0,
          "max": "<string>",
          "min": "<string>",
          "name": "<string>",
          "prefix": "<string>",
          "side": "<string>",
          "source": "<string>",
          "start": "<string>",
          "step": "<string>",
          "stepsMappings": [
            {
              "length": 0,
              "offset": 0,
              "sessionIdx": 0,
              "side": "<string>",
              "stepIdx": 0
            }
          ],
          "type": "<string>"
        }
      ],
      "pcapFileId": 0,
      "pcapMd5": "<string>",
      "sessions": [
        {
          "applicationId": 0,
          "bytesC2S": 0,
          "bytesS2C": 0,
          "dstIp": "<string>",
          "dstPort": 0,
          "exchangeCount": 0,
          "id": 0,
          "name": "<string>",
          "protocol": "<string>",
          "sessionIndex": 0,
          "srcIp": "<string>",
          "srcPort": 0
        }
      ],
      "tags": "<string>",
      "timingGapThresholdMs": 0,
      "trimmedPcapFileId": 0,
      "updatedAt": "<string>"
    }

Ответы

4 ответов

Статус
Описание
Тип
200
Приложение обновленобез тела
400
Некорректное тело запросаobject
401
Не авторизованobject
500
Не удалось обновить записьobject
  • {
      "data": {},
      "error": "<string>"
    }
  • {
      "data": {},
      "error": "<string>"
    }
  • {
      "data": {},
      "error": "<string>"
    }