{"openapi":"3.0.0","info":{"contact":{"x-twitter":"Netlify"},"description":"Netlify is a hosting service for the programmable web. It understands your documents and provides an API to handle atomic deploys of websites, manage form submissions, inject JavaScript snippets, and much more. This is a REST-style API that uses JSON for serialization and OAuth 2 for authentication.\n\nThis document is an OpenAPI reference for the Netlify API that you can explore. For more detailed instructions for common uses, please visit the [online documentation](https://www.netlify.com/docs/api/). Visit our Community forum to join the conversation about [understanding and using Netlify’s API](https://community.netlify.com/t/common-issue-understanding-and-using-netlifys-api/160).\n\nAdditionally, we have two API clients for your convenience:\n- [Go Client](https://github.com/netlify/open-api#go-client)\n- [JS Client](https://github.com/netlify/build/tree/main/packages/js-client)","termsOfService":"https://www.netlify.com/legal/terms-of-use/","title":"Netlify's API documentation","version":"2.16.0","x-apisguru-categories":["cloud"],"x-logo":{"altText":"Netlify","href":"https://www.netlify.com/docs/","url":"https://twitter.com/Netlify/profile_image?size=original"},"x-origin":[{"format":"swagger","url":"https://raw.githubusercontent.com/netlify/open-api/master/swagger.yml","version":"2.0"}],"x-providerName":"netlify.com"},"externalDocs":{"description":"Online documentation","url":"https://www.netlify.com/docs/api/"},"security":[{"netlifyAuth":[]}],"tags":[{"name":"ticket","x-displayName":"Ticket"},{"name":"accessToken","x-displayName":"Access token"},{"name":"user","x-displayName":"User"},{"name":"accountMembership","x-displayName":"Accounts"},{"name":"member","x-displayName":"Member"},{"name":"accountType","x-displayName":"Access type"},{"name":"paymentMethod","x-displayName":"Payment method"},{"name":"auditLog","x-displayName":"Audit log"},{"name":"site","x-displayName":"Site"},{"name":"environmentVariables","x-displayName":"Environment variables"},{"name":"file","x-displayName":"File"},{"name":"metadata","x-displayName":"Metadata"},{"name":"snippet","x-displayName":"Snippet"},{"name":"dnsZone","x-displayName":"DNS zone"},{"name":"sniCertificate","x-displayName":"SNI certificate"},{"name":"deploy","x-displayName":"Deploy"},{"name":"deployedBranch","x-displayName":"Deployed branch"},{"name":"deployKey","x-displayName":"Deploy key"},{"name":"build","x-displayName":"Build"},{"name":"buildLogMsg","x-displayName":"Build log message"},{"name":"hook","x-displayName":"Hook"},{"name":"hookType","x-displayName":"Hook type"},{"name":"buildHook","x-displayName":"Build hook"},{"name":"service","x-displayName":"Service"},{"name":"serviceInstance","x-displayName":"Service instance"},{"name":"function","x-displayName":"Function"},{"name":"form","x-displayName":"Form"},{"name":"submission","x-displayName":"Form submission"},{"name":"splitTest","x-displayName":"Split test"},{"name":"asset","x-displayName":"Asset"},{"name":"assetPublicSignature","x-displayName":"Asset public signature"}],"paths":{"/accounts":{"get":{"operationId":"listAccountsForUser","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/accountMembership"},"type":"array"}}}},"default":{"$ref":"#/components/responses/error"}},"tags":["accountMembership"]},"post":{"operationId":"createAccount","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/accountSetup"}}},"required":true},"responses":{"201":{"description":"Created","content":{"application/json":{"schema":{"$ref":"#/components/schemas/accountMembership"}}}},"default":{"$ref":"#/components/responses/error"}},"tags":["accountMembership"]}},"/accounts/types":{"get":{"operationId":"listAccountTypesForUser","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/accountType"},"type":"array"}}}},"default":{"$ref":"#/components/responses/error"}},"tags":["accountType"]}},"/accounts/{account_id}":{"delete":{"operationId":"cancelAccount","responses":{"204":{"description":"Not Content"},"default":{"$ref":"#/components/responses/error"}},"tags":["accountMembership"]},"get":{"operationId":"getAccount","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/accountMembership"},"type":"array"}}}},"default":{"$ref":"#/components/responses/error"}},"tags":["accountMembership"]},"parameters":[{"in":"path","name":"account_id","required":true,"schema":{"type":"string"}}],"put":{"operationId":"updateAccount","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/accountUpdateSetup"}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/accountMembership"}}}},"default":{"$ref":"#/components/responses/error"}},"tags":["accountMembership"]}},"/accounts/{account_id}/audit":{"get":{"operationId":"listAccountAuditEvents","parameters":[{"in":"query","name":"query","schema":{"type":"string"}},{"in":"query","name":"log_type","schema":{"type":"string"}},{"$ref":"#/components/parameters/page"},{"$ref":"#/components/parameters/perPage"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/auditLog"},"type":"array"}}}},"default":{"$ref":"#/components/responses/error"}},"tags":["auditLog"]},"parameters":[{"in":"path","name":"account_id","required":true,"schema":{"type":"string"}}]},"/accounts/{account_id}/env":{"get":{"description":"Returns all environment variables for an account or site. An account corresponds to a team in the Netlify UI. To use this endpoint, your site must no longer be using the <a href=\"https://docs.netlify.com/environment-variables/classic-experience/\">classic environment variables experience</a>.  Migrate now with the Netlify UI.","operationId":"getEnvVars","parameters":[{"description":"Scope response to account_id","in":"path","name":"account_id","required":true,"schema":{"type":"string"}},{"description":"Filter by deploy context","in":"query","name":"context_name","required":false,"schema":{"type":"string","enum":["all","dev","branch-deploy","deploy-preview","production"]}},{"description":"Filter by scope","in":"query","name":"scope","required":false,"schema":{"type":"string","enum":["builds","functions","runtime","post-processing"]}},{"description":"If specified, only return environment variables set on this site","in":"query","name":"site_id","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/envVar"},"type":"array"}}}},"default":{"$ref":"#/components/responses/error"}},"tags":["environmentVariables"]},"post":{"description":"Creates new environment variables. Granular scopes are available on Pro plans and above.  To use this endpoint, your site must no longer be using the <a href=\"https://docs.netlify.com/environment-variables/classic-experience/\">classic environment variables experience</a>.  Migrate now with the Netlify UI.","operationId":"createEnvVars","parameters":[{"description":"Scope response to account_id","in":"path","name":"account_id","required":true,"schema":{"type":"string"}},{"description":"If provided, create an environment variable on the site level, not the account level","in":"query","name":"site_id","required":false,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"items":{"properties":{"key":{"description":"The existing or new name of the key, if you wish to rename it (case-sensitive)","type":"string"},"scopes":{"description":"The scopes that this environment variable is set to (Pro plans and above)","items":{"enum":["builds","functions","runtime","post-processing"],"type":"string"},"type":"array"},"values":{"items":{"$ref":"#/components/schemas/envVarValue"},"type":"array"}},"type":"object"},"type":"array"}}}},"responses":{"201":{"description":"OK","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/envVar"},"type":"array"}}}},"default":{"$ref":"#/components/responses/error"}},"tags":["environmentVariables"]}},"/accounts/{account_id}/env/{key}":{"delete":{"description":"Deletes an environment variable. To use this endpoint, your site must no longer be using the <a href=\"https://docs.netlify.com/environment-variables/classic-experience/\">classic environment variables experience</a>.  Migrate now with the Netlify UI.","operationId":"deleteEnvVar","parameters":[{"description":"Scope response to account_id","in":"path","name":"account_id","required":true,"schema":{"type":"string"}},{"description":"The environment variable key (case-sensitive)","in":"path","name":"key","required":true,"schema":{"type":"string"}},{"description":"If provided, delete the environment variable from this site","in":"query","name":"site_id","required":false,"schema":{"type":"string"}}],"responses":{"204":{"description":"No Content (success)"},"default":{"$ref":"#/components/responses/error"}},"tags":["environmentVariables"]},"get":{"description":"Returns an individual environment variable. To use this endpoint, your site must no longer be using the <a href=\"https://docs.netlify.com/environment-variables/classic-experience/\">classic environment variables experience</a>.  Migrate now with the Netlify UI.","operationId":"getEnvVar","parameters":[{"description":"Scope response to account_id","in":"path","name":"account_id","required":true,"schema":{"type":"string"}},{"description":"The environment variable key (case-sensitive)","in":"path","name":"key","required":true,"schema":{"type":"string"}},{"description":"If provided, return the environment variable for a specific site (no merging is performed)","in":"query","name":"site_id","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/envVar"}}}},"default":{"$ref":"#/components/responses/error"}},"tags":["environmentVariables"]},"patch":{"description":"Updates or creates a new value for an existing environment variable. To use this endpoint, your site must no longer be using the <a href=\"https://docs.netlify.com/environment-variables/classic-experience/\">classic environment variables experience</a>.  Migrate now with the Netlify UI.","operationId":"setEnvVarValue","parameters":[{"description":"Scope response to account_id","in":"path","name":"account_id","required":true,"schema":{"type":"string"}},{"description":"The existing environment variable key name (case-sensitive)","in":"path","name":"key","required":true,"schema":{"type":"string"}},{"description":"If provided, update an environment variable set on this site","in":"query","name":"site_id","schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"properties":{"context":{"description":"The deploy context in which this value will be used. `dev` refers to local development when running `netlify dev`.","enum":["dev","branch-deploy","deploy-preview","production"],"type":"string"},"value":{"description":"The environment variable's unencrypted value","type":"string"}},"type":"object"}}}},"responses":{"201":{"description":"Created (success)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/envVar"}}}},"default":{"$ref":"#/components/responses/error"}},"tags":["environmentVariables"]},"put":{"description":"Updates an existing environment variable and all of its values. Existing values will be replaced by values provided. To use this endpoint, your site must no longer be using the <a href=\"https://docs.netlify.com/environment-variables/classic-experience/\">classic environment variables experience</a>.  Migrate now with the Netlify UI.","operationId":"updateEnvVar","parameters":[{"description":"Scope response to account_id","in":"path","name":"account_id","required":true,"schema":{"type":"string"}},{"description":"The existing environment variable key name (case-sensitive)","in":"path","name":"key","required":true,"schema":{"type":"string"}},{"description":"If provided, update an environment variable set on this site","in":"query","name":"site_id","required":false,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"properties":{"key":{"description":"The existing or new name of the key, if you wish to rename it (case-sensitive)","type":"string"},"scopes":{"description":"The scopes that this environment variable is set to (Pro plans and above)","items":{"enum":["builds","functions","runtime","post-processing"],"type":"string"},"type":"array"},"values":{"items":{"$ref":"#/components/schemas/envVarValue"},"type":"array"}},"type":"object"}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/envVar"}}}},"default":{"$ref":"#/components/responses/error"}},"tags":["environmentVariables"]}},"/accounts/{account_id}/env/{key}/value/{id}":{"delete":{"description":"Deletes a specific environment variable value. To use this endpoint, your site must no longer be using the <a href=\"https://docs.netlify.com/environment-variables/classic-experience/\">classic environment variables experience</a>.  Migrate now with the Netlify UI.","operationId":"deleteEnvVarValue","parameters":[{"description":"Scope response to account_id","in":"path","name":"account_id","required":true,"schema":{"type":"string"}},{"description":"The environment variable value's ID","in":"path","name":"id","required":true,"schema":{"type":"string"}},{"description":"The environment variable key name (case-sensitive)","in":"path","name":"key","required":true,"schema":{"type":"string"}},{"description":"If provided, delete the value from an environment variable on this site","in":"query","name":"site_id","required":false,"schema":{"type":"string"}}],"responses":{"204":{"description":"No Content (success)"},"default":{"$ref":"#/components/responses/error"}},"tags":["environmentVariables"]}},"/billing/payment_methods":{"get":{"operationId":"listPaymentMethodsForUser","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/paymentMethod"},"type":"array"}}}},"default":{"$ref":"#/components/responses/error"}},"tags":["paymentMethod"]}},"/builds/{build_id}":{"get":{"operationId":"getSiteBuild","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/build"}}}},"default":{"$ref":"#/components/responses/error"}},"tags":["build"]},"parameters":[{"in":"path","name":"build_id","required":true,"schema":{"type":"string"}}]},"/builds/{build_id}/log":{"parameters":[{"in":"path","name":"build_id","required":true,"schema":{"type":"string"}}],"post":{"operationId":"updateSiteBuildLog","responses":{"204":{"description":"No content"},"default":{"$ref":"#/components/responses/error"}},"tags":["buildLogMsg"]}},"/builds/{build_id}/start":{"parameters":[{"in":"path","name":"build_id","required":true,"schema":{"type":"string"}}],"post":{"operationId":"notifyBuildStart","responses":{"204":{"description":"No content"},"default":{"$ref":"#/components/responses/error"}},"tags":["build"]}},"/deploy_keys":{"get":{"operationId":"listDeployKeys","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/deployKey"},"type":"array"}}}},"default":{"$ref":"#/components/responses/error"}},"tags":["deployKey"]},"post":{"operationId":"createDeployKey","responses":{"201":{"description":"Created","content":{"application/json":{"schema":{"$ref":"#/components/schemas/deployKey"}}}},"default":{"$ref":"#/components/responses/error"}},"tags":["deployKey"]}},"/deploy_keys/{key_id}":{"delete":{"operationId":"deleteDeployKey","responses":{"204":{"description":"Not Content"},"default":{"$ref":"#/components/responses/error"}},"tags":["deployKey"]},"get":{"operationId":"getDeployKey","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/deployKey"}}}},"default":{"$ref":"#/components/responses/error"}},"tags":["deployKey"]},"parameters":[{"in":"path","name":"key_id","required":true,"schema":{"type":"string"}}]},"/deploys/{deploy_id}":{"delete":{"operationId":"deleteDeploy","parameters":[{"in":"path","name":"deploy_id","required":true,"schema":{"type":"string"}}],"responses":{"204":{"description":"No content"},"default":{"$ref":"#/components/responses/error"}},"tags":["deploy"]},"get":{"operationId":"getDeploy","parameters":[{"in":"path","name":"deploy_id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/deploy"}}}},"default":{"$ref":"#/components/responses/error"}},"tags":["deploy"]}},"/deploys/{deploy_id}/cancel":{"post":{"operationId":"cancelSiteDeploy","parameters":[{"in":"path","name":"deploy_id","required":true,"schema":{"type":"string"}}],"responses":{"201":{"description":"Cancelled","content":{"application/json":{"schema":{"$ref":"#/components/schemas/deploy"}}}},"default":{"$ref":"#/components/responses/error"}},"tags":["deploy"]}},"/deploys/{deploy_id}/files/{path}":{"put":{"operationId":"uploadDeployFile","parameters":[{"in":"path","name":"deploy_id","required":true,"schema":{"type":"string"}},{"in":"path","name":"path","required":true,"schema":{"type":"string"}},{"in":"query","name":"size","schema":{"type":"integer"}}],"requestBody":{"$ref":"#/components/requestBodies/uploadDeployFileFileBody"},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/file"}}}},"default":{"$ref":"#/components/responses/error"}},"tags":["file"]}},"/deploys/{deploy_id}/functions/{name}":{"put":{"operationId":"uploadDeployFunction","parameters":[{"in":"path","name":"deploy_id","required":true,"schema":{"type":"string"}},{"in":"path","name":"name","required":true,"schema":{"type":"string"}},{"in":"query","name":"runtime","schema":{"type":"string"}},{"in":"query","name":"size","schema":{"type":"integer"}},{"$ref":"#/components/parameters/retryCount"}],"requestBody":{"$ref":"#/components/requestBodies/uploadDeployFileFileBody"},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/function"}}}},"default":{"$ref":"#/components/responses/error"}},"tags":["function"]}},"/deploys/{deploy_id}/lock":{"post":{"operationId":"lockDeploy","parameters":[{"in":"path","name":"deploy_id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/deploy"}}}},"default":{"$ref":"#/components/responses/error"}},"tags":["deploy"]}},"/deploys/{deploy_id}/plugin_runs":{"post":{"description":"This is an internal-only endpoint.","operationId":"createPluginRun","parameters":[{"in":"path","name":"deploy_id","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/pluginRunData"}}}},"responses":{"201":{"description":"CREATED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/pluginRun"}}}},"default":{"$ref":"#/components/responses/error"}},"tags":["x-internal"]}},"/deploys/{deploy_id}/unlock":{"post":{"operationId":"unlockDeploy","parameters":[{"in":"path","name":"deploy_id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/deploy"}}}},"default":{"$ref":"#/components/responses/error"}},"tags":["deploy"]}},"/dns_zones":{"get":{"operationId":"getDnsZones","parameters":[{"in":"query","name":"account_slug","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"get all DNS zones the user has access to","content":{"application/json":{"schema":{"$ref":"#/components/schemas/dnsZones"}}}},"default":{"$ref":"#/components/responses/error"}},"tags":["dnsZone"]},"post":{"operationId":"createDnsZone","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/dnsZoneSetup"}}},"required":true},"responses":{"201":{"description":"Created","content":{"application/json":{"schema":{"$ref":"#/components/schemas/dnsZone"}}}},"default":{"$ref":"#/components/responses/error"}},"tags":["dnsZone"]}},"/dns_zones/{zone_id}":{"delete":{"operationId":"deleteDnsZone","responses":{"204":{"description":"delete a single DNS zone"},"default":{"$ref":"#/components/responses/error"}},"tags":["dnsZone"]},"get":{"operationId":"getDnsZone","responses":{"200":{"description":"get a single DNS zone","content":{"application/json":{"schema":{"$ref":"#/components/schemas/dnsZone"}}}},"default":{"$ref":"#/components/responses/error"}},"tags":["dnsZone"]},"parameters":[{"in":"path","name":"zone_id","required":true,"schema":{"type":"string"}}]},"/dns_zones/{zone_id}/dns_records":{"get":{"operationId":"getDnsRecords","responses":{"200":{"description":"get all DNS records for a single DNS zone","content":{"application/json":{"schema":{"$ref":"#/components/schemas/dnsRecords"}}}},"default":{"$ref":"#/components/responses/error"}},"tags":["dnsZone"]},"parameters":[{"in":"path","name":"zone_id","required":true,"schema":{"type":"string"}}],"post":{"operationId":"createDnsRecord","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/dnsRecordCreate"}}},"required":true},"responses":{"201":{"description":"Created","content":{"application/json":{"schema":{"$ref":"#/components/schemas/dnsRecord"}}}},"default":{"$ref":"#/components/responses/error"}},"tags":["dnsZone"]}},"/dns_zones/{zone_id}/dns_records/{dns_record_id}":{"delete":{"operationId":"deleteDnsRecord","responses":{"204":{"description":"record deleted"},"default":{"$ref":"#/components/responses/error"}},"tags":["dnsZone"]},"get":{"operationId":"getIndividualDnsRecord","responses":{"200":{"description":"get a single DNS record","content":{"application/json":{"schema":{"$ref":"#/components/schemas/dnsRecord"}}}},"default":{"$ref":"#/components/responses/error"}},"tags":["dnsZone"]},"parameters":[{"in":"path","name":"zone_id","required":true,"schema":{"type":"string"}},{"in":"path","name":"dns_record_id","required":true,"schema":{"type":"string"}}]},"/dns_zones/{zone_id}/transfer":{"parameters":[{"in":"path","name":"zone_id","required":true,"schema":{"type":"string"}},{"description":"the account of the dns zone","in":"query","name":"account_id","required":true,"schema":{"type":"string"}},{"description":"the account you want to transfer the dns zone to","in":"query","name":"transfer_account_id","required":true,"schema":{"type":"string"}},{"description":"the user you want to transfer the dns zone to","in":"query","name":"transfer_user_id","required":true,"schema":{"type":"string"}}],"put":{"operationId":"transferDnsZone","responses":{"200":{"description":"transfer a DNS zone to another account","content":{"application/json":{"schema":{"$ref":"#/components/schemas/dnsZone"}}}},"default":{"$ref":"#/components/responses/error"}},"tags":["dnsZone"]}},"/forms/{form_id}/submissions":{"get":{"operationId":"listFormSubmissions","parameters":[{"in":"path","name":"form_id","required":true,"schema":{"type":"string"}},{"$ref":"#/components/parameters/page"},{"$ref":"#/components/parameters/perPage"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/submission"},"type":"array"}}}},"default":{"$ref":"#/components/responses/error"}},"tags":["submission"]}},"/hooks":{"get":{"operationId":"listHooksBySiteId","parameters":[{"in":"query","name":"site_id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/hook"},"type":"array"}}}},"default":{"$ref":"#/components/responses/error"}},"tags":["hook"]},"post":{"operationId":"createHookBySiteId","parameters":[{"in":"query","name":"site_id","required":true,"schema":{"type":"string"}}],"requestBody":{"$ref":"#/components/requestBodies/hook"},"responses":{"201":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/hook"}}}},"default":{"$ref":"#/components/responses/error"}},"tags":["hook"]}},"/hooks/types":{"get":{"operationId":"listHookTypes","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/hookType"},"type":"array"}}}},"default":{"$ref":"#/components/responses/error"}},"tags":["hookType"]}},"/hooks/{hook_id}":{"delete":{"operationId":"deleteHook","responses":{"204":{"description":"No content"}},"tags":["hook"]},"get":{"operationId":"getHook","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/hook"}}}},"default":{"$ref":"#/components/responses/error"}},"tags":["hook"]},"parameters":[{"in":"path","name":"hook_id","required":true,"schema":{"type":"string"}}],"put":{"operationId":"updateHook","requestBody":{"$ref":"#/components/requestBodies/hook"},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/hook"}}}},"default":{"$ref":"#/components/responses/error"}},"tags":["hook"]}},"/hooks/{hook_id}/enable":{"parameters":[{"in":"path","name":"hook_id","required":true,"schema":{"type":"string"}}],"post":{"operationId":"enableHook","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/hook"}}}},"default":{"$ref":"#/components/responses/error"}},"tags":["hook"]}},"/oauth/tickets":{"post":{"operationId":"createTicket","parameters":[{"in":"query","name":"client_id","required":true,"schema":{"type":"string"}}],"responses":{"201":{"description":"ok","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ticket"}}}},"default":{"$ref":"#/components/responses/error"}},"tags":["ticket"]}},"/oauth/tickets/{ticket_id}":{"get":{"operationId":"showTicket","parameters":[{"in":"path","name":"ticket_id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"ok","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ticket"}}}},"default":{"$ref":"#/components/responses/error"}},"tags":["ticket"]}},"/oauth/tickets/{ticket_id}/exchange":{"post":{"operationId":"exchangeTicket","parameters":[{"in":"path","name":"ticket_id","required":true,"schema":{"type":"string"}}],"responses":{"201":{"description":"ok","content":{"application/json":{"schema":{"$ref":"#/components/schemas/accessToken"}}}},"default":{"$ref":"#/components/responses/error"}},"tags":["accessToken"]}},"/services/":{"get":{"operationId":"getServices","responses":{"200":{"description":"services","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/service"},"type":"array"}}}},"default":{"$ref":"#/components/responses/error"}},"tags":["service"]},"parameters":[{"in":"query","name":"search","schema":{"type":"string"}}]},"/services/{addonName}":{"get":{"operationId":"showService","responses":{"200":{"description":"services","content":{"application/json":{"schema":{"$ref":"#/components/schemas/service"}}}},"default":{"$ref":"#/components/responses/error"}},"tags":["service"]},"parameters":[{"in":"path","name":"addonName","required":true,"schema":{"type":"string"}}]},"/services/{addonName}/manifest":{"get":{"operationId":"showServiceManifest","responses":{"201":{"description":"retrieving from provider","content":{"application/json":{"schema":{"type":"object"}}}},"default":{"$ref":"#/components/responses/error"}},"tags":["service"]},"parameters":[{"in":"path","name":"addonName","required":true,"schema":{"type":"string"}}]},"/sites":{"get":{"description":"**Note:** Environment variable keys and values will soon be moved from `build_settings.env` and `repo.env` to a new endpoint. Please use [getEnvVars](#tag/environmentVariables/operation/getEnvVars) to retrieve site environment variables.","operationId":"listSites","parameters":[{"in":"query","name":"name","schema":{"type":"string"}},{"in":"query","name":"filter","schema":{"type":"string","enum":["all","owner","guest"]}},{"$ref":"#/components/parameters/page"},{"$ref":"#/components/parameters/perPage"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/site"},"type":"array"}}}},"default":{"$ref":"#/components/responses/error"}},"tags":["site"]},"post":{"description":"**Note:** Environment variable keys and values will soon be moved from `build_settings.env` and `repo.env` to a new endpoint. Please use [createEnvVars](#tag/environmentVariables/operation/createEnvVars) to create environment variables for a site.","operationId":"createSite","parameters":[{"in":"query","name":"configure_dns","schema":{"type":"boolean"}}],"requestBody":{"$ref":"#/components/requestBodies/siteSetup"},"responses":{"201":{"description":"Created","content":{"application/json":{"schema":{"$ref":"#/components/schemas/site"}}}},"default":{"$ref":"#/components/responses/error"}},"tags":["site"]}},"/sites/{site_id}":{"delete":{"operationId":"deleteSite","responses":{"204":{"description":"Deleted"},"default":{"$ref":"#/components/responses/error"}},"tags":["site"]},"get":{"description":"**Note:** Environment variable keys and values will soon be moved from `build_settings.env` and `repo.env` to a new endpoint. Please use [getEnvVars](#tag/environmentVariables/operation/getEnvVars) to retrieve site environment variables.","operationId":"getSite","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/site"}}}},"default":{"$ref":"#/components/responses/error"}},"tags":["site"]},"parameters":[{"in":"path","name":"site_id","required":true,"schema":{"type":"string"}}],"patch":{"description":"**Note:** Environment variable keys and values will soon be 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.","operationId":"updateSite","requestBody":{"$ref":"#/components/requestBodies/siteSetup"},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/site"}}}},"default":{"$ref":"#/components/responses/error"}},"tags":["site"]}},"/sites/{site_id}/assets":{"get":{"operationId":"listSiteAssets","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/asset"},"type":"array"}}}},"default":{"$ref":"#/components/responses/error"}},"tags":["asset"]},"parameters":[{"in":"path","name":"site_id","required":true,"schema":{"type":"string"}}],"post":{"operationId":"createSiteAsset","parameters":[{"in":"query","name":"name","required":true,"schema":{"type":"string"}},{"in":"query","name":"size","required":true,"schema":{"type":"integer","format":"int64"}},{"in":"query","name":"content_type","required":true,"schema":{"type":"string"}},{"in":"query","name":"visibility","schema":{"type":"string"}}],"responses":{"201":{"description":"Created","content":{"application/json":{"schema":{"$ref":"#/components/schemas/assetSignature"}}}},"default":{"$ref":"#/components/responses/error"}},"tags":["asset"]}},"/sites/{site_id}/assets/{asset_id}":{"delete":{"operationId":"deleteSiteAsset","responses":{"204":{"description":"Deleted"},"default":{"$ref":"#/components/responses/error"}},"tags":["asset"]},"get":{"operationId":"getSiteAssetInfo","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/asset"}}}},"default":{"$ref":"#/components/responses/error"}},"tags":["asset"]},"parameters":[{"in":"path","name":"site_id","required":true,"schema":{"type":"string"}},{"in":"path","name":"asset_id","required":true,"schema":{"type":"string"}}],"put":{"operationId":"updateSiteAsset","parameters":[{"in":"query","name":"state","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Updated","content":{"application/json":{"schema":{"$ref":"#/components/schemas/asset"}}}},"default":{"$ref":"#/components/responses/error"}},"tags":["asset"]}},"/sites/{site_id}/assets/{asset_id}/public_signature":{"get":{"operationId":"getSiteAssetPublicSignature","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/assetPublicSignature"}}}},"default":{"$ref":"#/components/responses/error"}},"tags":["assetPublicSignature"]},"parameters":[{"in":"path","name":"site_id","required":true,"schema":{"type":"string"}},{"in":"path","name":"asset_id","required":true,"schema":{"type":"string"}}]},"/sites/{site_id}/build_hooks":{"get":{"operationId":"listSiteBuildHooks","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/buildHook"},"type":"array"}}}},"default":{"$ref":"#/components/responses/error"}},"tags":["buildHook"]},"parameters":[{"in":"path","name":"site_id","required":true,"schema":{"type":"string"}}],"post":{"operationId":"createSiteBuildHook","requestBody":{"$ref":"#/components/requestBodies/buildHookSetup"},"responses":{"201":{"description":"Created","content":{"application/json":{"schema":{"$ref":"#/components/schemas/buildHook"}}}},"default":{"$ref":"#/components/responses/error"}},"tags":["buildHook"]}},"/sites/{site_id}/build_hooks/{id}":{"delete":{"operationId":"deleteSiteBuildHook","responses":{"204":{"description":"No content"},"default":{"$ref":"#/components/responses/error"}},"tags":["buildHook"]},"get":{"operationId":"getSiteBuildHook","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/buildHook"}}}},"default":{"$ref":"#/components/responses/error"}},"tags":["buildHook"]},"parameters":[{"in":"path","name":"site_id","required":true,"schema":{"type":"string"}},{"in":"path","name":"id","required":true,"schema":{"type":"string"}}],"put":{"operationId":"updateSiteBuildHook","requestBody":{"$ref":"#/components/requestBodies/buildHookSetup"},"responses":{"204":{"description":"No content"},"default":{"$ref":"#/components/responses/error"}},"tags":["buildHook"]}},"/sites/{site_id}/builds":{"get":{"operationId":"listSiteBuilds","parameters":[{"$ref":"#/components/parameters/page"},{"$ref":"#/components/parameters/perPage"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/build"},"type":"array"}}}},"default":{"$ref":"#/components/responses/error"}},"tags":["build"]},"parameters":[{"in":"path","name":"site_id","required":true,"schema":{"type":"string"}}],"post":{"operationId":"createSiteBuild","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/buildSetup"}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/build"}}}},"default":{"$ref":"#/components/responses/error"}},"tags":["build"]}},"/sites/{site_id}/deployed-branches":{"get":{"operationId":"listSiteDeployedBranches","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/deployedBranch"},"type":"array"}}}},"default":{"$ref":"#/components/responses/error"}},"tags":["deployedBranch"]},"parameters":[{"in":"path","name":"site_id","required":true,"schema":{"type":"string"}}]},"/sites/{site_id}/deploys":{"get":{"operationId":"listSiteDeploys","parameters":[{"$ref":"#/components/parameters/page"},{"$ref":"#/components/parameters/perPage"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/deploy"},"type":"array"}}}},"default":{"$ref":"#/components/responses/error"}},"tags":["deploy"]},"parameters":[{"in":"path","name":"site_id","required":true,"schema":{"type":"string"}},{"in":"query","name":"deploy-previews","schema":{"type":"boolean"}},{"in":"query","name":"production","schema":{"type":"boolean"}},{"in":"query","name":"state","schema":{"type":"string","enum":["new","pending_review","accepted","rejected","enqueued","building","uploading","uploaded","preparing","prepared","processing","ready","error","retrying"]}},{"in":"query","name":"branch","schema":{"type":"string"}},{"in":"query","name":"latest-published","schema":{"type":"boolean"}}],"post":{"operationId":"createSiteDeploy","parameters":[{"in":"query","name":"title","schema":{"type":"string"}}],"requestBody":{"$ref":"#/components/requestBodies/deployFiles"},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/deploy"}}}},"default":{"$ref":"#/components/responses/error"}},"tags":["deploy"]}},"/sites/{site_id}/deploys/{deploy_id}":{"delete":{"operationId":"deleteSiteDeploy","parameters":[{"in":"path","name":"deploy_id","required":true,"schema":{"type":"string"}},{"in":"path","name":"site_id","required":true,"schema":{"type":"string"}}],"responses":{"204":{"description":"No content"},"default":{"$ref":"#/components/responses/error"}},"tags":["deploy"]},"get":{"operationId":"getSiteDeploy","parameters":[{"in":"path","name":"site_id","required":true,"schema":{"type":"string"}},{"in":"path","name":"deploy_id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/deploy"}}}},"default":{"$ref":"#/components/responses/error"}},"tags":["deploy"]},"put":{"operationId":"updateSiteDeploy","parameters":[{"in":"path","name":"site_id","required":true,"schema":{"type":"string"}},{"in":"path","name":"deploy_id","required":true,"schema":{"type":"string"}}],"requestBody":{"$ref":"#/components/requestBodies/deployFiles"},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/deploy"}}}},"default":{"$ref":"#/components/responses/error"}},"tags":["deploy"]}},"/sites/{site_id}/deploys/{deploy_id}/restore":{"post":{"operationId":"restoreSiteDeploy","parameters":[{"in":"path","name":"site_id","required":true,"schema":{"type":"string"}},{"in":"path","name":"deploy_id","required":true,"schema":{"type":"string"}}],"responses":{"201":{"description":"Created","content":{"application/json":{"schema":{"$ref":"#/components/schemas/deploy"}}}},"default":{"$ref":"#/components/responses/error"}},"tags":["deploy"]}},"/sites/{site_id}/dns":{"get":{"operationId":"getDNSForSite","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/dnsZone"},"type":"array"}}}},"default":{"$ref":"#/components/responses/error"}},"tags":["dnsZone"]},"parameters":[{"in":"path","name":"site_id","required":true,"schema":{"type":"string"}}],"put":{"operationId":"configureDNSForSite","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/dnsZone"},"type":"array"}}}},"default":{"$ref":"#/components/responses/error"}},"tags":["dnsZone"]}},"/sites/{site_id}/files":{"get":{"operationId":"listSiteFiles","parameters":[{"in":"path","name":"site_id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/file"},"type":"array"}}}},"default":{"$ref":"#/components/responses/error"}},"tags":["file"]}},"/sites/{site_id}/files/{file_path}":{"get":{"operationId":"getSiteFileByPathName","parameters":[{"in":"path","name":"site_id","required":true,"schema":{"type":"string"}},{"in":"path","name":"file_path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/file"}}}},"default":{"$ref":"#/components/responses/error"}},"tags":["file"]}},"/sites/{site_id}/forms":{"get":{"operationId":"listSiteForms","parameters":[{"in":"path","name":"site_id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/form"},"type":"array"}}}},"default":{"$ref":"#/components/responses/error"}},"tags":["form"]}},"/sites/{site_id}/forms/{form_id}":{"delete":{"operationId":"deleteSiteForm","parameters":[{"in":"path","name":"site_id","required":true,"schema":{"type":"string"}},{"in":"path","name":"form_id","required":true,"schema":{"type":"string"}}],"responses":{"204":{"description":"Deleted"},"default":{"$ref":"#/components/responses/error"}},"tags":["form"]}},"/sites/{site_id}/metadata":{"get":{"operationId":"getSiteMetadata","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/metadata"}}}},"default":{"$ref":"#/components/responses/error"}},"tags":["metadata"]},"parameters":[{"in":"path","name":"site_id","required":true,"schema":{"type":"string"}}],"put":{"operationId":"updateSiteMetadata","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/metadata"}}},"required":true},"responses":{"204":{"description":"No content"},"default":{"$ref":"#/components/responses/error"}},"tags":["metadata"]}},"/sites/{site_id}/plugin_runs/latest":{"get":{"description":"This is an internal-only endpoint.","operationId":"getLatestPluginRuns","parameters":[{"in":"path","name":"site_id","required":true,"schema":{"type":"string"}},{"in":"query","name":"packages","required":true,"style":"form","explode":false,"schema":{"type":"array","items":{"type":"string"}}},{"in":"query","name":"state","schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/pluginRun"},"type":"array"}}}},"default":{"$ref":"#/components/responses/error"}},"tags":["x-internal"]}},"/sites/{site_id}/plugins/{package}":{"put":{"description":"This is an internal-only endpoint.","operationId":"updatePlugin","parameters":[{"in":"path","name":"site_id","required":true,"schema":{"type":"string"}},{"in":"path","name":"package","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/pluginParams"}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/plugin"}}}},"default":{"$ref":"#/components/responses/error"}},"tags":["x-internal"]}},"/sites/{site_id}/rollback":{"parameters":[{"in":"path","name":"site_id","required":true,"schema":{"type":"string"}}],"put":{"operationId":"rollbackSiteDeploy","responses":{"204":{"description":"No content"},"default":{"$ref":"#/components/responses/error"}},"tags":["deploy"]}},"/sites/{site_id}/service-instances":{"get":{"operationId":"listServiceInstancesForSite","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/serviceInstance"},"type":"array"}}}},"default":{"$ref":"#/components/responses/error"}},"tags":["serviceInstance"]},"parameters":[{"in":"path","name":"site_id","required":true,"schema":{"type":"string"}}]},"/sites/{site_id}/services/{addon}/instances":{"parameters":[{"in":"path","name":"site_id","required":true,"schema":{"type":"string"}},{"in":"path","name":"addon","required":true,"schema":{"type":"string"}}],"post":{"operationId":"createServiceInstance","requestBody":{"$ref":"#/components/requestBodies/createServiceInstanceConfig"},"responses":{"201":{"description":"Created","content":{"application/json":{"schema":{"$ref":"#/components/schemas/serviceInstance"}}}},"default":{"$ref":"#/components/responses/error"}},"tags":["serviceInstance"]}},"/sites/{site_id}/services/{addon}/instances/{instance_id}":{"delete":{"operationId":"deleteServiceInstance","responses":{"204":{"description":"Deleted"},"default":{"$ref":"#/components/responses/error"}},"tags":["serviceInstance"]},"get":{"operationId":"showServiceInstance","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/serviceInstance"}}}},"default":{"$ref":"#/components/responses/error"}},"tags":["serviceInstance"]},"parameters":[{"in":"path","name":"site_id","required":true,"schema":{"type":"string"}},{"in":"path","name":"addon","required":true,"schema":{"type":"string"}},{"in":"path","name":"instance_id","required":true,"schema":{"type":"string"}}],"put":{"operationId":"updateServiceInstance","requestBody":{"$ref":"#/components/requestBodies/createServiceInstanceConfig"},"responses":{"204":{"description":"No Content"},"default":{"$ref":"#/components/responses/error"}},"tags":["serviceInstance"]}},"/sites/{site_id}/snippets":{"get":{"operationId":"listSiteSnippets","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/snippet"},"type":"array"}}}},"default":{"$ref":"#/components/responses/error"}},"tags":["snippet"]},"parameters":[{"in":"path","name":"site_id","required":true,"schema":{"type":"string"}}],"post":{"operationId":"createSiteSnippet","requestBody":{"$ref":"#/components/requestBodies/snippet"},"responses":{"201":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/snippet"}}}},"default":{"$ref":"#/components/responses/error"}},"tags":["snippet"]}},"/sites/{site_id}/snippets/{snippet_id}":{"delete":{"operationId":"deleteSiteSnippet","responses":{"204":{"description":"No content"},"default":{"$ref":"#/components/responses/error"}},"tags":["snippet"]},"get":{"operationId":"getSiteSnippet","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/snippet"}}}},"default":{"$ref":"#/components/responses/error"}},"tags":["snippet"]},"parameters":[{"in":"path","name":"site_id","required":true,"schema":{"type":"string"}},{"in":"path","name":"snippet_id","required":true,"schema":{"type":"string"}}],"put":{"operationId":"updateSiteSnippet","requestBody":{"$ref":"#/components/requestBodies/snippet"},"responses":{"204":{"description":"No content"},"default":{"$ref":"#/components/responses/error"}},"tags":["snippet"]}},"/sites/{site_id}/ssl":{"get":{"operationId":"showSiteTLSCertificate","parameters":[{"in":"path","name":"site_id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/sniCertificate"}}}},"default":{"$ref":"#/components/responses/error"}},"tags":["sniCertificate"]},"post":{"operationId":"provisionSiteTLSCertificate","parameters":[{"in":"path","name":"site_id","required":true,"schema":{"type":"string"}},{"in":"query","name":"certificate","schema":{"type":"string"}},{"in":"query","name":"key","schema":{"type":"string"}},{"in":"query","name":"ca_certificates","schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/sniCertificate"}}}},"default":{"$ref":"#/components/responses/error"}},"tags":["sniCertificate"]}},"/sites/{site_id}/submissions":{"get":{"operationId":"listSiteSubmissions","parameters":[{"in":"path","name":"site_id","required":true,"schema":{"type":"string"}},{"$ref":"#/components/parameters/page"},{"$ref":"#/components/parameters/perPage"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/submission"},"type":"array"}}}},"default":{"$ref":"#/components/responses/error"}},"tags":["submission"]}},"/sites/{site_id}/traffic_splits":{"get":{"operationId":"getSplitTests","responses":{"200":{"description":"split_tests","content":{"application/json":{"schema":{"$ref":"#/components/schemas/splitTests"}}}},"default":{"$ref":"#/components/responses/error"}},"tags":["splitTest"]},"parameters":[{"in":"path","name":"site_id","required":true,"schema":{"type":"string"}}],"post":{"operationId":"createSplitTest","requestBody":{"$ref":"#/components/requestBodies/splitTestSetup"},"responses":{"201":{"description":"Created","content":{"application/json":{"schema":{"$ref":"#/components/schemas/splitTest"}}}},"default":{"$ref":"#/components/responses/error"}},"tags":["splitTest"]}},"/sites/{site_id}/traffic_splits/{split_test_id}":{"get":{"operationId":"getSplitTest","responses":{"200":{"description":"split_test","content":{"application/json":{"schema":{"$ref":"#/components/schemas/splitTest"}}}},"default":{"$ref":"#/components/responses/error"}},"tags":["splitTest"]},"parameters":[{"in":"path","name":"site_id","required":true,"schema":{"type":"string"}},{"in":"path","name":"split_test_id","required":true,"schema":{"type":"string"}}],"put":{"operationId":"updateSplitTest","requestBody":{"$ref":"#/components/requestBodies/splitTestSetup"},"responses":{"201":{"description":"Created","content":{"application/json":{"schema":{"$ref":"#/components/schemas/splitTest"}}}},"default":{"$ref":"#/components/responses/error"}},"tags":["splitTest"]}},"/sites/{site_id}/traffic_splits/{split_test_id}/publish":{"parameters":[{"in":"path","name":"site_id","required":true,"schema":{"type":"string"}},{"in":"path","name":"split_test_id","required":true,"schema":{"type":"string"}}],"post":{"operationId":"enableSplitTest","responses":{"204":{"description":"enable"},"default":{"$ref":"#/components/responses/error"}},"tags":["splitTest"]}},"/sites/{site_id}/traffic_splits/{split_test_id}/unpublish":{"parameters":[{"in":"path","name":"site_id","required":true,"schema":{"type":"string"}},{"in":"path","name":"split_test_id","required":true,"schema":{"type":"string"}}],"post":{"operationId":"disableSplitTest","responses":{"204":{"description":"disabled"},"default":{"$ref":"#/components/responses/error"}},"tags":["splitTest"]}},"/sites/{site_id}/unlink_repo":{"parameters":[{"in":"path","name":"site_id","required":true,"schema":{"type":"string"}}],"put":{"description":"[Beta] Unlinks the repo from the site.\n\nThis action will also:\n- Delete associated deploy keys\n- Delete outgoing webhooks for the repo\n- Delete the site's build hooks","operationId":"unlinkSiteRepo","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/site"}}}},"404":{"description":"Site not found"}},"tags":["site"]}},"/submissions/{submission_id}":{"delete":{"operationId":"deleteSubmission","responses":{"204":{"description":"Deleted"},"default":{"$ref":"#/components/responses/error"}},"tags":["submission"]},"get":{"operationId":"listFormSubmission","parameters":[{"in":"query","name":"query","schema":{"type":"string"}},{"$ref":"#/components/parameters/page"},{"$ref":"#/components/parameters/perPage"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/submission"},"type":"array"}}}},"default":{"$ref":"#/components/responses/error"}},"tags":["submission"]},"parameters":[{"in":"path","name":"submission_id","required":true,"schema":{"type":"string"}}]},"/user":{"get":{"operationId":"getCurrentUser","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/user"},"type":"array"}}}},"default":{"$ref":"#/components/responses/error"}},"tags":["user"]}},"/{account_id}/builds/status":{"get":{"operationId":"getAccountBuildStatus","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/buildStatus"},"type":"array"}}}},"default":{"$ref":"#/components/responses/error"}},"tags":["build"]},"parameters":[{"in":"path","name":"account_id","required":true,"schema":{"type":"string"}}]},"/{account_slug}/members":{"get":{"operationId":"listMembersForAccount","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/member"},"type":"array"}}}},"default":{"$ref":"#/components/responses/error"}},"tags":["member"]},"parameters":[{"in":"path","name":"account_slug","required":true,"schema":{"type":"string"}}],"post":{"operationId":"addMemberToAccount","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/accountAddMemberSetup"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/member"},"type":"array"}}}},"default":{"$ref":"#/components/responses/error"}},"tags":["member"]}},"/{account_slug}/members/{member_id}":{"delete":{"operationId":"removeAccountMember","responses":{"204":{"description":"Not Content"},"default":{"$ref":"#/components/responses/error"}},"tags":["member"]},"get":{"operationId":"getAccountMember","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/member"}}}},"default":{"$ref":"#/components/responses/error"}},"tags":["member"]},"parameters":[{"in":"path","name":"account_slug","required":true,"schema":{"type":"string"}},{"in":"path","name":"member_id","required":true,"schema":{"type":"string"}}],"put":{"operationId":"updateAccountMember","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/accountUpdateMemberSetup"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/member"}}}},"default":{"$ref":"#/components/responses/error"}},"tags":["member"]}},"/{account_slug}/sites":{"get":{"description":"**Note:** Environment variable keys and values will soon be moved from `build_settings.env` and `repo.env` to a new endpoint. Please use [getEnvVars](#tag/environmentVariables/operation/getEnvVars) to retrieve site environment variables.","operationId":"listSitesForAccount","parameters":[{"in":"query","name":"name","schema":{"type":"string"}},{"in":"path","name":"account_slug","required":true,"schema":{"type":"string"}},{"$ref":"#/components/parameters/page"},{"$ref":"#/components/parameters/perPage"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/site"},"type":"array"}}}},"default":{"$ref":"#/components/responses/error"}},"tags":["site"]},"post":{"description":"**Note:** Environment variable keys and values will soon be moved from `build_settings.env` and `repo.env` to a new endpoint. Please use [createEnvVars](#tag/environmentVariables/operation/createEnvVars) to create environment variables for a site.","operationId":"createSiteInTeam","parameters":[{"in":"query","name":"configure_dns","schema":{"type":"boolean"}},{"in":"path","name":"account_slug","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/siteSetup"}}}},"responses":{"201":{"description":"Created","content":{"application/json":{"schema":{"$ref":"#/components/schemas/site"}}}},"default":{"$ref":"#/components/responses/error"}},"tags":["site"]}}},"x-tagGroups":[{"name":"OAuth","tags":["ticket","accessToken"]},{"name":"User accounts","tags":["user","accountMembership","member","accountType","paymentMethod","auditLog"]},{"name":"Site","tags":["site","environmentVariables","file","metadata","snippet"]},{"name":"Domain names","tags":["dnsZone","sniCertificate"]},{"name":"Deploys","tags":["deploy","deployedBranch","deployKey"]},{"name":"Builds","tags":["build","buildLogMsg"]},{"name":"Webhooks and notifications","tags":["hook","hookType","buildHook"]},{"name":"Services","tags":["service","serviceInstance"]},{"name":"Functions","tags":["function"]},{"name":"Forms","tags":["form","submission"]},{"name":"Split tests","tags":["splitTest"]},{"name":"Large media","tags":["asset","assetPublicSignature"]}],"servers":[{"url":"https://api.netlify.com/api/v1"}],"components":{"parameters":{"page":{"in":"query","name":"page","required":false,"schema":{"type":"integer","format":"int32"}},"perPage":{"in":"query","name":"per_page","required":false,"schema":{"type":"integer","format":"int32"}},"retryCount":{"in":"header","name":"X-Nf-Retry-Count","schema":{"type":"integer"}}},"responses":{"error":{"description":"error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}}},"requestBodies":{"createServiceInstanceConfig":{"content":{"application/json":{"schema":{"type":"object"}}},"required":true},"snippet":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/snippet"}}},"required":true},"deployFiles":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/deployFiles"}}},"required":true},"uploadDeployFileFileBody":{"content":{"application/octet-stream":{"schema":{"format":"binary","type":"string"}}},"required":true},"hook":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/hook"}}},"required":true},"siteSetup":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/siteSetup"}}},"required":true},"buildHookSetup":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/buildHookSetup"}}},"required":true},"splitTestSetup":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/splitTestSetup"}}},"required":true}},"securitySchemes":{"netlifyAuth":{"type":"oauth2","flows":{"implicit":{"authorizationUrl":"https://app.netlify.com/authorize","scopes":{}}}}},"schemas":{"accessToken":{"properties":{"access_token":{"type":"string"},"created_at":{"format":"dateTime","type":"string"},"id":{"type":"string"},"user_email":{"type":"string"},"user_id":{"type":"string"}},"type":"object"},"accountAddMemberSetup":{"properties":{"email":{"type":"string"},"role":{"enum":["Owner","Collaborator","Controller"],"type":"string"}},"type":"object"},"accountMembership":{"properties":{"billing_details":{"type":"string"},"billing_email":{"type":"string"},"billing_name":{"type":"string"},"billing_period":{"type":"string"},"capabilities":{"properties":{"collaborators":{"$ref":"#/components/schemas/accountUsageCapability"},"sites":{"$ref":"#/components/schemas/accountUsageCapability"}},"type":"object"},"created_at":{"format":"dateTime","type":"string"},"id":{"type":"string"},"name":{"type":"string"},"owner_ids":{"items":{"type":"string"},"type":"array"},"payment_method_id":{"type":"string"},"roles_allowed":{"items":{"type":"string"},"type":"array"},"slug":{"type":"string"},"type":{"type":"string"},"type_id":{"type":"string"},"type_name":{"type":"string"},"updated_at":{"format":"dateTime","type":"string"}},"type":"object"},"accountSetup":{"properties":{"extra_seats_block":{"type":"integer"},"name":{"type":"string"},"payment_method_id":{"type":"string"},"period":{"enum":["monthly","yearly"],"type":"string"},"type_id":{"type":"string"}},"required":["name","type_id"],"type":"object"},"accountType":{"properties":{"capabilities":{"type":"object"},"description":{"type":"string"},"id":{"type":"string"},"monthly_dollar_price":{"type":"integer"},"monthly_seats_addon_dollar_price":{"type":"integer"},"name":{"type":"string"},"yearly_dollar_price":{"type":"integer"},"yearly_seats_addon_dollar_price":{"type":"integer"}},"type":"object"},"accountUpdateMemberSetup":{"properties":{"role":{"enum":["Owner","Collaborator","Controller"],"type":"string"},"site_access":{"enum":["all","none","selected"],"type":"string"},"site_ids":{"items":{"type":"string"},"type":"array"}},"type":"object"},"accountUpdateSetup":{"properties":{"billing_details":{"type":"string"},"billing_email":{"type":"string"},"billing_name":{"type":"string"},"extra_seats_block":{"type":"integer"},"name":{"type":"string"},"slug":{"type":"string"},"type_id":{"type":"string"}},"type":"object"},"accountUsageCapability":{"properties":{"included":{"type":"integer"},"used":{"type":"integer"}},"type":"object"},"asset":{"properties":{"content_type":{"type":"string"},"created_at":{"format":"dateTime","type":"string"},"creator_id":{"type":"string"},"id":{"type":"string"},"key":{"type":"string"},"name":{"type":"string"},"site_id":{"type":"string"},"size":{"format":"int64","type":"integer"},"state":{"type":"string"},"updated_at":{"format":"dateTime","type":"string"},"url":{"type":"string"},"visibility":{"type":"string"}},"type":"object"},"assetForm":{"properties":{"fields":{"additionalProperties":{"type":"string"},"type":"object"},"url":{"type":"string"}},"type":"object"},"assetPublicSignature":{"properties":{"url":{"type":"string"}},"type":"object"},"assetSignature":{"properties":{"asset":{"$ref":"#/components/schemas/asset"},"form":{"$ref":"#/components/schemas/assetForm"}},"type":"object"},"auditLog":{"properties":{"account_id":{"type":"string"},"id":{"type":"string"},"payload":{"additionalProperties":{"type":"object"},"properties":{"action":{"type":"string"},"actor_email":{"type":"string"},"actor_id":{"type":"string"},"actor_name":{"type":"string"},"log_type":{"type":"string"},"timestamp":{"format":"dateTime","type":"string"}},"type":"object"}},"type":"object"},"build":{"properties":{"created_at":{"format":"dateTime","type":"string"},"deploy_id":{"type":"string"},"done":{"type":"boolean"},"error":{"type":"string"},"id":{"type":"string"},"sha":{"type":"string"}},"type":"object"},"buildHook":{"properties":{"branch":{"type":"string"},"created_at":{"format":"dateTime","type":"string"},"id":{"type":"string"},"site_id":{"type":"string"},"title":{"type":"string"},"url":{"type":"string"}},"type":"object"},"buildHookSetup":{"properties":{"branch":{"type":"string"},"title":{"type":"string"}},"type":"object"},"buildLogMsg":{"properties":{"error":{"type":"boolean"},"message":{"type":"string"},"section":{"enum":["initializing","building","deploying","cleanup","postprocessing"],"type":"string"}},"type":"object"},"buildSetup":{"properties":{"clear_cache":{"type":"boolean"},"image":{"type":"string"}},"type":"object"},"buildStatus":{"properties":{"active":{"type":"integer"},"build_count":{"type":"integer"},"enqueued":{"type":"integer"},"minutes":{"properties":{"current":{"type":"integer"},"current_average_sec":{"type":"integer"},"included_minutes":{"type":"string"},"included_minutes_with_packs":{"type":"string"},"last_updated_at":{"format":"dateTime","type":"string"},"period_end_date":{"format":"dateTime","type":"string"},"period_start_date":{"format":"dateTime","type":"string"},"previous":{"type":"integer"}},"type":"object"},"pending_concurrency":{"type":"integer"}},"type":"object"},"deploy":{"properties":{"admin_url":{"type":"string"},"branch":{"type":"string"},"build_id":{"type":"string"},"commit_ref":{"type":"string"},"commit_url":{"type":"string"},"context":{"type":"string"},"created_at":{"format":"dateTime","type":"string"},"deploy_ssl_url":{"type":"string"},"deploy_url":{"type":"string"},"draft":{"type":"boolean"},"error_message":{"type":"string"},"framework":{"type":"string"},"function_schedules":{"items":{"$ref":"#/components/schemas/functionSchedule"},"type":"array"},"id":{"type":"string"},"locked":{"type":"boolean"},"name":{"type":"string"},"published_at":{"format":"dateTime","type":"string"},"required":{"items":{"type":"string"},"type":"array"},"required_functions":{"items":{"type":"string"},"type":"array"},"review_id":{"type":"number"},"review_url":{"type":"string"},"screenshot_url":{"type":"string"},"site_capabilities":{"properties":{"large_media_enabled":{"type":"boolean"}},"type":"object"},"site_id":{"type":"string"},"skipped":{"type":"boolean"},"ssl_url":{"type":"string"},"state":{"type":"string"},"title":{"type":"string"},"updated_at":{"format":"dateTime","type":"string"},"url":{"type":"string"},"user_id":{"type":"string"}},"type":"object"},"deployFiles":{"properties":{"async":{"type":"boolean"},"branch":{"type":"string"},"draft":{"type":"boolean"},"files":{"type":"object"},"framework":{"type":"string"},"function_schedules":{"items":{"$ref":"#/components/schemas/functionSchedule"},"type":"array"},"functions":{"type":"object"},"functions_config":{"additionalProperties":{"$ref":"#/components/schemas/functionConfig"},"type":"object"}},"type":"object"},"deployKey":{"properties":{"created_at":{"format":"dateTime","type":"string"},"id":{"type":"string"},"public_key":{"type":"string"}},"type":"object"},"deployedBranch":{"properties":{"deploy_id":{"type":"string"},"id":{"type":"string"},"name":{"type":"string"},"slug":{"type":"string"},"ssl_url":{"type":"string"},"url":{"type":"string"}},"type":"object"},"dnsRecord":{"properties":{"dns_zone_id":{"type":"string"},"flag":{"type":"integer"},"hostname":{"type":"string"},"id":{"type":"string"},"managed":{"type":"boolean"},"priority":{"format":"int64","type":"integer"},"site_id":{"type":"string"},"tag":{"type":"string"},"ttl":{"format":"int64","type":"integer"},"type":{"type":"string"},"value":{"type":"string"}},"type":"object"},"dnsRecordCreate":{"properties":{"flag":{"format":"int64","type":"integer"},"hostname":{"type":"string"},"port":{"format":"int64","type":"integer"},"priority":{"format":"int64","type":"integer"},"tag":{"type":"string"},"ttl":{"format":"int64","type":"integer"},"type":{"type":"string"},"value":{"type":"string"},"weight":{"format":"int64","type":"integer"}},"type":"object"},"dnsRecords":{"items":{"$ref":"#/components/schemas/dnsRecord"},"type":"array"},"dnsZone":{"properties":{"account_id":{"type":"string"},"account_name":{"type":"string"},"account_slug":{"type":"string"},"created_at":{"format":"dateTime","type":"string"},"dedicated":{"type":"boolean"},"dns_servers":{"items":{"type":"string"},"type":"array"},"domain":{"type":"string"},"errors":{"items":{"type":"string"},"type":"array"},"id":{"type":"string"},"ipv6_enabled":{"type":"boolean"},"name":{"type":"string"},"records":{"items":{"$ref":"#/components/schemas/dnsRecord"},"type":"array"},"site_id":{"type":"string"},"supported_record_types":{"items":{"type":"string"},"type":"array"},"updated_at":{"format":"dateTime","type":"string"},"user_id":{"type":"string"}},"type":"object"},"dnsZoneSetup":{"properties":{"account_slug":{"type":"string"},"name":{"type":"string"},"site_id":{"type":"string"}},"type":"object"},"dnsZones":{"items":{"$ref":"#/components/schemas/dnsZone"},"type":"array"},"envVar":{"description":"Environment variable model definition","properties":{"key":{"description":"The environment variable key, like ALGOLIA_ID (case-sensitive)","type":"string","x-faker":"commerce.productName"},"scopes":{"description":"The scopes that this environment variable is set to","items":{"enum":["builds","functions","runtime","post-processing"],"type":"string"},"type":"array"},"updated_at":{"description":"The timestamp of when the value was last updated","format":"date-time","type":"string","x-faker":"date.past"},"updated_by":{"$ref":"#/components/schemas/envVarUser"},"values":{"description":"An array of Value objects containing values and metadata","items":{"$ref":"#/components/schemas/envVarValue"},"type":"array","x-faker":"internet.password"}},"type":"object"},"envVarUser":{"properties":{"avatar_url":{"description":"A URL pointing to the user's avatar","type":"string","x-faker":"internet.avatar"},"email":{"description":"The user's email address","type":"string","x-faker":"internet.email"},"full_name":{"description":"The user's full name (first and last)","type":"string","x-faker":"name.findName"},"id":{"description":"The user's unique identifier","type":"string","x-faker":"datatype.number"}},"type":"object"},"envVarValue":{"description":"Environment variable value model definition","properties":{"context":{"description":"The deploy context in which this value will be used. `dev` refers to local development when running `netlify dev`.","enum":["all","dev","branch-deploy","deploy-preview","production"],"type":"string"},"id":{"description":"The environment variable value's universally unique ID","type":"string","x-faker":"datatype.uuid"},"value":{"description":"The environment variable's unencrypted value","type":"string","x-faker":"internet.password"}},"type":"object"},"error":{"properties":{"code":{"format":"int64","type":"integer"},"message":{"type":"string","nullable":false}},"required":["message"],"type":"object"},"file":{"properties":{"id":{"type":"string"},"mime_type":{"type":"string"},"path":{"type":"string"},"sha":{"type":"string"},"size":{"format":"int64","type":"integer"}},"type":"object"},"form":{"properties":{"created_at":{"format":"dateTime","type":"string"},"fields":{"items":{"type":"object"},"type":"array"},"id":{"type":"string"},"name":{"type":"string"},"paths":{"items":{"type":"string"},"type":"array"},"site_id":{"type":"string"},"submission_count":{"format":"int32","type":"integer"}},"type":"object"},"function":{"properties":{"id":{"type":"string"},"name":{"type":"string"},"sha":{"type":"string"}},"type":"object"},"functionConfig":{"properties":{"display_name":{"type":"string"},"generator":{"type":"string"}},"type":"object"},"functionSchedule":{"properties":{"cron":{"type":"string"},"name":{"type":"string"}},"type":"object"},"hook":{"properties":{"created_at":{"format":"dateTime","type":"string"},"data":{"type":"object"},"disabled":{"type":"boolean"},"event":{"type":"string"},"id":{"type":"string"},"site_id":{"type":"string"},"type":{"type":"string"},"updated_at":{"format":"dateTime","type":"string"}},"type":"object"},"hookType":{"properties":{"events":{"items":{"type":"string"},"type":"array"},"fields":{"items":{"type":"object"},"type":"array"},"name":{"type":"string"}},"type":"object"},"member":{"properties":{"avatar":{"type":"string"},"email":{"type":"string"},"full_name":{"type":"string"},"id":{"type":"string"},"role":{"type":"string"}},"type":"object"},"metadata":{"type":"object"},"minifyOptions":{"properties":{"bundle":{"type":"boolean"},"minify":{"type":"boolean"}},"type":"object"},"paymentMethod":{"properties":{"created_at":{"format":"dateTime","type":"string"},"data":{"properties":{"card_type":{"type":"string"},"email":{"type":"string"},"last4":{"type":"string"}},"type":"object"},"id":{"type":"string"},"method_name":{"type":"string"},"state":{"type":"string"},"type":{"type":"string"},"updated_at":{"format":"dateTime","type":"string"}},"type":"object"},"plugin":{"properties":{"package":{"type":"string"},"pinned_version":{"type":"string"}},"type":"object"},"pluginParams":{"properties":{"pinned_version":{"type":"string"}},"type":"object"},"pluginRun":{"allOf":[{"$ref":"#/components/schemas/pluginRunData"},{"properties":{"deploy_id":{"type":"string"}},"type":"object"}]},"pluginRunData":{"properties":{"package":{"type":"string"},"reporting_event":{"type":"string"},"state":{"type":"string"},"summary":{"type":"string"},"text":{"type":"string"},"title":{"type":"string"},"version":{"type":"string"}},"type":"object"},"repoInfo":{"properties":{"allowed_branches":{"items":{"type":"string"},"type":"array"},"cmd":{"type":"string"},"deploy_key_id":{"type":"string"},"dir":{"type":"string"},"env":{"additionalProperties":{"type":"string"},"type":"object"},"functions_dir":{"type":"string"},"id":{"type":"integer"},"installation_id":{"type":"integer"},"private_logs":{"type":"boolean"},"provider":{"type":"string"},"public_repo":{"type":"boolean"},"repo_branch":{"type":"string"},"repo_path":{"type":"string"},"repo_url":{"type":"string"},"stop_builds":{"type":"boolean"}},"type":"object"},"service":{"properties":{"created_at":{"format":"dateTime","type":"string"},"description":{"type":"string"},"environments":{"items":{"type":"string"},"type":"array"},"events":{"items":{"type":"object"},"type":"array"},"icon":{"type":"string"},"id":{"type":"string"},"long_description":{"type":"string"},"manifest_url":{"type":"string"},"name":{"type":"string"},"service_path":{"type":"string"},"slug":{"type":"string"},"tags":{"items":{"type":"string"},"type":"array"},"updated_at":{"format":"dateTime","type":"string"}},"type":"object"},"serviceInstance":{"properties":{"auth_url":{"type":"string"},"config":{"type":"object"},"created_at":{"format":"dateTime","type":"string"},"env":{"type":"object"},"external_attributes":{"type":"object"},"id":{"type":"string"},"service_name":{"type":"string"},"service_path":{"type":"string"},"service_slug":{"type":"string"},"snippets":{"items":{"type":"object"},"type":"array"},"updated_at":{"format":"dateTime","type":"string"},"url":{"type":"string"}},"type":"object"},"site":{"properties":{"account_name":{"type":"string"},"account_slug":{"type":"string"},"admin_url":{"type":"string"},"build_image":{"type":"string"},"build_settings":{"$ref":"#/components/schemas/repoInfo"},"capabilities":{"additionalProperties":{"type":"object"},"type":"object"},"created_at":{"format":"dateTime","type":"string"},"custom_domain":{"type":"string"},"default_hooks_data":{"properties":{"access_token":{"type":"string"}},"type":"object"},"deploy_hook":{"type":"string"},"deploy_url":{"type":"string"},"domain_aliases":{"items":{"type":"string"},"type":"array"},"force_ssl":{"type":"boolean"},"git_provider":{"type":"string"},"id":{"type":"string"},"id_domain":{"type":"string"},"managed_dns":{"type":"boolean"},"name":{"type":"string"},"notification_email":{"type":"string"},"password":{"type":"string"},"plan":{"type":"string"},"prerender":{"type":"string"},"processing_settings":{"properties":{"css":{"$ref":"#/components/schemas/minifyOptions"},"html":{"properties":{"pretty_urls":{"type":"boolean"}},"type":"object"},"images":{"properties":{"optimize":{"type":"boolean"}},"type":"object"},"js":{"$ref":"#/components/schemas/minifyOptions"},"skip":{"type":"boolean"}},"type":"object"},"published_deploy":{"$ref":"#/components/schemas/deploy"},"screenshot_url":{"type":"string"},"session_id":{"type":"string"},"ssl":{"type":"boolean"},"ssl_url":{"type":"string"},"state":{"type":"string"},"updated_at":{"format":"dateTime","type":"string"},"url":{"type":"string"},"user_id":{"type":"string"}},"type":"object"},"siteSetup":{"allOf":[{"$ref":"#/components/schemas/site"},{"properties":{"repo":{"$ref":"#/components/schemas/repoInfo"}}}]},"sniCertificate":{"properties":{"created_at":{"format":"dateTime","type":"string"},"domains":{"items":{"type":"string"},"type":"array"},"expires_at":{"format":"dateTime","type":"string"},"state":{"type":"string"},"updated_at":{"format":"dateTime","type":"string"}},"type":"object"},"snippet":{"properties":{"general":{"type":"string"},"general_position":{"type":"string"},"goal":{"type":"string"},"goal_position":{"type":"string"},"id":{"format":"int32","type":"integer"},"site_id":{"type":"string"},"title":{"type":"string"}},"type":"object"},"splitTest":{"properties":{"active":{"type":"boolean"},"branches":{"items":{"type":"object"},"type":"array"},"created_at":{"format":"dateTime","type":"string"},"id":{"type":"string"},"name":{"type":"string"},"path":{"type":"string"},"site_id":{"type":"string"},"unpublished_at":{"format":"dateTime","type":"string"},"updated_at":{"format":"dateTime","type":"string"}},"type":"object"},"splitTestSetup":{"properties":{"branch_tests":{"type":"object"}},"type":"object"},"splitTests":{"items":{"$ref":"#/components/schemas/splitTest"},"type":"array"},"submission":{"properties":{"body":{"type":"string"},"company":{"type":"string"},"created_at":{"format":"dateTime","type":"string"},"data":{"type":"object"},"email":{"type":"string"},"first_name":{"type":"string"},"id":{"type":"string"},"last_name":{"type":"string"},"name":{"type":"string"},"number":{"format":"int32","type":"integer"},"site_url":{"type":"string"},"summary":{"type":"string"}},"type":"object"},"ticket":{"properties":{"authorized":{"type":"boolean"},"client_id":{"type":"string"},"created_at":{"format":"dateTime","type":"string"},"id":{"type":"string"}},"type":"object"},"user":{"properties":{"affiliate_id":{"type":"string"},"avatar_url":{"type":"string"},"created_at":{"format":"dateTime","type":"string"},"email":{"type":"string"},"full_name":{"type":"string"},"id":{"type":"string"},"last_login":{"format":"dateTime","type":"string"},"login_providers":{"items":{"type":"string"},"type":"array"},"onboarding_progress":{"properties":{"slides":{"type":"string"}},"type":"object"},"site_count":{"format":"int64","type":"integer"},"uid":{"type":"string"}},"type":"object"}}}}