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.
Token credential sent in the Authorization header, in the form: Token <your-token>. Requires a staff (admin) account.
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 product was added to the chapter.
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.
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?

