Returns a single CMS Section by its ID. See api docs.
Success response schema: Success schema
Failure response schema: Error schema
Example:
const response = await client.sections.show({
bearer_token: '7381273269536713689562374856'
id: '1'
})
Creates a new CMS Section and returns its attributes. See api docs.
Required token: Bearer token
Success response schema: Success schema
Failure response schema: Error schema
Example:
const response = await client.sections.create({
bearer_token: '7381273269536713689562374856',
cms_page: {
name: 'string',
cms_page_id: 'string',
type: 'Spree::Cms::Sections::HeroImage',
linked_resource_type: 'Spree::Taxon',
linked_resource_id: '1',
fit: 'Screen',
position: 2,
gutters: 'No Gutters',
button_text: 'Click Here',
title: 'Shop Today'
}
})
Update selected CMS Section for the signed in User. See api docs.
Required token: Bearer token
Success response schema: Success schema
Failure response schema: Error schema
Example:
const response = await client.sections.update({
bearer_token: '7381273269536713689562374856',
id: '1',
cms_page: {
name: 'string',
type: 'Spree::Cms::Sections::ProductCarousel',
linked_resource_type: 'Spree::Taxon',
linked_resource_id: '1',
fit: 'Screen',
position: 2,
gutters: 'No Gutters',
button_text: 'Click Here',
title: 'Shop Today'
}
})
This endpoint removes the specified CMS Section for the current user. See api docs.
Required token: Bearer token
Success response schema: Success schema
Failure response schema: Error schema
Example:
const response = await client.sections.remove({
bearer_token: '7381273269536713689562374856',
id: '1'
})
Protected
spreeOptional
tokens: ITokenOptional
params: anyOptional
responseParsing: ResponseParsingProtected
classifyProtected
processProtected
processProtected
spreeGenerated using TypeDoc
Returns a list of all CMS Sections. See api docs.
Success response schema: Success schema
Failure response schema: Error schema
Example: