Returns a single Menu. See api docs.
Required token: Bearer token
Success response schema: Success schema
Failure response schema: Error schema
Example:
const response = await client.menus.show({
bearer_token: '7381273269536713689562374856',
id: '2'
})
Creates a new Menu 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.menus.create({
bearer_token: '7381273269536713689562374856',
})
Update selected Menu. See api docs.
Required token: Bearer token
Success response schema: Success schema
Failure response schema: Error schema
Example:
const response = await client.menus.update({
bearer_token: '7381273269536713689562374856',
id: '1',
menu: {
name: 'Main Menu',
location: 'header',
locale: 'en-US'
}
})
This endpoint removes the specified Menu. See api docs.
Required token: Bearer token
Success response schema: Success schema
Failure response schema: Error schema
Example:
const response = await client.menus.remove({
bearer_token: '7381273269536713689562374856',
id: '1'
})
Protected
spreeOptional
tokens: ITokenOptional
params: anyOptional
responseParsing: ResponseParsingProtected
classifyProtected
processProtected
processProtected
spreeGenerated using TypeDoc
Returns a list of Menus. See api docs.
Required token: Bearer token
Success response schema: Success schema
Failure response schema: Error schema
Example: