siteAssetRevisionCreate
Appends a brand guidelines revision when expectedRevision matches the latest revision; a mismatch returns
a revision conflict naming the current revision. Unchanged trimmed content returns the existing revision.
LOGO is rejected here. Returns an error when site assets are not enabled for the account. Requires a
logged-in session and site edit access.
siteAssetRevisionCreate(
siteId: Int!
type: SiteAssetType!
content: String!
expectedRevision: Int!
): SiteAsset
Arguments
siteAssetRevisionCreate.siteId ● Int! non-null scalar
Site ID from sites.
siteAssetRevisionCreate.type ● SiteAssetType! non-null enum
Only BRAND_GUIDELINES is accepted; use the logo mutations for LOGO.
siteAssetRevisionCreate.content ● String! non-null scalar
The complete Markdown brand guidelines document, not a patch; trimmed, nonempty, at most 50,000 characters.
siteAssetRevisionCreate.expectedRevision ● Int! non-null scalar
Current revision from siteAsset; use 0 when no asset exists. A stale value returns a revision
conflict.
Type
SiteAsset object
An append-only site asset revision returned by siteAsset, siteAssets, and siteAssetRevisions.