Related Digital Product Passports (DPPs) Management
This API allows users to manage related DPPs by searching for existing DPPs and associating related files, tech cards, and characteristics with a target DPP.


1. Search DPPs
GET /related-dpps/:userId
Description: Fetches a list of DPPs related to the user based on ownership, partnerships, and linked partners.
Parameters:
- userId: The ID of the user requesting DPPs.
Response:
Status | Description |
---|---|
200 OK | Successfully fetched related DPPs. |
400 Bad Request | Missing userId parameter. |
500 Internal Server Error | An error occurred while fetching DPPs. |
Response Object:
{
"message": "DPPs fetched successfully",
"dpps": [
{
"id": "string",
"company_id": "string",
"name": "string",
"description": "string",
"type": "string",
"created_at": "string",
"updated_at": "string",
"related_dpps": ["string"]
}
],
"ok": true
}
2. Create Related DPPs
POST /related-dpps/:companyId/:dppId
Description: Creates related DPPs by associating their files and tech cards with a target DPP.
Parameters:
- companyId: The ID of the company owning the target DPP.
- dppId: The ID of the target DPP.
Request Body:
{
"relatedDppIds": ["string"]
}
Response:
Status | Description |
---|---|
200 OK | Related DPPs created successfully. |
400 Bad Request | Missing or invalid parameters: companyId , dppId , or relatedDppIds . |
404 Not Found | Target DPP not found for the provided dppId and companyId . |
500 Internal Server Error | An error occurred while creating related DPPs. |
Response Object:
{
"message": "Related DPPs created successfully",
"updatedDppId": "string",
"related_files": [
{
"id": "string",
"name": "string",
"description": "string",
"type": "string",
"path": "string",
"url": "string",
"created_at": "string",
"updated_at": "string"
}
],
"related_tech_cards": [
{
"id": "string",
"name": "string",
"description": "string",
"characteristics": [
{
"id": "string",
"characteristic": "string",
"dpp_card_id": "string"
}
]
}
],
"ok": true
}