Projects can depend on other projects, allowing you to share components and content types across projects. This page covers all dependency management operations.
List Dependencies
GET /v1/organizations//projects//dependencies
Path Parameters
Response
{
"data" : [
{
"projectId" : "proj456" ,
"name" : "UI Components" ,
"version" : "2.0.0"
}
]
}
Add Dependency
POST /v1/organizations//projects//dependencies
Request Body
ID of the project to depend on
Semantic version of the dependency (e.g., “2.0.0”)
Example Request
{
"projectId" : "proj456" ,
"version" : "2.0.0"
}
Response
Returns the updated Project object with the new dependency added.
Error Responses
Dependency Not Found
{
"error" : {
"code" : "DEPENDENCY_NOT_FOUND" ,
"message" : "Dependent project not found" ,
"details" : {
"projectId" : "proj456"
}
}
}
Version Not Found
{
"error" : {
"code" : "VERSION_NOT_FOUND" ,
"message" : "Specified version does not exist" ,
"details" : {
"projectId" : "proj456" ,
"version" : "2.0.0"
}
}
}
Circular Dependency
{
"error" : {
"code" : "CIRCULAR_DEPENDENCY" ,
"message" : "Adding this dependency would create a circular reference" ,
"details" : {
"path" : [ "proj123" , "proj456" , "proj123" ]
}
}
}
Remove Dependency
DELETE /v1/organizations//projects//dependencies/
Path Parameters
ID of the dependent project to remove
Response
Returns the updated Project object with the dependency removed.
Code Examples
cURL - List
cURL - Add
cURL - Remove
JavaScript
curl -X GET "https://api.metabind.ai/v1/organizations/org123/projects/proj123/dependencies" \
-H "Authorization: Bearer YOUR_API_KEY"