Set an ECO's target units
PUT
/ecos/{id}/serial-targets
const url = 'https://app.dev.buildtrace.eu/api/ecos/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/serial-targets';const options = { method: 'PUT', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"serialIds":["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 PUT \ --url https://app.dev.buildtrace.eu/api/ecos/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/serial-targets \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "serialIds": [ "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0" ] }'Required scope: service: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
serialIds
required
Array<string>
Example generated
{ "serialIds": [ "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0" ]}Responses
Section titled “Responses”No Content
Bad request
Media typeapplication/json
object
error
required
string
Example generated
{ "error": "example"}Unauthorized
Not found
The ECO is cancelled or superseded, or applies to future builds only
Media typeapplication/json
object
error
required
string
Example generated
{ "error": "example"}