Creates a new project in the system with comprehensive details about the development project.
Endpoint: /project
Method: POST
{
"id": 1, // Optional: Custom project ID
"name": "Luxury Villa", // Required: Project's name
"description": "A beautiful villa with ocean view",// Required: Detailed description
"features": "{}", // Optional: Features and amenities (JSON)
"developer_usp": "Top-tier beachfront property", // Optional: Developer's unique selling proposition
"payment_plan": "{}", // Optional: Payment plan in JSON format
"location": "123 Ocean View St, Malibu, CA 90265", // Required: Geographical location
"status": "active", // Required: Project status
"url": "<https://projectsite.com>", // Optional: Project landing page
"ref_project": "RefProject001", // Optional: Reference to another project
"auto_populate_images": "yes", // Optional: Whether to auto-populate images (yes/no)
"agent_id": 123 // Optional: Agent claiming the project
}
Status 201 (Created):
{
"message": "Project created successfully.",
"id": 1
}
Status 400 (Bad Request):
{
"message": "Invalid input or failed to create project"
}
Status 403 (Forbidden):
{
"message": "Insufficient credits or agent does not belong to service account"
}
Status 404 (Not Found):
{
"message": "Service account or agent not found"
}
Status 409 (Conflict):
{
"message": "A project with this ID or name already exists"
}
Status 500 (Internal Server Error):
{
"message": "Something went wrong on our end"
}
Retrieves a list of all projects in the system with detailed information.
Endpoint: /project
Method: GET
page (integer): Page number for pagination (default: 1)