PostCommunities
You can fetch a list of all your communities or fetch, create, update, delete a specific one using the Ownly API.
Request URL
POST https://api-dev.theownly.io/v1/communities
Headers
Name | Value | Required? |
---|---|---|
Accept | application/json | Yes |
Content-Type | application/json | Yes |
Authorization | Bearer{APItoken} | Yes |
Parameters
Name | Type | Required? | Description |
---|---|---|---|
name | String | Yes | Community Name |
subRegion | String | No | Sub Region |
address | String | No | community address |
description | String | No | Community Description |
longDescription | String | No | |
websiteUrl | String | No | |
lotMapUrl | String | No | |
city | String | Yes | |
state | String | Yes |
Example Request
curl -X 'POST' \
'https://api-dev.theownly.io/v1/communities' \
-H 'accept: application/json' \
-H 'Authorization: Bearer {APItoken}' \
-d '{
"name": "string",
"subRegion": "string",
"address": "string",
"description": "string",
"longDescription": "string",
"websiteUrl": "string",
"lotMapUrl": "string",
"city": "Calgary",
"state": "Alberta"
}'
Example Response
{
"id": "uFMhi7hj",
"name": "string",
"subRegion": "string",
"address": "string",
"description": "string",
"longDescription": "string",
"websiteUrl": "string",
"lotMapUrl": "string",
"city": {
"id": "Eynvv3nd",
"name": "Calgary",
"state": "Alberta"
}
}