Create Project
Project projects().create(ProjectCreateParamsparams, RequestOptionsrequestOptions = RequestOptions.none())
POST/api/v2/projects
Create Project
package ai.llamaindex.llamacloudadmin.example;
import ai.llamaindex.llamacloudadmin.client.LlamaCloudAdminClient;
import ai.llamaindex.llamacloudadmin.client.okhttp.LlamaCloudAdminOkHttpClient;
import ai.llamaindex.llamacloudadmin.models.projects.Project;
import ai.llamaindex.llamacloudadmin.models.projects.ProjectCreateParams;
public final class Main {
private Main() {}
public static void main(String[] args) {
LlamaCloudAdminClient client = LlamaCloudAdminOkHttpClient.fromEnv();
ProjectCreateParams params = ProjectCreateParams.builder()
.organizationId("182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e")
.name("x")
.build();
Project project = client.projects().create(params);
}
}{
"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"
}