Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

Add a product to a bundle chapter

Adds a miscellaneous product to a bundle chapter's selectable options.

product must reference a Miscellaneous (4) product, and the bundle_chapter / product pair must not already exist — adding the same product twice fails with a validation error instead of returning the existing association. See the Validation Rules in the Bundle Chapter Products section.

The response uses the flat representation: bundle_chapter and product are returned as identifiers, not as nested objects.

post
/bundle_chapter_products/
Authorizations
AuthorizationstringRequired

Token credential sent in the Authorization header, in the form: Token <your-token>. Requires a staff (admin) account.

Body

The payload for creating an association or repointing an existing one. Both sides are sent as identifiers.

bundle_chapterintegerRequired

The identifier of the bundle chapter the product is offered in.

productintegerRequired

The identifier of the product to offer. Must reference a product whose product_type is Miscellaneous (4); any other product type is rejected as an invalid identifier. The bundle_chapter / product pair must be unique.

Responses
201

The product was added to the chapter.

application/json

The flat representation of a chapter–product association, with both sides given as identifiers. Returned by create and update.

pkintegerRead-onlyOptional

The unique identifier of the association.

bundle_chapterintegerOptional

The identifier of the bundle chapter.

productintegerOptional

The identifier of the associated miscellaneous product.

post/bundle_chapter_products/
POST /api/v1/remote/1/bundle_chapter_products/ HTTP/1.1
Host: sandbox.akinon.com
Authorization: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 32

{
  "bundle_chapter": 1,
  "product": 1
}
{
  "pk": 1,
  "bundle_chapter": 1,
  "product": 1
}

Last updated

Was this helpful?