Adds the standard Work Schedule section to a selected user menu.
using System.Net.Http.Headers;var client = new HttpClient();var request = new HttpRequestMessage{ Method = HttpMethod.Post, RequestUri = new Uri("https://example.com/api/workspace/admin/work-schedule/runtime-menu"), Headers = { { "Authorization", "Bearer <token>" }, }, Content = new StringContent("{ \"RuntimeMenuId\": \"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/admin/work-schedule/runtime-menu';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"RuntimeMenuId":"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/admin/work-schedule/runtime-menu \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "RuntimeMenuId": "example" }'The optional setup requires ready Operational Location, Worker, and Site definitions. Repeated calls reuse matching menu leaves.
Authorizations
Section titled “Authorizations”Parameters
Section titled “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”Adds the standard Work Schedule section to a user menu.
object
Target user-menu identifier; null selects the preferred menu or creates the Default menu.
Examplegenerated
{ "RuntimeMenuId": "example"}Adds the standard Work Schedule section to a user menu.
object
Target user-menu identifier; null selects the preferred menu or creates the Default menu.
Examplegenerated
{ "RuntimeMenuId": "example"}Adds the standard Work Schedule section to a user menu.
object
Target user-menu identifier; null selects the preferred menu or creates the Default menu.
Examplegenerated
{ "RuntimeMenuId": "example"}Responses
Section titled “Responses”OK
object
Result of installing the standard Work Schedule section into a user menu.
object
Target user-menu identifier.
Target user-menu name.
Whether the Default user menu was created.
Number of new menu leaves.
Number of existing menu leaves reused without duplication.
object
object
object
object
Example
{ "Errors": [ { "Type": 0, "Severity": 0 } ], "Warnings": [ { "Type": 0, "Severity": 0 } ]}Bad Request
object
Result of installing the standard Work Schedule section into a user menu.
object
Target user-menu identifier.
Target user-menu name.
Whether the Default user menu was created.
Number of new menu leaves.
Number of existing menu leaves reused without duplication.
object
object
object
object
Example
{ "Errors": [ { "Type": 0, "Severity": 0 } ], "Warnings": [ { "Type": 0, "Severity": 0 } ]}Forbidden
object
Examplegenerated
{ "type": "example", "title": "example", "status": 1, "detail": "example", "instance": "example"}Not Found
object
Result of installing the standard Work Schedule section into a user menu.
object
Target user-menu identifier.
Target user-menu name.
Whether the Default user menu was created.
Number of new menu leaves.
Number of existing menu leaves reused without duplication.
object
object
object
object
Example
{ "Errors": [ { "Type": 0, "Severity": 0 } ], "Warnings": [ { "Type": 0, "Severity": 0 } ]}Conflict
object
Result of installing the standard Work Schedule section into a user menu.
object
Target user-menu identifier.
Target user-menu name.
Whether the Default user menu was created.
Number of new menu leaves.
Number of existing menu leaves reused without duplication.
object
object
object
object
Example
{ "Errors": [ { "Type": 0, "Severity": 0 } ], "Warnings": [ { "Type": 0, "Severity": 0 } ]}