Add Calendar to Project Introduction
This example explains how to add a new calendar to a project, using Aspose.Tasks Cloud. Aspose.Tasks Cloud is a REST API which can be used with any language: .NET, Java, PHP, Ruby, Rails, Python, jQuery and many more.
API
Type
Description
Resource Link
/tasks/{name}/calendars
POST
Add a calendar to a project
PostCalendar
cURL Example
Request
curl - X POST "https://api.aspose.cloud/v3.0/tasks/Home%20move%20plan.mpp/calendars" - H "accept: application/json" - H "Content-Type: application/json" - d "{ \"Name\": \"new test\", \"Uid\": 0, \"Days\": [ { \"DayWorking\": true, \"DayType\":\"Monday\", \"FromDate\": \"2019-08-11T10:11:51.711Z\", \"ToDate\": \"2019-08-17T22:11:51.711Z\", \"WorkingTimes\": [ { \"FromTime\": \"2019-08-13T10:11:51.711Z\", \"ToTime\": \"2019-08-13T22:11:51.711Z\" } ] } ], \"IsBaseCalendar\": false, \"IsBaselineCalendar\": false}"
Response
{
"code" : 0 ,
"status" : "string" ,
"calendarItem" : {
"link" : {
"href" : "string" ,
"rel" : "string" ,
"type" : "string" ,
"title" : "string"
},
"uid" : 0 ,
"name" : "string"
}
}
SDKs
The Aspose.Tasks Cloud SDKs can be downloaded from the following page: Available SDKs
SDK Examples