PUT
/products/{productID}
curl \
--request PUT 'https://garden-to-yours.herokuapp.com/products/{productID}' \
--header "Authorization: Bearer $ACCESS_TOKEN" \
--header "Content-Type: application/json" \
--data '{"_id":"string","size":"string","sold":true,"type":"plant","price":0,"title":"string","images":["http://example.com"],"category":{"type":"plant","category":"string","subcategory":"string"},"description":"string","publisherId":{"_id":"string","email":"user@example.com","image":"string","lastName":"string","location":"string","password":"pa$$word","username":"string","firstName":"string","createDate":"2019-08-24","dateOfBirth":"2000-08-24T00:00:00.000Z","emailVerified":true},"publishedDate":"2019-08-24"}'
Request example
{
"_id": "string",
"size": "string",
"sold": true,
"type": "plant",
"price": 0,
"title": "string",
"images": [
"http://example.com"
],
"category": {
"type": "plant",
"category": "string",
"subcategory": "string"
},
"description": "string",
"publisherId": {
"_id": "string",
"email": "user@example.com",
"image": "string",
"lastName": "string",
"location": "string",
"password": "pa$$word",
"username": "string",
"firstName": "string",
"createDate": "2019-08-24",
"dateOfBirth": "2000-08-24T00:00:00.000Z",
"emailVerified": true
},
"publishedDate": "2019-08-24"
}