Append a user correction for a classification
curl --request POST \
--url https://api-v2.watchcollect.com/v2/classifications/{classification_id}/corrections \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"output": {
"watches": [
{
"brand": "<string>",
"model": "<string>",
"reference": "<string>",
"year": "<string>",
"price_amount": 123,
"currency_code": "<string>",
"expected_price_usd": 123,
"full_set_status": [],
"variant": "<string>",
"dial_type": "<string>"
}
]
}
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
output: {
watches: [
{
brand: '<string>',
model: '<string>',
reference: '<string>',
year: '<string>',
price_amount: 123,
currency_code: '<string>',
expected_price_usd: 123,
full_set_status: [],
variant: '<string>',
dial_type: '<string>'
}
]
}
})
};
fetch('https://api-v2.watchcollect.com/v2/classifications/{classification_id}/corrections', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api-v2.watchcollect.com/v2/classifications/{classification_id}/corrections"
payload = { "output": { "watches": [
{
"brand": "<string>",
"model": "<string>",
"reference": "<string>",
"year": "<string>",
"price_amount": 123,
"currency_code": "<string>",
"expected_price_usd": 123,
"full_set_status": [],
"variant": "<string>",
"dial_type": "<string>"
}
] } }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"status": "accepted",
"event_ids": [
"018f06e2-4f8d-7c01-8a0d-cc6fd78f7002"
],
"request_id": "018f06e2-4f8d-7c01-8a0d-cc6fd78f7001"
}{
"error": {
"code": "invalid_payload",
"message": "event is required",
"request_id": "018f06e2-4f8d-7c01-8a0d-cc6fd78f7001"
}
}{
"error": {
"code": "invalid_payload",
"message": "event is required",
"request_id": "018f06e2-4f8d-7c01-8a0d-cc6fd78f7001"
}
}{
"error": {
"code": "invalid_payload",
"message": "event is required",
"request_id": "018f06e2-4f8d-7c01-8a0d-cc6fd78f7001"
}
}classifications
Append a user correction for a classification
POST
/
v2
/
classifications
/
{classification_id}
/
corrections
Append a user correction for a classification
curl --request POST \
--url https://api-v2.watchcollect.com/v2/classifications/{classification_id}/corrections \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"output": {
"watches": [
{
"brand": "<string>",
"model": "<string>",
"reference": "<string>",
"year": "<string>",
"price_amount": 123,
"currency_code": "<string>",
"expected_price_usd": 123,
"full_set_status": [],
"variant": "<string>",
"dial_type": "<string>"
}
]
}
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
output: {
watches: [
{
brand: '<string>',
model: '<string>',
reference: '<string>',
year: '<string>',
price_amount: 123,
currency_code: '<string>',
expected_price_usd: 123,
full_set_status: [],
variant: '<string>',
dial_type: '<string>'
}
]
}
})
};
fetch('https://api-v2.watchcollect.com/v2/classifications/{classification_id}/corrections', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api-v2.watchcollect.com/v2/classifications/{classification_id}/corrections"
payload = { "output": { "watches": [
{
"brand": "<string>",
"model": "<string>",
"reference": "<string>",
"year": "<string>",
"price_amount": 123,
"currency_code": "<string>",
"expected_price_usd": 123,
"full_set_status": [],
"variant": "<string>",
"dial_type": "<string>"
}
] } }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"status": "accepted",
"event_ids": [
"018f06e2-4f8d-7c01-8a0d-cc6fd78f7002"
],
"request_id": "018f06e2-4f8d-7c01-8a0d-cc6fd78f7001"
}{
"error": {
"code": "invalid_payload",
"message": "event is required",
"request_id": "018f06e2-4f8d-7c01-8a0d-cc6fd78f7001"
}
}{
"error": {
"code": "invalid_payload",
"message": "event is required",
"request_id": "018f06e2-4f8d-7c01-8a0d-cc6fd78f7001"
}
}{
"error": {
"code": "invalid_payload",
"message": "event is required",
"request_id": "018f06e2-4f8d-7c01-8a0d-cc6fd78f7001"
}
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
Body
application/json
Show child attributes
Show child attributes