upsertProduct
Use the SDK for application integration. This read-only reference covers Commerce, Customer Auth, Membership and Events.
All HTTP operationsTenant-editor policy with write scope. Returns the actual server Product document and projection sync staleness, never a browser catalog DTO.
bearerAuthAuthorizationBearer <token>Public integration credentials: verified opaque sk01_ secret key or pat01_ personal access token; operation policy and read/write scopes still apply. These credentials are not Customer JWTs.
application/json- body
graphRevision?stringproductId?string|numberproduct?options?array<>items <= 10variants?array<>items <= 500Actual shaped success body
application/json- response
ok*truetrueproduct*Actual authenticated Payload Product document. Relationship depth and field access vary. This is server-only legacy wire, not the canonical public DTO or a browser discovery promise.
productProjectionStale*booleanExamples may be generated from schemas; they are illustrative, not recorded successful API calls. Example snippets may omit required authentication headers.
curl -X POST 'https://api.01.software/api/products/upsert' \ -H 'Content-Type: application/json' \ -d '{}'{ "ok": true, "product": { "id": "string", "createdAt": "string", "updatedAt": "string", "slug": "string", "title": "string", "status": "string", "variants": { "docs": [ "string" ] } }, "productProjectionStale": true}