Create Facility
The "create facility" API facilitates the addition of new facility.
Facility
curl --location 'https://demo.hng.one/developerapi/onboard/create-facility' \
--header 'Authorization: Bearer <<JWT_TOKEN>>' \
--header 'Content-Type: application/json' \
--data-raw '{
"facilityId": "45f08034-e1d2-47fe-d2ca-1b5034d3ud23",
"facilityName": "qwerty",
"clientId": "31e08053-y1d2-46fe-b3ba-1b5034d3fa23",
"spoc": {
"fullName": "test",
"email": "test@gmail.com",
"phone": "9876543211",
"alternatePhone": "9876543211",
"address": "Hyderabad",
"district": "Hyderabad",
"state": "Telangana",
"country": "India",
"zipcode": 500081
}
}'
API Fields Description
Facility Info
| Field | Description | Type | Required |
|---|---|---|---|
| facilityName | name of the Facility | String | Yes |
| facilityId | unique ID of the Facility | String | Yes |
| clientId | unique ID of the Client | String | Yes |
Spoc Info
| Field | Description | Type | Required |
|---|---|---|---|
| fullName | name of the spoc | String | Yes |
| email of the spoc | String | Yes | |
| phone | phone of the spoc | String | Yes |
| alternatePhone | alternate phone of the spoc | String | Yes |
| address | address of the spoc | String | Yes |
| district | district | String | Yes |
| state | state | String | Yes |
| country | country | String | Yes |
| zipcode | zipcode | Number | Yes |