{"_id":"56a99013257fbc0d00d47633","parentDoc":null,"editedParams2":true,"editedParams":true,"githubsync":"","user":"567f0baca74a1c0d003e1fba","__v":7,"project":"567f0c06143cc60d00c1fdbe","version":{"_id":"567f0c06143cc60d00c1fdc1","__v":9,"project":"567f0c06143cc60d00c1fdbe","createdAt":"2015-12-26T21:52:06.734Z","releaseDate":"2015-12-26T21:52:06.734Z","categories":["567f0c07143cc60d00c1fdc2","56a9783109cb9c0d00f0c7d3","56a97837f834950d0037b363","56a9783b2d8fd90d0036eed6","56a979912d8fd90d0036eed8","5834b5691a80690f00d31faf","5834b5e4f775120f00c45f9d","5bf1a1473031e4005075ae14","5c64c200244bda003204b97f"],"is_deprecated":false,"is_hidden":false,"is_beta":false,"is_stable":true,"codename":"","version_clean":"1.0.0","version":"1"},"category":{"_id":"56a97837f834950d0037b363","__v":8,"pages":["56a98ff62d8fd90d0036eee9","56a98ffc1801ac0d00881b8b","56a99013257fbc0d00d47633","56a99029257fbc0d00d47635","56a990541801ac0d00881b8e","56a99094f834950d0037b37e","56a9923e13a69a0d00a778dc","56a9a7161801ac0d00881ba5"],"project":"567f0c06143cc60d00c1fdbe","version":"567f0c06143cc60d00c1fdc1","sync":{"url":"","isSync":false},"reference":false,"createdAt":"2016-01-28T02:08:55.258Z","from_sync":false,"order":2,"slug":"variations","title":"Variations"},"updates":[],"next":{"pages":[],"description":""},"createdAt":"2016-01-28T03:50:43.681Z","link_external":false,"link_url":"","sync_unique":"","hidden":false,"api":{"method":"post","results":{"codes":[{"language":"json","status":200,"name":"","code":"{  \n   \"product_identifier\": \"6631A\",\n   \"identifier\": \"6631A-BLACK\",\n   \"internal_id\": 26086769,\n   \"size\": null,\n   \"color\": \"Black\",\n   \"quantity\": 100,\n   \"created_at\": \"2018-04-03T22:58:41-07:00\",\n   \"disabled_at\": null,\n   \"deleted_at\": null\n}"}]},"settings":"","examples":{"codes":[{"code":"curl -X POST https://tophatter.com/merchant_api/v1/variations/update.json \\\n-d 'access_token=YOUR_ACCESS_TOKEN' \\\n-d 'identifier=6631A-BLACK' \\\n-d 'quantity=100'","language":"curl"}]},"auth":"required","params":[{"_id":"576b27d142bf703200c597df","ref":"","in":"body","required":true,"desc":"The unique identifier or SKU that your system uses to recognize this product variation.","default":"","type":"string","name":"identifier"},{"_id":"576b27d142bf703200c597de","ref":"","in":"body","required":true,"desc":"The quantity available to sell for this variation.","default":"","type":"int","name":"quantity"}],"url":"/variations/update.json"},"isReference":false,"order":3,"body":"","excerpt":"","slug":"variation-update","type":"endpoint","title":"Update a Variation"}