POST /api/portal/validateportalname

Description

Checks if the name is available to create a portal.

Parameters
Name Description Type Example
portalName*
sent in Query
the name of a portal string example
* - required field
Returns

The response will contain the following information.

Example Response
Name Description Type Example
message reply "portalNameReadyToRegister" if the portal name is available string portalNameReadyToRegister
variants list of all the existing potal names starting with the name in request array of string ["example"]
{
    "error": "portalNameExist",
    "message": "Portal already exists",
    "variants": [ "example", "example2014" ]
}