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.
Token credential sent in the Authorization header, in the form: Token <your-token>. Requires a staff (admin) account.
The unique identifier of the bundle chapter product association.
The payload for creating an association or repointing an existing one. Both sides are sent as identifiers.
The identifier of the bundle chapter the product is offered in.
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.
The updated bundle chapter product.
The flat representation of a chapter–product association, with both sides given as identifiers. Returned by create and update.
The unique identifier of the association.
The identifier of the bundle chapter.
The identifier of the associated miscellaneous product.
The request contains invalid or missing data.
Authentication credentials were not provided or are invalid.
The authenticated user does not have administrator privileges.
The requested bundle chapter product association does not exist.
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?

