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

Update a bundle chapter product

Repoints an existing association at a different chapter, a different product, or both. Send both fields as identifiers.

The same rules as on create apply: product must be a Miscellaneous (4) product, and the resulting bundle_chapter / product pair must not duplicate another association.

This is the only supported way to change an association — PATCH cannot be used for it. The response uses the flat representation.

put
/bundle_chapter_products/{id}/
Authorizations
AuthorizationstringRequired

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

Path parameters
idintegerRequired

The unique identifier of the bundle chapter product association.

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
200

The updated bundle chapter product.

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.

put/bundle_chapter_products/{id}/
PUT /api/v1/remote/1/bundle_chapter_products/{id}/ 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?