Delete a part
DELETE
/parts/{id}
const url = 'https://app.buildtrace.eu/api/parts/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0';const options = {method: 'DELETE', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request DELETE \ --url https://app.buildtrace.eu/api/parts/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0 \ --header 'Authorization: Bearer <token>'Delete a part. Allowed only while the part is not yet in use: not referenced by any BOM line, alternate, or ECO, with no BOM content of its own, and nothing built against it (units/stock). The auto-created initial revision is removed with it. Returns 409 once the part is in use.
Required scope: parts:write.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”id
required
string format: uuid
Responses
Section titled “Responses”Deleted
Unauthorized
Not found
The part is in use (the message names where) and can’t be deleted; deprecate it instead
Media typeapplication/json
object
error
required
string
Example generated
{ "error": "example"}