Create Project
client.projects.create(ProjectCreateParams { organization_id, name } params, RequestOptionsoptions?): Project { id, name, organization_id, 3 more }
POST/api/v2/projects
Create Project
import LlamaCloudAdmin from '@llamaindex/llama-cloud-admin';
const client = new LlamaCloudAdmin({
apiKey: process.env['LLAMA_CLOUD_API_KEY'], // This is the default and can be omitted
});
const project = await client.projects.create({
organization_id: '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
name: 'x',
});
console.log(project.id);{
"id": "id",
"name": "name",
"organization_id": "organization_id",
"created_at": "2019-12-27T18:11:19.117Z",
"is_default": true,
"updated_at": "2019-12-27T18:11:19.117Z"
}Returns Examples
{
"id": "id",
"name": "name",
"organization_id": "organization_id",
"created_at": "2019-12-27T18:11:19.117Z",
"is_default": true,
"updated_at": "2019-12-27T18:11:19.117Z"
}