curl --request PUT \
--url https://api.example.com/v1/organizations/{organizationId}/projects/{id} \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"description": "<string>",
"status": "<string>",
"settings": {}
}
'Update an existing project
curl --request PUT \
--url https://api.example.com/v1/organizations/{organizationId}/projects/{id} \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"description": "<string>",
"status": "<string>",
"settings": {}
}
'active, archived, or deletedslug cannot be changed after creation to preserve URL stability.{
"description": "Updated description",
"settings": {
"cdnDomain": "new-cdn.acme.com",
"thumbnailUrl": "https://cdn.acme.com/thumbnails/new-icon.png",
"defaultPlatform": "mobile",
"supportedPlatforms": ["mobile", "desktop"]
}
}
{
"id": "proj123",
"organizationId": "org123",
"name": "Marketing Website",
"slug": "marketing-website",
"description": "Updated description",
"status": "active",
"environment": "production",
"settings": {
"defaultLocale": "en-US",
"supportedLocales": ["en-US", "es-ES"],
"defaultPlatform": "mobile",
"supportedPlatforms": ["mobile", "desktop"],
"thumbnailUrl": "https://cdn.acme.com/thumbnails/new-icon.png",
"cdnDomain": "new-cdn.acme.com"
},
"createdAt": "2024-03-20T10:00:00Z",
"updatedAt": "2024-03-22T14:00:00Z"
}
{
"error": {
"code": "NOT_FOUND",
"message": "Project not found"
}
}
curl -X PUT "https://api.metabind.ai/v1/organizations/org123/projects/proj123" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"description": "Updated description",
"settings": {
"cdnDomain": "new-cdn.acme.com"
}
}'