Digital Sky
Drone Device DeregisterDrone Device RegisterDrone Type SummaryDrone Type/Model AddDrone Type/Model EditDrone Type/Model List AllFly Drone Permission Application AddFly Drone Permission Application ApproveFly Drone Permission Application EditFly Drone Permission Application Flight LogFly Drone Permission Applications ListFly Drone Permission Applications List for current userFly Drone Permission Artifact DownloadGenerate Reset Password LinkIndividual Operator Profile AddIndividual Operator Profile EditLoginOrganization Operator Profile AddOrganization Operator Profile EditPilot Profile AddPilot Profile EditRegisterReset PasswordUAOP Application AddUAOP Application ApproveUAOP Application EditUAOP Applications ListUAOP Applications List for current userUIN Application AddUIN Application ApproveUIN Application UpdateUIN Applications ListUIN Applications List for current userVerify Account Email

Pilot Profile Add


API to setup pilot profile for a registered user

URL : /api/pilot

Method : POST

Auth required : YES,

Headers : application/json, authentication: Bearer Token

Data constraints

{
"name": "[Valid Name with alphabets and space]",
"mobileNumber": "[Valid mobile number]",
"dateOfBirth": "[Date of birth in dd-MM-yyyy format]",
"country": "[Valid Country as String]",
"addressList": [
{
"lineOne": "[Valid Line One as String]",
"lineTwo": "[Valid Line Two as String]",
"city": "[Valid City as String]",
"state": "[Valid State as String]",
"country": "[Valid Country as String]",
"pinCode": "[Valid PinCode as String]"
}
]
}

Success Response

Code : 200 OK

Content example

{
"id": 1,
"name": "Sample",
"mobileNumber": "9880098880",
"dateOfBirth": "12-12-1981",
"country": "India",
"addressList": [
{
"lineOne": "#25, xyz Building",
"lineTwo": "Sample",
"city": "Bangalore",
"state": "Karnataka",
"country": "India",
"pinCode": "560001"
}
]
}

Error Response

Condition : If provided with invalid payload

Code : 400 BAD REQUEST