Place a library file on a product
Puts a file that is already in the library onto this product. The new record shares the source’s file rather than copying it, so nothing is uploaded and no image is reprocessed; it carries its own alt text, position and variant links from here on.
Required scope: write_products (for API-key authentication).
POST
Spree Admin SDK
Authorizations
Headers
Body
application/json
Identities the record has in external systems, keyed by system: the same { system: external_id } map the Admin API renders, so what you read can be sent straight back. Systems you do not name keep the reference they have. A list of { system, external_id } entries is accepted too.
Response
201 - application/json
file placed
Spree Admin SDK

