Replace passport EUDR plots
curl --request PUT \
--url https://api.insightchain.ai/v1/passports/{id}/eudr_plots \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"plots": [
{
"external_id": "PLOT-1",
"producer_country": "BR",
"commodity": "rubber",
"geometry": {
"type": "Point",
"coordinates": [
-51.2,
-10.4
]
},
"area_ha": 3.2,
"description": "Smallholder plot, block A"
}
]
}
'import requests
url = "https://api.insightchain.ai/v1/passports/{id}/eudr_plots"
payload = { "plots": [
{
"external_id": "PLOT-1",
"producer_country": "BR",
"commodity": "rubber",
"geometry": {
"type": "Point",
"coordinates": [-51.2, -10.4]
},
"area_ha": 3.2,
"description": "Smallholder plot, block A"
}
] }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
plots: [
{
external_id: 'PLOT-1',
producer_country: 'BR',
commodity: 'rubber',
geometry: {type: 'Point', coordinates: [-51.2, -10.4]},
area_ha: 3.2,
description: 'Smallholder plot, block A'
}
]
})
};
fetch('https://api.insightchain.ai/v1/passports/{id}/eudr_plots', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"plots": [
{
"externalId": "PLOT-FARM-A",
"materialExternalId": "MAT-BODY",
"description": "Farm A",
"geometry": {
"type": "Point",
"coordinates": [
11.25,
43.07
]
},
"areaHa": 2.5,
"producerCountry": "IT",
"commodity": "leather"
}
],
"readiness": {
"inScope": true,
"ready": true,
"gaps": [],
"plotCount": 2,
"coveredMaterials": [
"MAT-BODY"
],
"uncoveredMaterials": []
},
"request_id": "8e1e9452-4b8c-426d-a9a9-fa293593ba15"
}{
"error": {
"type": "invalid_request_error",
"code": "<string>",
"message": "<string>",
"param": "<string>",
"doc_url": "<string>"
},
"request_id": "<string>",
"details": [
"<unknown>"
],
"limit": 123,
"code": "<string>",
"field": "<string>"
}{
"error": {
"type": "invalid_request_error",
"code": "<string>",
"message": "<string>",
"param": "<string>",
"doc_url": "<string>"
},
"request_id": "<string>",
"details": [
"<unknown>"
],
"limit": 123,
"code": "<string>",
"field": "<string>"
}{
"error": {
"type": "invalid_request_error",
"code": "<string>",
"message": "<string>",
"param": "<string>",
"doc_url": "<string>"
},
"request_id": "<string>",
"details": [
"<unknown>"
],
"limit": 123,
"code": "<string>",
"field": "<string>"
}{
"error": {
"type": "invalid_request_error",
"code": "<string>",
"message": "<string>",
"param": "<string>",
"doc_url": "<string>"
},
"request_id": "<string>",
"details": [
"<unknown>"
],
"limit": 123,
"code": "<string>",
"field": "<string>"
}{
"error": {
"type": "invalid_request_error",
"code": "<string>",
"message": "<string>",
"param": "<string>",
"doc_url": "<string>"
},
"request_id": "<string>",
"details": [
"<unknown>"
],
"limit": 123,
"code": "<string>",
"field": "<string>"
}{
"error": {
"type": "invalid_request_error",
"code": "<string>",
"message": "<string>",
"param": "<string>",
"doc_url": "<string>"
},
"request_id": "<string>",
"details": [
"<unknown>"
],
"limit": 123,
"code": "<string>",
"field": "<string>"
}{
"error": {
"type": "invalid_request_error",
"code": "<string>",
"message": "<string>",
"param": "<string>",
"doc_url": "<string>"
},
"request_id": "<string>",
"details": [
"<unknown>"
],
"limit": 123,
"code": "<string>",
"field": "<string>"
}{
"error": {
"type": "invalid_request_error",
"code": "<string>",
"message": "<string>",
"param": "<string>",
"doc_url": "<string>"
},
"request_id": "<string>",
"details": [
"<unknown>"
],
"limit": 123,
"code": "<string>",
"field": "<string>"
}{
"error": {
"type": "invalid_request_error",
"code": "<string>",
"message": "<string>",
"param": "<string>",
"doc_url": "<string>"
},
"request_id": "<string>",
"details": [
"<unknown>"
],
"limit": 123,
"code": "<string>",
"field": "<string>"
}{
"error": {
"type": "invalid_request_error",
"code": "<string>",
"message": "<string>",
"param": "<string>",
"doc_url": "<string>"
},
"request_id": "<string>",
"details": [
"<unknown>"
],
"limit": 123,
"code": "<string>",
"field": "<string>"
}{
"error": {
"type": "invalid_request_error",
"code": "<string>",
"message": "<string>",
"param": "<string>",
"doc_url": "<string>"
},
"request_id": "<string>",
"details": [
"<unknown>"
],
"limit": 123,
"code": "<string>",
"field": "<string>"
}{
"error": {
"type": "invalid_request_error",
"code": "<string>",
"message": "<string>",
"param": "<string>",
"doc_url": "<string>"
},
"request_id": "<string>",
"details": [
"<unknown>"
],
"limit": 123,
"code": "<string>",
"field": "<string>"
}Product passports
Replace passport EUDR plots
Replace EUDR plots. Plots written from confirmed origin evidence are kept.
Key scope: ingest. Module: dpp.
PUT
/
v1
/
passports
/
{id}
/
eudr_plots
Replace passport EUDR plots
curl --request PUT \
--url https://api.insightchain.ai/v1/passports/{id}/eudr_plots \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"plots": [
{
"external_id": "PLOT-1",
"producer_country": "BR",
"commodity": "rubber",
"geometry": {
"type": "Point",
"coordinates": [
-51.2,
-10.4
]
},
"area_ha": 3.2,
"description": "Smallholder plot, block A"
}
]
}
'import requests
url = "https://api.insightchain.ai/v1/passports/{id}/eudr_plots"
payload = { "plots": [
{
"external_id": "PLOT-1",
"producer_country": "BR",
"commodity": "rubber",
"geometry": {
"type": "Point",
"coordinates": [-51.2, -10.4]
},
"area_ha": 3.2,
"description": "Smallholder plot, block A"
}
] }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
plots: [
{
external_id: 'PLOT-1',
producer_country: 'BR',
commodity: 'rubber',
geometry: {type: 'Point', coordinates: [-51.2, -10.4]},
area_ha: 3.2,
description: 'Smallholder plot, block A'
}
]
})
};
fetch('https://api.insightchain.ai/v1/passports/{id}/eudr_plots', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"plots": [
{
"externalId": "PLOT-FARM-A",
"materialExternalId": "MAT-BODY",
"description": "Farm A",
"geometry": {
"type": "Point",
"coordinates": [
11.25,
43.07
]
},
"areaHa": 2.5,
"producerCountry": "IT",
"commodity": "leather"
}
],
"readiness": {
"inScope": true,
"ready": true,
"gaps": [],
"plotCount": 2,
"coveredMaterials": [
"MAT-BODY"
],
"uncoveredMaterials": []
},
"request_id": "8e1e9452-4b8c-426d-a9a9-fa293593ba15"
}{
"error": {
"type": "invalid_request_error",
"code": "<string>",
"message": "<string>",
"param": "<string>",
"doc_url": "<string>"
},
"request_id": "<string>",
"details": [
"<unknown>"
],
"limit": 123,
"code": "<string>",
"field": "<string>"
}{
"error": {
"type": "invalid_request_error",
"code": "<string>",
"message": "<string>",
"param": "<string>",
"doc_url": "<string>"
},
"request_id": "<string>",
"details": [
"<unknown>"
],
"limit": 123,
"code": "<string>",
"field": "<string>"
}{
"error": {
"type": "invalid_request_error",
"code": "<string>",
"message": "<string>",
"param": "<string>",
"doc_url": "<string>"
},
"request_id": "<string>",
"details": [
"<unknown>"
],
"limit": 123,
"code": "<string>",
"field": "<string>"
}{
"error": {
"type": "invalid_request_error",
"code": "<string>",
"message": "<string>",
"param": "<string>",
"doc_url": "<string>"
},
"request_id": "<string>",
"details": [
"<unknown>"
],
"limit": 123,
"code": "<string>",
"field": "<string>"
}{
"error": {
"type": "invalid_request_error",
"code": "<string>",
"message": "<string>",
"param": "<string>",
"doc_url": "<string>"
},
"request_id": "<string>",
"details": [
"<unknown>"
],
"limit": 123,
"code": "<string>",
"field": "<string>"
}{
"error": {
"type": "invalid_request_error",
"code": "<string>",
"message": "<string>",
"param": "<string>",
"doc_url": "<string>"
},
"request_id": "<string>",
"details": [
"<unknown>"
],
"limit": 123,
"code": "<string>",
"field": "<string>"
}{
"error": {
"type": "invalid_request_error",
"code": "<string>",
"message": "<string>",
"param": "<string>",
"doc_url": "<string>"
},
"request_id": "<string>",
"details": [
"<unknown>"
],
"limit": 123,
"code": "<string>",
"field": "<string>"
}{
"error": {
"type": "invalid_request_error",
"code": "<string>",
"message": "<string>",
"param": "<string>",
"doc_url": "<string>"
},
"request_id": "<string>",
"details": [
"<unknown>"
],
"limit": 123,
"code": "<string>",
"field": "<string>"
}{
"error": {
"type": "invalid_request_error",
"code": "<string>",
"message": "<string>",
"param": "<string>",
"doc_url": "<string>"
},
"request_id": "<string>",
"details": [
"<unknown>"
],
"limit": 123,
"code": "<string>",
"field": "<string>"
}{
"error": {
"type": "invalid_request_error",
"code": "<string>",
"message": "<string>",
"param": "<string>",
"doc_url": "<string>"
},
"request_id": "<string>",
"details": [
"<unknown>"
],
"limit": 123,
"code": "<string>",
"field": "<string>"
}{
"error": {
"type": "invalid_request_error",
"code": "<string>",
"message": "<string>",
"param": "<string>",
"doc_url": "<string>"
},
"request_id": "<string>",
"details": [
"<unknown>"
],
"limit": 123,
"code": "<string>",
"field": "<string>"
}{
"error": {
"type": "invalid_request_error",
"code": "<string>",
"message": "<string>",
"param": "<string>",
"doc_url": "<string>"
},
"request_id": "<string>",
"details": [
"<unknown>"
],
"limit": 123,
"code": "<string>",
"field": "<string>"
}Authorizations
Path Parameters
Body
application/json