Register a new portal
POST /api/portal/register
Request
Registers a new portal with the parameters specified in the request.
Headers
- Accept
enum of string
Can be one of:
application/json
.- Content-Type
enum of string
Can be one of:
application/json
.
Body
- firstName
string
required Portal owner first name
- email
string
required Portal owner email address
- language
string
Portal language
- lastName
string
required Portal owner last name
- password
string
Portal owner password
- phone
string
Portal owner phone number
- portalName
string
required Portal name
- timeZoneName
string
Portal time zone
Examples
POST /api/portal/register HTTP/1.1
Accept: application/json
Content-Length: 195
Content-Type: application/json
Host: example.com
{
"firstName": "John",
"email": "test@example.com",
"language": "en",
"lastName": "Smith",
"password": 123456,
"phone": 123456789,
"portalName": "example",
"timeZoneName": "UTC"
}
curl --request POST \
--url https://example.com/api/portal/register \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--data '{
"firstName": "John",
"email": "test@example.com",
"language": "en",
"lastName": "Smith",
"password": 123456,
"phone": 123456789,
"portalName": "example",
"timeZoneName": "UTC"
}'
Responses
200
The link for portal activation and portal description.
- reference
string
- tenant
object
- created
string
date-time - domain
string
- language
string
- ownerId
string
- portalName
string
- status
string
- tenantId
integer
- timeZoneName
string
400
Bad Request
- error
enum of string
- params - An error has been made in the method parameters specified in the request.
- passPolicyError - The password specified in the request does not meet the requirements.
- portalNameEmpty - The required parameter portalName, which must be present in the request, is not specified.
- portalNameExist - Portal with the portal name specified in the request has already been registered.
- portalNameIncorrect - Invalid characters in the portalName parameter.
- portalNameNotFound - No portal with the portal name specified in the request has been registered.
- portalsCountTooMuch - The limit for the number of portals has been reached.
- recaptchaInvalid - Invalid reCAPTCHA value has been entered.
- tooMuchAttempts - The limit for the number of request attempts has been reached.
- tooShortError - The portalName specified in the request is too short.
Can be one of:
params
,passPolicyError
,portalNameEmpty
,portalNameExist
,portalNameIncorrect
,portalNameNotFound
,portalsCountTooMuch
,recaptchaInvalid
,tooMuchAttempts
,tooShortError
.
403
Forbidden
- error
enum of string
- authorization - Authorization error, the possible reasons: an unknown authorization scheme is used, or the authorization key is missing, or the authorization key time is out, or a wrong key is used.
Can be one of:
authorization
.
500
Internal Server Error
- error
enum of string
- authorization - Internal server error when decoding the authorization key.
- registerNewTenantError - An error occurred while registering a new portal.
- error - An internal server error occurred.
Can be one of:
authorization
,registerNewTenantError
,error
.