Create Application

Details#

This endpoint is used to create company applications. In order of a Company to use its account, the application must be accepted by an Admin and then the Company should finish its registration.

URL : /apply/company

Method :

POST

caution

This is the flow intended for Companies to create accounts. If you're looking to create an Admin's account, see register.

Parameters#

email#

Body Parameter
Required
String

Email used for the company application and subsequent account.

Must be in a valid email format. Can't already be in use for accounts or other applications.

password#

Body Parameter
Required

String
Min Length: 8

Password used for the company's account after the application is accepted.

Must contain at least one number.

motivation#

Body Parameter
Required
String

Min Length: 10
Max Length: 1500

Motivation for the company to apply to the system. Used by admins when deciding whether the application should be accepted or not.

companyName#

Body Parameter
Required
String

Min Length: 2
Max Length: 50

Name of the company, to be displayed to all users.

Request examples#

Example 1 - Valid Request#

Code :

200 OK

{
"email": "company@company.com",
"password": "password123",
"companyName": "Company",
"motivation": "We wish to revolutionize the industry with young engineers."
}

Example 2 - Invalid Email#

Code :

422 UNPROCESSABLE ENTITY

{
"email": "not_an_email",
"password": "password123",
"companyName": "Company",
"motivation": "We wish to revolutionize the industry with young engineers."
}

Example 3 - Account With Email Exists#

Code :

422 UNPROCESSABLE ENTITY

{
"email": "company@company.com",
"password": "password123",
"companyName": "Company",
"motivation": "We wish to revolutionize the industry with young engineers."
}

Example 4 - Duplicate Application#

Code :

422 UNPROCESSABLE ENTITY

{
"email": "company@company.com",
"password": "password123",
"companyName": "Company",
"motivation": "We wish to revolutionize the industry with young engineers."
}

Example 5 - Invalid Password#

Code :

422 UNPROCESSABLE ENTITY

{
"email": "company@company.com",
"password": "password",
"companyName": "Company",
"motivation": "We wish to revolutionize the industry with young engineers."
}