openapi-directory
Version:
Building & bundling https://github.com/APIs-guru/openapi-directory for easy use from JS
1 lines • 76.1 kB
JSON
{"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":{"