Publishes the editable draft as immutable history.
using System.Net.Http.Headers;var client = new HttpClient();var request = new HttpRequestMessage{ Method = HttpMethod.Post, RequestUri = new Uri("https://example.com/api/workspace/work-schedule/calendars/example/draft/example/publish"), Headers = { { "Authorization", "Bearer <token>" }, }, Content = new StringContent("{ \"ExpectedRowVersion\": \"2489E9AD-2EE2-8E00-8EC9-32D5F69181C0\", \"OperationId\": \"example\" }") { Headers = { ContentType = new MediaTypeHeaderValue("application/json") } }};using (var response = await client.SendAsync(request)){ response.EnsureSuccessStatusCode(); var body = await response.Content.ReadAsStringAsync(); Console.WriteLine(body);}const url = 'https://example.com/api/workspace/work-schedule/calendars/example/draft/example/publish';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"ExpectedRowVersion":"2489E9AD-2EE2-8E00-8EC9-32D5F69181C0","OperationId":"example"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://example.com/api/workspace/work-schedule/calendars/example/draft/example/publish \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "ExpectedRowVersion": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "OperationId": "example" }'Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Query Parameters
Section titled “Query Parameters”Optional access token for clients that cannot set Authorization headers. Prefer Authorization: Bearer <token> when possible.
Request Body
Section titled “Request Body”Publishes an editable draft.
object
Examplegenerated
{ "ExpectedRowVersion": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "OperationId": "example"}Publishes an editable draft.
object
Examplegenerated
{ "ExpectedRowVersion": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "OperationId": "example"}Publishes an editable draft.
object
Examplegenerated
{ "ExpectedRowVersion": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "OperationId": "example"}Responses
Section titled “Responses”OK
object
Calendar mutation result with refreshed server detail.
object
Calendar detail, editable draft, revision timeline, and current actor actions.
object
Editable draft revision.
object
Complete weekly pattern.
object
One weekly wall-clock interval. Overnight work remains one interval.
object
One break relative to the beginning of an interval.
object
Actions that belong only to the visible Draft revision.
object
Published revision metadata and compact seven-day aggregates.
object
Compact read model for user references inside runtime instance payloads.
object
User identifier.
Resolved user display name.
Compact aggregate for one start day of a published revision.
object
Actions that belong only to the visible immutable revision.
object
Actions that the current actor may perform on a working calendar.
object
object
object
object
object
Example
{ "Data": { "Calendar": { "Draft": { "Pattern": { "Intervals": [ { "StartDayOfWeek": 0 } ] } } } }, "Errors": [ { "Type": 0, "Severity": 0 } ], "Warnings": [ { "Type": 0, "Severity": 0 } ]}