{"command":{"effect":"write","timeoutSeconds":30,"inputSchema":{"type":"object","description":"**Note:** Environment variable keys and values have moved from `build_settings.env` and `repo.env` to a new endpoint. Please use [updateEnvVar](#tag/environmentVariables/operation/updateEnvVar) to update a site's environment variables.","properties":{"path":{"type":"object","properties":{"site_id":{"type":"string"}},"required":["site_id"],"additionalProperties":false},"body":{"$ref":"#/definitions/siteSetup"}},"required":["path","body"],"additionalProperties":false,"definitions":{"siteSetup":{"allOf":[{"$ref":"#/definitions/site"},{"properties":{"repo":{"$ref":"#/definitions/repoInfo"}}}]},"site":{"type":"object","properties":{"id":{"type":"string"},"state":{"type":"string"},"plan":{"type":"string"},"name":{"type":"string"},"custom_domain":{"type":"string"},"domain_aliases":{"type":"array","items":{"type":"string"}},"branch_deploy_custom_domain":{"type":"string"},"deploy_preview_custom_domain":{"type":"string"},"password":{"type":"string"},"notification_email":{"type":"string"},"url":{"type":"string"},"ssl_url":{"type":"string"},"admin_url":{"type":"string"},"screenshot_url":{"type":"string"},"created_at":{"type":"string"},"updated_at":{"type":"string"},"user_id":{"type":"string"},"session_id":{"type":"string"},"ssl":{"type":"boolean"},"force_ssl":{"type":"boolean"},"managed_dns":{"type":"boolean"},"deploy_url":{"type":"string"},"published_deploy":{"$ref":"#/definitions/deploy"},"account_id":{"type":"string"},"account_name":{"type":"string"},"account_slug":{"type":"string"},"git_provider":{"type":"string"},"deploy_hook":{"type":"string"},"capabilities":{"type":"object","additionalProperties":{"type":"object"}},"processing_settings":{"type":"object","properties":{"html":{"type":"object","properties":{"pretty_urls":{"type":"boolean"}}}}},"build_settings":{"$ref":"#/definitions/repoInfo"},"id_domain":{"type":"string"},"default_hooks_data":{"type":"object","properties":{"access_token":{"type":"string"}}},"build_image":{"type":"string"},"prerender":{"type":"string"},"functions_region":{"type":"string"},"prevent_non_git_prod_deploys":{"type":"boolean","default":false}}},"repoInfo":{"type":"object","properties":{"id":{"type":"integer"},"provider":{"type":"string"},"deploy_key_id":{"type":"string"},"repo_path":{"type":"string"},"repo_branch":{"type":"string"},"dir":{"type":"string"},"functions_dir":{"type":"string","description":"The directory where Netlify can find your compiled functions to deploy them. Defaults to netlify/functions if not set. You can also define and override this setting in your project’s netlify.toml file."},"cmd":{"type":"string","description":"The build command to run. This is the command that Netlify runs to build your site. If a site has a netlify.toml file with a build command it will override this value."},"allowed_branches":{"type":"array","items":{"type":"string"}},"public_repo":{"type":"boolean"},"private_logs":{"type":"boolean"},"repo_url":{"type":"string"},"env":{"type":"object","additionalProperties":{"type":"string"}},"installation_id":{"type":"integer"},"stop_builds":{"type":"boolean","description":"When true, Netlify will not build your project automatically. You can build locally via the CLI and then publish new deploys manually via the CLI or the API."}}},"deploy":{"type":"object","properties":{"id":{"type":"string"},"site_id":{"type":"string"},"user_id":{"type":"string"},"build_id":{"type":"string"},"state":{"type":"string"},"name":{"type":"string"},"url":{"type":"string"},"ssl_url":{"type":"string"},"admin_url":{"type":"string"},"deploy_url":{"type":"string"},"deploy_ssl_url":{"type":"string"},"screenshot_url":{"type":"string"},"review_id":{"type":"number"},"draft":{"type":"boolean"},"required":{"type":"array","items":{"type":"string"}},"required_functions":{"type":"array","items":{"type":"string"}},"required_edge_functions":{"type":"array","items":{"type":"string"},"description":"An array of code_shas for the edge-function bundles that need to be uploaded to\ncomplete the deploy.\n"},"required_server":{"type":"array","items":{"type":"string"},"description":"The SHA256 digest of the deploy's Netlify Server bundle, when it still needs to\nbe uploaded to complete the deploy. A deploy has at most one server, so this\nholds either nothing or a single digest.\n"},"error_message":{"type":"string"},"branch":{"type":"string"},"commit_ref":{"type":"string"},"commit_url":{"type":"string"},"skipped":{"type":"boolean"},"created_at":{"type":"string"},"updated_at":{"type":"string"},"published_at":{"type":"string"},"title":{"type":"string"},"context":{"type":"string"},"locked":{"type":"boolean"},"review_url":{"type":"string"},"framework":{"type":"string"},"skew_protection_token":{"type":"string"},"function_schedules":{"type":"array","items":{"$ref":"#/definitions/functionSchedule"}},"functions_region":{"type":"string","description":"The functions region for this deploy as an airport code.\n"},"functions_region_overrides":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"region":{"type":"string"}}},"description":"Functions in the deploy that explicitly specify their own region\n(airport code).\n"}}},"functionSchedule":{"type":"object","properties":{"name":{"type":"string"},"cron":{"type":"string"}}}}},"name":"Update a site","id":"netlify.updatesite","example":{"path":{"site_id":"example"},"body":{}},"maxRequests":1,"summary":false}}