curl --location --request PATCH 'https://api.travtus.com/communities/' \
--header 'Authorization: bearer <token>' \
--header 'Content-Type: application/json' \
--data-raw '{
"community_id": "f47ac10b-58cc-4372-a567-0e02b2c3d479",
"name": "Skyline Apartments - East Tower",
"description": "Updated luxury apartment complex with panoramic city views",
"status": "inactive"
}'
{
"request_id": "<string>"
}This endpoint updates an existing community with the provided parameters.
curl --location --request PATCH 'https://api.travtus.com/communities/' \
--header 'Authorization: bearer <token>' \
--header 'Content-Type: application/json' \
--data-raw '{
"community_id": "f47ac10b-58cc-4372-a567-0e02b2c3d479",
"name": "Skyline Apartments - East Tower",
"description": "Updated luxury apartment complex with panoramic city views",
"status": "inactive"
}'
{
"request_id": "<string>"
}community_id or community_external_ref, and include at least one field to update.
community_external_ref is required.community_id is required.{
"non_field_errors": [
"Either community_id or community_external_ref must be provided"
]
}
{
"non_field_errors": [
"At least one field to update must be provided"
]
}
{
"email_address": [
"Enter a valid email address."
]
}
{
"error": {
"type": "invalid_authorization",
"message": "The bearer token you have provided in the 'Authorization' header is invalid."
}
}
{
"error": {
"type": "community_not_found",
"message": "There are no community records matching the information provided."
}
}
{
"error": {
"message": "An error occurred while updating the community."
}
}
curl --location --request PATCH 'https://api.travtus.com/communities/' \
--header 'Authorization: bearer <token>' \
--header 'Content-Type: application/json' \
--data-raw '{
"community_id": "f47ac10b-58cc-4372-a567-0e02b2c3d479",
"name": "Skyline Apartments - East Tower",
"description": "Updated luxury apartment complex with panoramic city views",
"status": "inactive"
}'