Create project
Creates a new project.
/ v1 / projects
Authorization
Body
application/json
- dueDateISO 8601 date
ISO 8601 Due date on the project, like 2024-03-12T10:52:55.714-06:00.
-
The name of the project.
-
The workspace to which the project belongs.
- descriptionstring
The description of the project. HTML input accepted.
- labelsarray<string>
The list of labels by name the project should have.
- prioritystring = MEDIUM
Defaults to MEDIUM. Options are ASAP, HIGH, MEDIUM, and LOW.
- projectDefinitionIdstring
Optional ID of the project definition (template) to use. If provided, the
stages
array must also be included. - stagesarray<object>
Optional array of stage objects, required if
projectDefinitionId
is provided. Each object defines a stage in the project, including its definition ID, due date, and optionally, values for variables defined in that stage (e.g., assigning users to roles for that specific stage). Stages must match the order and number defined in the project definition. Note: Providing the wrong number of stages results in a 400 error with the message:The number of stages in the project does not match the number of stages in the definition. Expected stages: [...]
.-
ID of the stage definition.
-
Due date for this stage.
- variableInstancesarray<object>
Optional array to assign values to variables specific to this stage. Each object requires
variableName
andvalue
. Example:{ variableName: "Tech Lead", value: "usr_123abc" }
.-
Name of the variable definition (e.g., the "role" name being assigned). If an invalid name is provided, a 400 error is returned with a message indicating the valid variable names for this stage:
Variable name "[invalid name]" not found for stage definition ID "[stage def ID]". Valid names are: [[valid names list]]
. -
The value for the variable (e.g., the user ID if the variable type is "person").
-
-
Response
200 - application/json - object
-
The ID of the project.
-
The name of the project.
-
The HTML contents of the description.
-
The ID of the workspace.
-
The status of the project.
- namestring
The name of the status.
- isDefaultStatusboolean
Whether this status is a default status for the workspace.
- isResolvedStatusboolean
Whether this is a resolved (terminated) status for the workspace.
-