Update site mounting details
PUT
/api/v0/site-mountings/{site_mounting_uuid}- Path parameters:
- Request body:
- Example request:
- BashCopied to clipboard
curl https://app.cloudcannon.com/api/v0/site-mountings/{site_mounting_uuid} \ -X PUT \ -H "X-API-KEY: <your-api-key>" \ -H "Content-Type: application/json" \ -d '{ "local_site_id": 0, "local_path": "string", "remote_site_id": 0, "remote_path": "string", "remote_artifact": "string" }' - Responses:
200OK
JSONCopied to clipboard{ "uuid": "string", "id": 0, "local_site_id": 0, "local_path": "string", "remote_site_id": 0, "remote_path": "string", "remote_artifact": "string", "local_site": { "uuid": "00000000-0000-0000-0000-000000000000", "id": 0, "site_name": "string", "subpath": "string", "stable_domain": "string", "ssg": "string", "last_synced": "2024-01-01T00:00:00Z", "last_output": "2024-01-01T00:00:00Z", "last_compiled": "2024-01-01T00:00:00Z", "last_compressed": "2024-01-01T00:00:00Z", "last_internationalised": "2024-01-01T00:00:00Z", "last_published": "2024-01-01T00:00:00Z", "last_cleaned": "2024-01-01T00:00:00Z", "storage_provider": "string", "client_author_name": "string", "client_author_email": "string", "create_source": "string", "hosting_choice": "string", "building_locked": true, "editing_locked": true, "uploads_locked": true, "browsing_locked": true, "last_compiled_success": "2024-01-01T00:00:00Z", "preview_url": "string", "documentation_url": "string", "support_url": "string", "client_editor_route": "string", "active_quest": "string", "created_at": "2024-01-01T00:00:00Z", "updated_at": "2024-01-01T00:00:00Z", "mode": "string", "project_id": 0, "project_uuid": "string", "pr_number": 0, "pr_external_url": "string", "cloudcannon_config_path": "string", "output_storage_provider": "string", "domain_name": "string", "site_icon_state": "string", "sync_error": "string", "output_error": "string", "has_open_editing_session": true, "storage_provider_details": {}, "output_storage_provider_data": {}, "has_site_password": true, "has_client_password": true, "has_main_source_dam": true, "build_configuration": {} }, "remote_site": { "uuid": "00000000-0000-0000-0000-000000000000", "id": 0, "site_name": "string", "subpath": "string", "stable_domain": "string", "ssg": "string", "last_synced": "2024-01-01T00:00:00Z", "last_output": "2024-01-01T00:00:00Z", "last_compiled": "2024-01-01T00:00:00Z", "last_compressed": "2024-01-01T00:00:00Z", "last_internationalised": "2024-01-01T00:00:00Z", "last_published": "2024-01-01T00:00:00Z", "last_cleaned": "2024-01-01T00:00:00Z", "storage_provider": "string", "client_author_name": "string", "client_author_email": "string", "create_source": "string", "hosting_choice": "string", "building_locked": true, "editing_locked": true, "uploads_locked": true, "browsing_locked": true, "last_compiled_success": "2024-01-01T00:00:00Z", "preview_url": "string", "documentation_url": "string", "support_url": "string", "client_editor_route": "string", "active_quest": "string", "created_at": "2024-01-01T00:00:00Z", "updated_at": "2024-01-01T00:00:00Z", "mode": "string", "project_id": 0, "project_uuid": "string", "pr_number": 0, "pr_external_url": "string", "cloudcannon_config_path": "string", "output_storage_provider": "string", "domain_name": "string", "site_icon_state": "string", "sync_error": "string", "output_error": "string", "has_open_editing_session": true, "storage_provider_details": {}, "output_storage_provider_data": {}, "has_site_password": true, "has_client_password": true, "has_main_source_dam": true, "build_configuration": {} } }401Unauthorized
JSONCopied to clipboard{ "error": "string" }403Forbidden
JSONCopied to clipboard{ "error": "string" }422Unprocessable
JSONCopied to clipboard{ "errors": {} }
Delete Site Mounting
DELETE
/api/v0/site-mountings/{site_mounting_uuid}- Path parameters:
- Example request:
- BashCopied to clipboard
curl https://app.cloudcannon.com/api/v0/site-mountings/{site_mounting_uuid} \ -X DELETE \ -H "X-API-KEY: <your-api-key>" - Responses:
204Deleted
401Unauthorized
JSONCopied to clipboard{ "error": "string" }403Forbidden
JSONCopied to clipboard{ "error": "string" }