{- "code": 400,
- "message": "Bad request - Invalid input data",
- "details": [
- {
- "field": "email",
- "reason": "Invalid email format",
- "description": "The email must be a valid email address"
}, - {
- "field": "password",
- "reason": "Length below minimum",
- "description": "Password must be at least 8 characters long"
}
]
}Authenticates the user and returns a JWT pair.
| login required | string |
| password required | string |
{- "login": "yukhno",
- "password": "asdf"
}{- "accessToken": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...",
- "refreshToken": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...",
- "session": "f9648812-d9e9-40ee-b4eb-3d9f6d827dce",
- "user": {
- "login": "yukhno",
- "id": "683df9ae-af26-4082-a6ee-28a6dc188ca9",
- "isActivated": false,
- "name": "Yevhen Yukhno"
}
}Returns user data if access token is valid.
{- "accessToken": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...",
- "refreshToken": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...",
- "session": "f9648812-d9e9-40ee-b4eb-3d9f6d827dce",
- "user": {
- "login": "yukhno",
- "id": "683df9ae-af26-4082-a6ee-28a6dc188ca9",
- "isActivated": false,
- "name": "Yevhen Yukhno"
}
}{- "accessToken": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...",
- "refreshToken": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...",
- "session": "f9648812-d9e9-40ee-b4eb-3d9f6d827dce",
- "user": {
- "login": "yukhno",
- "id": "683df9ae-af26-4082-a6ee-28a6dc188ca9",
- "isActivated": false,
- "name": "Yevhen Yukhno"
}
}Every user can have multiple calendars linked to a master calendar in UBS.
[- {
- "calendar_id": "affe63c4-8f9d-4ebc-b5e8-4c7af2a7991e",
- "user_id": "683df9ae-af26-4082-a6ee-28a6dc188ca9",
- "calendar_type_id": 1,
- "calendar_properties": {
- "name": "UBS Master Calendar"
}
}, - {
- "calendar_id": "bbe79a5e-09c2-4a60-b0b7-8f2b2e01c202",
- "user_id": "683df9ae-af26-4082-a6ee-28a6dc188ca9",
- "calendar_type_id": 2,
- "calendar_properties": {
- "name": "Personal Calendar"
}
}
]{- "calendar_id": "c828ce68-4c5a-4491-b76a-af3d888d3f97",
- "user_id": "a169451c-8525-4352-b8ca-070dd449a1a5",
- "calendar_type_id": 0,
- "calendar_properties": {
- "name": "string"
}
}{- "calendar_id": "c828ce68-4c5a-4491-b76a-af3d888d3f97",
- "user_id": "a169451c-8525-4352-b8ca-070dd449a1a5",
- "calendar_type_id": 0,
- "calendar_properties": {
- "name": "string"
}
}Returns a list of all calendar item types available in this system.
This information can be used for the item_type_id field
when creating a new calendar item.
{- "1": "timecluster",
- "2": "domain",
- "3": "project",
- "4": "workpackage",
- "5": "task",
- "6": "milestone",
- "7": "reminder",
- "8": "note",
- "9": "periodical"
}Returns all calendar items by the current user.
If you want to set a specific time range, then you can do it
with start and end in-query parameters.
| start | string <date-time> The start of time range |
| finish | string <date-time> The end of time range |
[- {
- "item_id": "4d8cd62e-a579-4dae-af8c-3172f96f8f7c",
- "item_type_id": 1,
- "calendar_id": "c828ce68-4c5a-4491-b76a-af3d888d3f97",
- "item_parent_id": "4a3df6a9-08f2-44ec-ba8e-7d8a7a360cd5",
- "item_properties": {
- "start": {
- "after": null,
- "before": null,
- "successors": null,
- "predecessors": null
}, - "finish": {
- "after": null,
- "before": null,
- "successors": null,
- "predecessors": null
}, - "duration": "60 minut",
- "note": "string",
- "repeat": { },
- "assign": [
- "string"
]
}, - "item_start": "2000-01-01 00:00:00.000 +0000",
- "item_finish": "2019-08-24T14:15:22Z",
- "item_tags": [
- "string"
], - "item_name": "string"
}
]Adds an event or time slot to the calendar.
| item_id | string or null <uuid> The calendar item's ID |
| item_type_id required | integer Enum: 1 2 3 4 5 6 7 8 9 The calendar item's type ID |
| calendar_id required | string <uuid> The calendar's ID of the current calendar item |
| item_parent_id | string or null <uuid> Parent item's ID |
required | object An additionnal proprerties of the calendar item |
| item_start required | string <date-time> Фактическое время начала события |
| item_finish | string or null <date-time> Фактическое время окончания события |
| item_tags | Array of strings or null Список тегов, связанных с элементом |
| item_name required | string Название элемента календаря |
Add a new Time Cluster which:
item_id: optional ::
The UUID of this calendar item.
(If this field not set, then UUID will be generated automaticaly)
item_type_id: mandatory ::
The TypeID of the calendar item.
List of an available value you received with:
GET /api/v2/calendar/item/types
calendar_id: optional ::
The calendar's UUID of the calendar item.
(IF this field not set, then system must be used the UUID of the "Master Calendar" of the current user)
item_name: optional ::
The display name of this timecluster. (defalut value: new cluster)
item_parent_id: optional ::
The Parent calendar item's UUID. (defalut value: null -- it means this item is the root item)
item_start: optional ::
The activation date & time of this Timecluster.
(value by defalut: 2000-01-01 00:00:00.000 +0000)
item_finish: optional ::
The deactivation date & time of this Timecluster.
*(value by defalut: null -- it is means never)
item_tags: optional ::
The tags' list. *(value by default: [] | empty array)
item_properties: optional ::
The settings of the current Timecluster.
Available properties for Timeclusters (any others properties must be ignored for Timeclusters):
start: optional :: The describe rules of dependence start datetime valueafter: datatimebefore: datetimepredecessors: []successors: []finish: optional :: TBDduration: TBDrepeat: optional :: TBDfrom: Timeevery: 0until: timeperiod: TBDnote: TBD{- "item_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
- "item_type_id": 1,
- "calendar_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
- "item_name": "Time for me",
- "item_parent_id": null,
- "item_properties": {
- "repeat": [
- {
- "from": "04:00:00",
- "every": 1,
- "until": "04:29:59",
- "period": "day"
}, - {
- "from": "05:00:00",
- "every": 1,
- "until": "07:14:59",
- "period": "week",
- "weekdays": [
- false,
- true,
- true,
- true,
- true,
- true,
- false
]
}, - {
- "from": "08:15:00",
- "every": 1,
- "until": "09:59:59",
- "period": "week",
- "weekdays": [
- false,
- true,
- true,
- true,
- true,
- true,
- false
]
}, - {
- "from": "18:45:00",
- "every": 1,
- "until": "20:44:59",
- "period": "week",
- "weekdays": [
- false,
- true,
- true,
- true,
- true,
- true,
- false
]
}, - {
- "from": "05:00:00",
- "every": 1,
- "until": "09:59:59",
- "period": "week",
- "weekdays": [
- true,
- false,
- false,
- false,
- false,
- false,
- true
]
}, - {
- "from": "18:00:00",
- "every": 1,
- "until": "20:44:59",
- "period": "week",
- "weekdays": [
- false,
- false,
- false,
- false,
- false,
- false,
- true
]
}
]
}, - "item_start": "2000-01-01 00:00:00.000 +0000",
- "item_finish": null,
- "item_tags": [
- "mytime"
]
}{- "item_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
- "item_type_id": 1,
- "calendar_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
- "item_name": "Time for me",
- "item_parent_id": null,
- "item_properties": {
- "repeat": [
- {
- "from": "04:00:00",
- "every": 1,
- "until": "04:29:59",
- "period": "day"
}, - {
- "from": "05:00:00",
- "every": 1,
- "until": "07:14:59",
- "period": "week",
- "weekdays": [
- false,
- true,
- true,
- true,
- true,
- true,
- false
]
}, - {
- "from": "08:15:00",
- "every": 1,
- "until": "09:59:59",
- "period": "week",
- "weekdays": [
- false,
- true,
- true,
- true,
- true,
- true,
- false
]
}, - {
- "from": "18:45:00",
- "every": 1,
- "until": "20:44:59",
- "period": "week",
- "weekdays": [
- false,
- true,
- true,
- true,
- true,
- true,
- false
]
}, - {
- "from": "05:00:00",
- "every": 1,
- "until": "09:59:59",
- "period": "week",
- "weekdays": [
- true,
- false,
- false,
- false,
- false,
- false,
- true
]
}, - {
- "from": "18:00:00",
- "every": 1,
- "until": "20:44:59",
- "period": "week",
- "weekdays": [
- false,
- false,
- false,
- false,
- false,
- false,
- true
]
}
]
}
}Returns information about a specific calendar item.
| id required | string <uuid> The UUID of the calendar item |
{- "item_id": "4d8cd62e-a579-4dae-af8c-3172f96f8f7c",
- "item_type_id": 1,
- "calendar_id": "c828ce68-4c5a-4491-b76a-af3d888d3f97",
- "item_parent_id": "4a3df6a9-08f2-44ec-ba8e-7d8a7a360cd5",
- "item_properties": {
- "start": {
- "after": null,
- "before": null,
- "successors": null,
- "predecessors": null
}, - "finish": {
- "after": null,
- "before": null,
- "successors": null,
- "predecessors": null
}, - "duration": "60 minut",
- "note": "string",
- "repeat": { },
- "assign": [
- "string"
]
}, - "item_start": "2000-01-01 00:00:00.000 +0000",
- "item_finish": "2019-08-24T14:15:22Z",
- "item_tags": [
- "string"
], - "item_name": "string"
}Modifies an existing calendar item.
| id required | string <uuid> The UUID of the calendar item |
| item_id | string or null <uuid> The calendar item's ID |
| item_type_id required | integer Enum: 1 2 3 4 5 6 7 8 9 The calendar item's type ID |
| calendar_id required | string <uuid> The calendar's ID of the current calendar item |
| item_parent_id | string or null <uuid> Parent item's ID |
required | object An additionnal proprerties of the calendar item |
| item_start required | string <date-time> Фактическое время начала события |
| item_finish | string or null <date-time> Фактическое время окончания события |
| item_tags | Array of strings or null Список тегов, связанных с элементом |
| item_name required | string Название элемента календаря |
{- "item_id": "4d8cd62e-a579-4dae-af8c-3172f96f8f7c",
- "item_type_id": 1,
- "calendar_id": "c828ce68-4c5a-4491-b76a-af3d888d3f97",
- "item_parent_id": "4a3df6a9-08f2-44ec-ba8e-7d8a7a360cd5",
- "item_properties": {
- "start": {
- "after": null,
- "before": null,
- "successors": null,
- "predecessors": null
}, - "finish": {
- "after": null,
- "before": null,
- "successors": null,
- "predecessors": null
}, - "duration": "60 minut",
- "note": "string",
- "repeat": { },
- "assign": [
- "string"
]
}, - "item_start": "2000-01-01 00:00:00.000 +0000",
- "item_finish": "2019-08-24T14:15:22Z",
- "item_tags": [
- "string"
], - "item_name": "string"
}{- "item_id": "4d8cd62e-a579-4dae-af8c-3172f96f8f7c",
- "item_type_id": 1,
- "calendar_id": "c828ce68-4c5a-4491-b76a-af3d888d3f97",
- "item_parent_id": "4a3df6a9-08f2-44ec-ba8e-7d8a7a360cd5",
- "item_properties": {
- "start": {
- "after": null,
- "before": null,
- "successors": null,
- "predecessors": null
}, - "finish": {
- "after": null,
- "before": null,
- "successors": null,
- "predecessors": null
}, - "duration": "60 minut",
- "note": "string",
- "repeat": { },
- "assign": [
- "string"
]
}, - "item_start": "2000-01-01 00:00:00.000 +0000",
- "item_finish": "2019-08-24T14:15:22Z",
- "item_tags": [
- "string"
], - "item_name": "string"
}