Skip to main content
POST
/
cabinet
/
admin
/
apps
/
platforms
/
{platform}
Create App
curl --request POST \
  --url http://localhost:8080/cabinet/admin/apps/platforms/{platform} \
  --header 'Content-Type: application/json' \
  --data '
{
  "platform": "<string>",
  "app": {
    "id": "<string>",
    "name": "<string>",
    "urlScheme": "<string>",
    "installationStep": {
      "description": {
        "en": "",
        "ru": "",
        "zh": "",
        "fa": ""
      },
      "buttons": [
        {
          "buttonLink": "<string>",
          "buttonText": {
            "en": "",
            "ru": "",
            "zh": "",
            "fa": ""
          }
        }
      ],
      "title": {
        "en": "",
        "ru": "",
        "zh": "",
        "fa": ""
      }
    },
    "addSubscriptionStep": {
      "description": {
        "en": "",
        "ru": "",
        "zh": "",
        "fa": ""
      },
      "buttons": [
        {
          "buttonLink": "<string>",
          "buttonText": {
            "en": "",
            "ru": "",
            "zh": "",
            "fa": ""
          }
        }
      ],
      "title": {
        "en": "",
        "ru": "",
        "zh": "",
        "fa": ""
      }
    },
    "connectAndUseStep": {
      "description": {
        "en": "",
        "ru": "",
        "zh": "",
        "fa": ""
      },
      "buttons": [
        {
          "buttonLink": "<string>",
          "buttonText": {
            "en": "",
            "ru": "",
            "zh": "",
            "fa": ""
          }
        }
      ],
      "title": {
        "en": "",
        "ru": "",
        "zh": "",
        "fa": ""
      }
    },
    "isFeatured": false,
    "isNeedBase64Encoding": true,
    "additionalBeforeAddSubscriptionStep": {
      "description": {
        "en": "",
        "ru": "",
        "zh": "",
        "fa": ""
      },
      "buttons": [
        {
          "buttonLink": "<string>",
          "buttonText": {
            "en": "",
            "ru": "",
            "zh": "",
            "fa": ""
          }
        }
      ],
      "title": {
        "en": "",
        "ru": "",
        "zh": "",
        "fa": ""
      }
    },
    "additionalAfterAddSubscriptionStep": {
      "description": {
        "en": "",
        "ru": "",
        "zh": "",
        "fa": ""
      },
      "buttons": [
        {
          "buttonLink": "<string>",
          "buttonText": {
            "en": "",
            "ru": "",
            "zh": "",
            "fa": ""
          }
        }
      ],
      "title": {
        "en": "",
        "ru": "",
        "zh": "",
        "fa": ""
      }
    }
  }
}
'
{
  "id": "<string>",
  "name": "<string>",
  "urlScheme": "<string>",
  "installationStep": {
    "description": {
      "en": "",
      "ru": "",
      "zh": "",
      "fa": ""
    },
    "buttons": [
      {
        "buttonLink": "<string>",
        "buttonText": {
          "en": "",
          "ru": "",
          "zh": "",
          "fa": ""
        }
      }
    ],
    "title": {
      "en": "",
      "ru": "",
      "zh": "",
      "fa": ""
    }
  },
  "addSubscriptionStep": {
    "description": {
      "en": "",
      "ru": "",
      "zh": "",
      "fa": ""
    },
    "buttons": [
      {
        "buttonLink": "<string>",
        "buttonText": {
          "en": "",
          "ru": "",
          "zh": "",
          "fa": ""
        }
      }
    ],
    "title": {
      "en": "",
      "ru": "",
      "zh": "",
      "fa": ""
    }
  },
  "connectAndUseStep": {
    "description": {
      "en": "",
      "ru": "",
      "zh": "",
      "fa": ""
    },
    "buttons": [
      {
        "buttonLink": "<string>",
        "buttonText": {
          "en": "",
          "ru": "",
          "zh": "",
          "fa": ""
        }
      }
    ],
    "title": {
      "en": "",
      "ru": "",
      "zh": "",
      "fa": ""
    }
  },
  "isFeatured": false,
  "isNeedBase64Encoding": true,
  "additionalBeforeAddSubscriptionStep": {
    "description": {
      "en": "",
      "ru": "",
      "zh": "",
      "fa": ""
    },
    "buttons": [
      {
        "buttonLink": "<string>",
        "buttonText": {
          "en": "",
          "ru": "",
          "zh": "",
          "fa": ""
        }
      }
    ],
    "title": {
      "en": "",
      "ru": "",
      "zh": "",
      "fa": ""
    }
  },
  "additionalAfterAddSubscriptionStep": {
    "description": {
      "en": "",
      "ru": "",
      "zh": "",
      "fa": ""
    },
    "buttons": [
      {
        "buttonLink": "<string>",
        "buttonText": {
          "en": "",
          "ru": "",
          "zh": "",
          "fa": ""
        }
      }
    ],
    "title": {
      "en": "",
      "ru": "",
      "zh": "",
      "fa": ""
    }
  }
}

Path Parameters

platform
string
required

Body

application/json

Request to create a new app.

platform
string
required
app
AppDefinition · object
required

VPN application definition.

Response

Successful Response

VPN application definition.

id
string
required
name
string
required
urlScheme
string
required
installationStep
AppStep · object
required

Step with description and optional buttons/title.

addSubscriptionStep
AppStep · object
required

Step with description and optional buttons/title.

connectAndUseStep
AppStep · object
required

Step with description and optional buttons/title.

isNeedBase64Encoding
boolean | null
additionalBeforeAddSubscriptionStep
AppStep · object

Step with description and optional buttons/title.

additionalAfterAddSubscriptionStep
AppStep · object

Step with description and optional buttons/title.