Apply the upgrade after a person approved the preview; it can be undone
post/hosting/sites/{id}/design-library/upgrades/{entry}/apply
Before you call
- Credential
Authorization: Bearer $KEY- Scope
hosting:write- Graphql
Mutation.hostingLibraryUpgradeApply- Sdk
hosting.libraryUpgrade.apply- Cli
hosting library upgrade apply
Parameters
- idstring (uuid)requiredIn the path
- entrystringrequiredIn the path
Request bodyapplication/json, required
- tostringPattern: ^[a-z][a-z0-9-]{2,60}$.
- modestringOne of: light, dark.
- pageIdstring (uuid)
- approveboolean
Responses
- 200application/jsonSuccess
- 400application/jsonThe request was malformed
- errorstringrequired
- messagestring
- 401application/jsonNo valid credential
- errorstringrequired
- messagestring
- 403application/jsonThe credential lacks the scope, origin or address
- errorstringrequired
- messagestring
- 429application/jsonOver the key's rate limit; see Retry-After
- errorstringrequired
- messagestring