acknowledgeBuildOrderECO
POST
/build-orders/{id}/acknowledge-eco
const url = 'https://app.dev.buildtrace.eu/api/build-orders/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/acknowledge-eco';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"ecoId":"2489E9AD-2EE2-8E00-8EC9-32D5F69181C0"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://app.dev.buildtrace.eu/api/build-orders/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/acknowledge-eco \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "ecoId": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0" }'Required scope: production:write.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”id
required
string format: uuid
Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
ecoId
required
string format: uuid
Example generated
{ "ecoId": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0"}Responses
Section titled “Responses”OK
Media typeapplication/json
object
id
required
string format: uuid
orderNumber
required
The order’s number within the organization, e.g. BO-0001
string
assemblyRevisionId
required
string format: uuid
targetQty
required
integer
consumeFromLocationId
string format: uuid
produceToLocationId
string format: uuid
status
required
string
version
required
integer
partCode
Code of the assembly’s part (read-only; populated by list/detail reads).
string
partName
Name of the assembly’s part (read-only; populated by list/detail reads).
string
revisionLabel
Label of the assembly revision (read-only; populated by list/detail reads).
string
consumeFromLocationCode
Code of the consume-from location (read-only; populated by list/detail reads).
string
consumeFromLocationName
Name of the consume-from location (read-only; populated by list/detail reads).
string
produceToLocationCode
Code of the produce-to location (read-only; populated by list/detail reads).
string
produceToLocationName
Name of the produce-to location (read-only; populated by list/detail reads).
string
Example generated
{ "id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "orderNumber": "example", "assemblyRevisionId": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "targetQty": 1, "consumeFromLocationId": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "produceToLocationId": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "status": "example", "version": 1, "partCode": "example", "partName": "example", "revisionLabel": "example", "consumeFromLocationCode": "example", "consumeFromLocationName": "example", "produceToLocationCode": "example", "produceToLocationName": "example"}Unauthorized
Not found
The ECO exists but the order doesn’t list it (cancelled or removed meanwhile)
Media typeapplication/json
object
error
required
string
Example generated
{ "error": "example"}