Promote Project Calendars To Workspace
put
/api/restapi/calendar/promote
Send a request to this endpoint to promote the project calendars provided in the payload to their immediate workspaces.
Request
There are no request parameters for this operation.
Supported Media Types
- application/json
Root Schema : List<ApiEntityPromoteProjectCalendar>
Type:
array
Title:
Show Source
List<ApiEntityPromoteProjectCalendar>
-
Array of:
object ApiEntityPromoteProjectCalendar
Title:
ApiEntityPromoteProjectCalendar
Nested Schema : ApiEntityPromoteProjectCalendar
Type:
object
Title:
Show Source
ApiEntityPromoteProjectCalendar
-
calendarCode: string
Maximum Length:
255
The unique code for the calendar. -
calendarId: integer
(int64)
The unique identifier for the calendar.
-
link: string
(url)
Read Only:
true
The self-link to the object. This field is populated only in the responses generated by the batch create APIs. -
projectCode: string
Maximum Length:
60
The unique identifier for a project set by the user who created the project. -
projectId: integer
(int64)
The unique identifier for the project for which the calendar belongs.
-
updateDate: string
(date-time)
Read Only:
true
Date when the record was last updated. -
workspaceCode: string
Maximum Length:
60
The user-specified identifier of a workspace. -
workspaceId: integer
(int64)
The unique identifier for the workspace for which the calendar belongs.
Examples
Back to Top
Response
200 Response
A collection of object IDs mapped to a canonical link of the object. For example - {"links":{"1":"https://[host]:[port]/api/restapi/[object]/1","2":"https://[host]:[port]/api/restapi/[object]/2"}}
400 Response
Invalid input for the calendar service. Verify the request contains valid data, then resubmit the request.