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.
community_id
community_external_ref
{ "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." } }