Create a new project
Create a new project for a user.
This endpoint:
- Creates a new project with the provided name and description
- Associates the project with the specified user_id, or the authenticated user if not provided
- The project will have access to user's preferences, episodes, and identity
- Returns the created project with all metadata
**Authentication**: Requires valid API key or JWT token
Request body
Example request
{
"description": "A project for organizing research notes and findings",
"name": "My Research Project",
"project_type": "general",
"user_id": "456e7890-e89b-12d3-a456-426614174001"
}Response
Successful Response
Example response
{
"message": "Project created successfully",
"project": {
"created_at": "2023-01-01T00:00:00Z",
"description": "A project for organizing research notes",
"name": "My Research Project",
"project_id": "123e4567-e89b-12d3-a456-426614174000",
"updated_at": "2023-01-01T00:00:00Z",
"user_email": "john@example.com",
"user_id": "456e7890-e89b-12d3-a456-426614174001",
"user_name": "John Doe"
}
}Changes
Changed in 4 of the 29 revisions of this API.27
- ▲
request property
project_typewas restricted to a list of enum valuesrequest-property-became-enum
- ▲
request property
project_typelist-of-types was narrowed by removing typesnullfrom media typeapplication/jsonrequest-property-list-of-types-narrowed
- ○
the
project_typerequest property default valuegeneralwas addedrequest-property-default-value-added
- ○
added the new
creative_designenum value to the request propertyproject_typerequest-property-enum-value-added
- ○
added the new
generalenum value to the request propertyproject_typerequest-property-enum-value-added
This revision also has 20 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ▲
- ○
added the new optional request property
project_typenew-optional-request-property
- ○
added the optional property
project/project_typeto the response with the201statusresponse-optional-property-added
- ○
- ○
added the new optional request property
user_idnew-optional-request-property
- ○
- ○
endpoint added
endpoint-added
- ○