create_project
imerit_ango.sdk.SDK.
create_project(name, description)
Create a new project with the specified name and description.
Parameters
name: string
The name of the project to be created. This field is required and cannot be left empty.
Example:
'Project One'
description: string, optional, default ""
A brief description of the project.
Example:
'Vehicle Classification Project'
Returns:
output: dict
A dictionary containing the result of the operation.
Example
import os
from dotenv import load_dotenv
from imerit_ango.sdk import SDK
load_dotenv('variables.env')
api_key = os.getenv('API_KEY')
ango_sdk = SDK(api_key)
response = ango_sdk.create_project(name="Created from SDK",
description="I created this from the SDK.")
project_id = response.get("data", {}).get("project", {}).get("_id")curl -X POST "https://imeritapi.ango.ai/v2/project" \
-H "Content-Type: application/json" \
-H "apikey: $ANGO_API_KEY" \
-d '{
"description": "I created this from the SDK.",
"name": "Created from SDK"
}'Last updated