Apply an entry to the site
post/hosting/sites/{id}/design-library/apply
Apply an entry to the site. Needs a person with manager rights and approve: true; an assistant gets the preview and a request for approval (202). The site pins the version used and the change can be undone.
Before you call
- Credential
Authorization: Bearer $KEY- Scope
hosting:write- Graphql
Mutation.hostingLibraryApplyApply- Sdk
hosting.libraryApply.apply- Cli
hosting library apply apply
Parameters
- idstring (uuid)requiredIn the path
Request bodyapplication/json, required
- entryIdstringrequiredPattern: ^[a-z][a-z0-9-]{2,60}$.
- versionstringPattern: ^\d+.\d+.\d+$.
- modestringOne of: light, dark.
- partslist of string
- pageIdstring (uuid)
- positionstring or integer
- briefKeystringAt most 200 characters.
- 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