POST /inventory-feed-variants/{id}/publish.json

POST /inventory-feed-variants/{id}/publish.json

Path parameters

  • id integer(int64) Required

    Numeric ID of the instance

    Minimum value is 1.

application/json

Body Required

Responses

POST /inventory-feed-variants/{id}/publish.json
curl \
 -X POST http://api.example.com/v1/inventory-feed-variants/{id}/publish.json \
 -H "Content-Type: application/json" \
 -d '{"barcode":"string","cachedCompareAtPrice":"string","cachedHandle":"string","cachedName":"string","cachedRetailPrice":"string","cachedTags":["string"],"changesPending":false,"compareAtPrice":42.0,"costPrice":42.0,"createdAt":"2023-05-04T09:42:00+00:00","description":"string","externalGroupId":"string","externalId":"string","grams":0,"handle":"string","hash":"string","id":42,"images":[],"inventoryFeedId":42,"inventoryPolicy":"track","inventoryQuantity":42,"lastFetchedAt":"2023-05-04T09:42:00+00:00","messages":{},"metaFields":{},"name":"string","options":[],"originalSku":"string","position":42,"productType":"string","requiresShipping":true,"retailPrice":42.0,"status":"pending","tags":[],"taxable":true,"uniqueOn":"none","updatedAt":"2023-05-04T09:42:00+00:00","variantId":42,"vendorName":"string","vendorSku":"string"}'
Request example
{
  "barcode": "string",
  "cachedCompareAtPrice": "string",
  "cachedHandle": "string",
  "cachedName": "string",
  "cachedRetailPrice": "string",
  "cachedTags": [
    "string"
  ],
  "changesPending": false,
  "compareAtPrice": 42.0,
  "costPrice": 42.0,
  "createdAt": "2023-05-04T09:42:00+00:00",
  "description": "string",
  "externalGroupId": "string",
  "externalId": "string",
  "grams": 0,
  "handle": "string",
  "hash": "string",
  "id": 42,
  "images": [],
  "inventoryFeedId": 42,
  "inventoryPolicy": "track",
  "inventoryQuantity": 42,
  "lastFetchedAt": "2023-05-04T09:42:00+00:00",
  "messages": {},
  "metaFields": {},
  "name": "string",
  "options": [],
  "originalSku": "string",
  "position": 42,
  "productType": "string",
  "requiresShipping": true,
  "retailPrice": 42.0,
  "status": "pending",
  "tags": [],
  "taxable": true,
  "uniqueOn": "none",
  "updatedAt": "2023-05-04T09:42:00+00:00",
  "variantId": 42,
  "vendorName": "string",
  "vendorSku": "string"
}
Response examples (200)
{
  "barcode": "string",
  "cachedCompareAtPrice": "string",
  "cachedHandle": "string",
  "cachedName": "string",
  "cachedRetailPrice": "string",
  "cachedTags": [
    "string"
  ],
  "changesPending": false,
  "compareAtPrice": 42.0,
  "costPrice": 42.0,
  "createdAt": "2023-05-04T09:42:00+00:00",
  "description": "string",
  "externalGroupId": "string",
  "externalId": "string",
  "grams": 0,
  "handle": "string",
  "hash": "string",
  "id": 42,
  "images": [],
  "inventoryFeedId": 42,
  "inventoryPolicy": "track",
  "inventoryQuantity": 42,
  "lastFetchedAt": "2023-05-04T09:42:00+00:00",
  "messages": {},
  "metaFields": {},
  "name": "string",
  "options": [],
  "originalSku": "string",
  "position": 42,
  "productType": "string",
  "requiresShipping": true,
  "retailPrice": 42.0,
  "status": "pending",
  "tags": [],
  "taxable": true,
  "uniqueOn": "none",
  "updatedAt": "2023-05-04T09:42:00+00:00",
  "variantId": 42,
  "vendorName": "string",
  "vendorSku": "string"
}