POST /task-go/v1/workspaces/{workspaceId}/groups
Request Headers
Header |
Value |
Authorization |
Bearer <JWT>
|
Parameter |
Type |
Description |
workspaceId |
string |
UUID of the workspace |
{
"name": "Development Team",
"description": "Handles all development tasks"
}
{
"message": "Group created successfully."
}
{
"error": "Invalid input format."
}
{
"error": "Unauthorized. Token missing or invalid."
}
{
"error": "Workspace not found."
}
PATCH /task-go/v1/workspaces/groups/{groupId}
Request Headers
Header |
Value |
Authorization |
Bearer <JWT>
|
Parameter |
Type |
Description |
groupId |
string |
UUID of the group |
{
"name": "Updated Group Name",
"description": "Updated description."
}
All fields are optional.
{
"message": "Group updated successfully."
}
{
"error": "Invalid input format."
}
{
"error": "Unauthorized. Token missing or invalid."
}
{
"error": "Group not found."
}
DELETE /task-go/v1/workspaces/groups/{groupId}
Request Headers
Header |
Value |
Authorization |
Bearer <JWT>
|
Parameter |
Type |
Description |
groupId |
string |
UUID of the group |
{
"message": "Group deleted successfully."
}
{
"error": "Unauthorized. Token missing or invalid."
}
{
"error": "Group not found in workspace."
}
GET /task-go/v1/workspaces/groups/{groupId}
Request Headers
Header |
Value |
Authorization |
Bearer <JWT>
|
Parameter |
Type |
Description |
groupId |
string |
UUID of the group |
{
"id": "group-uuid",
"name": "Development Team",
"color": "#123456",
"description": "Handles all development tasks",
"tasks": [
{
"id": "task-uuid",
"name": "Setup project",
"description": "Initialize Git repo and base structure",
"status": "NOT_STARTED",
"priority": "HIGH",
"isFavorite": false,
"startingTimestamp": "2025-05-01T10:00:00",
"endingTimestamp": "2025-05-02T18:00:00",
"assignedTo": {
"id": "user-uuid",
"username": "najat-mansour",
"firstName": "Najat",
"lastName": "Mansour",
"email": "[email protected]",
"birthdate": "2003-01-28",
"gender": "FEMALE",
"address": {
"country": "Palestine",
"city": "Nablus",
"town": "",
"street": ""
},
"createdAt": "2025-05-02T18:00:00",
"app_rate": 5
},
"subtasks": [
{
"id": "subtask-uuid",
"name": "Create GitHub repo",
"description": "Set up the GitHub repository",
"status": "NOT_STARTED",
"priority": "MEDIUM",
"startingTimestamp": "2025-05-01T11:00:00",
"endingTimestamp": "2025-05-01T12:00:00"
}
]
}
]
}
{
"error": "Unauthorized. Token missing or invalid."
}
{
"error": "Group not found in workspace."
}