Skip to main content

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

NameValueRequired?
Acceptapplication/jsonYes
Content-Typeapplication/jsonYes
AuthorizationBearer{APItoken}Yes

Parameters

NameTypeRequired?Description
nameStringYesCommunity Name
subRegionStringNoSub Region
addressStringNocommunity address
descriptionStringNoCommunity Description
longDescriptionStringNo
websiteUrlStringNo
lotMapUrlStringNo
cityStringYes
stateStringYes

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"
}
}