Implementations API
Manage link implementations
Create Implementation
Create a new implementation:
POST /api/projects/{projectId}/implementations
Request Body:
{
"suggestionIds": ["sugg_123", "sugg_456"],
"platform": "custom"
}
Response:
{
"data": {
"id": "impl_123",
"suggestionIds": ["sugg_123", "sugg_456"],
"status": "pending",
"createdAt": "2024-01-01T00:00:00Z"
}
}
List Implementations
List all implementations:
GET /api/projects/{projectId}/implementations
Query Parameters:
status- Filter by statuslimit- Number of results (default: 50)offset- Pagination offset (default: 0)
Get Implementation
Get a specific implementation:
GET /api/projects/{projectId}/implementations/{implementationId}
Response:
{
"data": {
"id": "impl_123",
"suggestionIds": ["sugg_123"],
"status": "completed",
"implementedAt": "2024-01-01T00:00:00Z",
"summary": {
"succeeded": 1,
"failed": 0
}
}
}
Rollback Implementation
Rollback an implementation:
POST /api/projects/{projectId}/implementations/{implementationId}/rollback
Request Body:
{
"reason": "Incorrect placement"
}