Returns a single Classification. See api docs.
Required token: Bearer token
Success response schema: Success schema
Failure response schema: Error schema
Example:
const response = await client.classifications.show({
bearer_token: '7381273269536713689562374856',
id: '1'
})
Creates a new Classification 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.classifications.create({
bearer_token: '7381273269536713689562374856',
classification: {
product_id: '1',
taxon_id: '1',
position: 1
}
})
Update selected Classification 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.classifications.update({
bearer_token: '7381273269536713689562374856',
id: '1',
classification: {
position: 1,
created_at: '2022-11-08T19:33:59.135Z',
updated_at: '2022-11-08T19:33:59.135Z'
}
})
This endpoint removes the specified Classification 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.classifications.remove({
bearer_token: '7381273269536713689562374856',
id: '1'
})
Protected
spreeOptional
tokens: ITokenOptional
params: anyOptional
responseParsing: ResponseParsingProtected
classifyProtected
processProtected
processProtected
spreeGenerated using TypeDoc
Returns a list of Classifications. See api docs.
Required token: Bearer token
Success response schema: Success schema
Failure response schema: Error schema
Example: