Create Project from Template
POST /tm/api/v1/projects/create/from-template
Operation id: createProjectFromTemplate
Description
Create projects using a template.
Security
- ApiKeyAuth (apiKey)
- API key passed in the
apikeyrequest header.
- API key passed in the
Responses
200 — Success
Content type: application/json
400 — Error
Content type: application/json
Request body
Required: Yes
multipart/form-data
Schema
| Property | Type | Required | Description |
|---|---|---|---|
templateId | string | Yes | Template Id |
projectTitle | string | No | Project name |
projType | string | No | Project type Id |
startDate | string (date) | Yes | Project start date |
endDate | string (date) | Yes | Project end date |
unitId | string | Yes | Comma separated list of units for distribution |
userId | string | Yes | Creator user id |
assignDept | string | Yes | Assign to Dept |
assignTo | string | Yes | Assign to Profile |
execLevel | string | No | Project execution level |
additionalInfo | string | No | Additional info |
projNotes | string | No | Project notes |
priority | string | No | Project priority |
{
"type": "object",
"required": [
"templateId",
"startDate",
"endDate",
"unitId",
"userId",
"assignDept",
"assignTo"
],
"properties": {
"templateId": {
"type": "string",
"description": "Template Id"
},
"projectTitle": {
"type": "string",
"description": "Project name"
},
"projType": {
"type": "string",
"description": "Project type Id"
},
"startDate": {
"type": "string",
"format": "date",
"description": "Project start date",
"example": "Date in System Date Format"
},
"endDate": {
"type": "string",
"format": "date",
"description": "Project end date",
"example": "Date in System Date Format"
},
"unitId": {
"type": "string",
"description": "Comma separated list of units for distribution"
},
"userId": {
"type": "string",
"description": "Creator user id"
},
"assignDept": {
"type": "string",
"description": "Assign to Dept"
},
"assignTo": {
"type": "string",
"description": "Assign to Profile"
},
"execLevel": {
"type": "string",
"description": "Project execution level"
},
"additionalInfo": {
"type": "string",
"description": "Additional info"
},
"projNotes": {
"type": "string",
"description": "Project notes"
},
"priority": {
"type": "string",
"description": "Project priority"
}
}
}
Response models
200 — Success
Content type: application/json
Schema
| Property | Type | Required | Description |
|---|---|---|---|
status | string | No | |
data | object | No | |
message | string | No |
{
"type": "object",
"properties": {
"status": {
"type": "string",
"example": "SUCCESS"
},
"data": {
"type": "object",
"properties": {
"projectId": {
"type": "string",
"example": "12345"
},
"assignedTo": {
"type": "string",
"example": "SM"
},
"projectTitle": {
"type": "string",
"example": "Floor security: Use of safety equipment"
}
}
},
"message": {
"type": "string",
"example": "4011215 - Project successfully submitted to queue."
}
}
}
Example:
{
"status": "SUCCESS",
"data": {
"projectId": "12345",
"assignedTo": "SM",
"projectTitle": "Floor security: Use of safety equipment"
},
"message": "4011215 - Project successfully submitted to queue."
}
400 — Error
Content type: application/json
Schema
| Property | Type | Required | Description |
|---|---|---|---|
status | string | No | |
error | array | No |
{
"type": "object",
"properties": {
"status": {
"type": "string",
"example": "ERROR"
},
"error": {
"type": "array",
"items": {
"type": "object",
"properties": {
"code": {
"type": "string"
},
"message": {
"type": "string"
}
}
}
}
}
}
Example:
{
"status": "ERROR",
"error": [
{
"code": "835",
"message": "Invalid Input Parameters"
}
]
}