Create Simple Project
POST /tm/api/v1/projects/create/simple
Operation id: createSimpleProject
Description
Create a simple project in Task Manager.
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 |
|---|---|---|---|
messageType | string | Yes | Project Type ID |
projectTitle | string | Yes | Project Title |
startDate | string (date) | Yes | Project Start Date |
endDate | string (date) | Yes | Project End Date |
priority | string | No | Project Priority |
unitId | string | No | Comma separated Unit IDs |
listId | string | No | Comma separated Distribution List IDs |
userId | string | Yes | Creator's User ID |
assignDept | string | Yes | Project responsible department |
assignTo | string | Yes | Project responsible profile ID |
assignUser | string | No | Project assigned to specific user |
attachURL | string | No | Comma separated URLs to be attached |
file | string (binary) | No | File attachments |
projNotes | string | No | Project Notes |
execLevel | string | No | Project Execution Level |
{
"type": "object",
"required": [
"messageType",
"projectTitle",
"startDate",
"endDate",
"userId",
"assignDept",
"assignTo"
],
"properties": {
"messageType": {
"type": "string",
"description": "Project Type ID"
},
"projectTitle": {
"type": "string",
"description": "Project Title"
},
"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"
},
"priority": {
"type": "string",
"description": "Project Priority"
},
"unitId": {
"type": "string",
"description": "Comma separated Unit IDs"
},
"listId": {
"type": "string",
"description": "Comma separated Distribution List IDs"
},
"userId": {
"type": "string",
"description": "Creator's User ID"
},
"assignDept": {
"type": "string",
"description": "Project responsible department"
},
"assignTo": {
"type": "string",
"description": "Project responsible profile ID"
},
"assignUser": {
"type": "string",
"description": "Project assigned to specific user"
},
"attachURL": {
"type": "string",
"description": "Comma separated URLs to be attached"
},
"file": {
"type": "string",
"format": "binary",
"description": "File attachments"
},
"projNotes": {
"type": "string",
"description": "Project Notes"
},
"execLevel": {
"type": "string",
"description": "Project Execution Level"
}
}
}
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": "1005",
"message": "Please Provide Unit Id OR List Id"
}
]
}