Creates and publishes the Tasks time/results report or dashboard once, together with its Runtime Menu item.
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/tasks/reporting/0"), Headers = { { "Authorization", "Bearer <token>" }, }, Content = new StringContent("{ \"Title\": \"example\", \"RoleIds\": [ \"example\" ], \"UserIds\": [ \"example\" ], \"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/tasks/reporting/0';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"Title":"example","RoleIds":["example"],"UserIds":["example"],"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/tasks/reporting/0 \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "Title": "example", "RoleIds": [ "example" ], "UserIds": [ "example" ], "RuntimeMenuId": "example" }'Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”The two independently generated, customer-editable Reporting definitions.
The two independently generated, customer-editable Reporting definitions.
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”Explicit name, nonempty audience and optional selected menu for first creation.
object
Display title, trimmed and bounded to 128 characters.
Existing workspace roles in the audience.
Existing workspace users in the audience.
Selected menu; null chooses or creates the preferred menu.
Examplegenerated
{ "Title": "example", "RoleIds": [ "example" ], "UserIds": [ "example" ], "RuntimeMenuId": "example"}Explicit name, nonempty audience and optional selected menu for first creation.
object
Display title, trimmed and bounded to 128 characters.
Existing workspace roles in the audience.
Existing workspace users in the audience.
Selected menu; null chooses or creates the preferred menu.
Examplegenerated
{ "Title": "example", "RoleIds": [ "example" ], "UserIds": [ "example" ], "RuntimeMenuId": "example"}Explicit name, nonempty audience and optional selected menu for first creation.
object
Display title, trimmed and bounded to 128 characters.
Existing workspace roles in the audience.
Existing workspace users in the audience.
Selected menu; null chooses or creates the preferred menu.
Examplegenerated
{ "Title": "example", "RoleIds": [ "example" ], "UserIds": [ "example" ], "RuntimeMenuId": "example"}Responses
Section titled “Responses”OK
object
Durable target of first creation or a non-mutating repeat. Source grants remain separate.
object
Bound Reporting identity.
The two independently generated, customer-editable Reporting definitions.
Whether this request created and published the definition.
Menu changed by first creation; null on a non-mutating repeat.
object
object
object
object
Example
{ "Data": { "Kind": 0 }, "Errors": [ { "Type": 0, "Severity": 0 } ], "Warnings": [ { "Type": 0, "Severity": 0 } ]}Bad Request
object
Durable target of first creation or a non-mutating repeat. Source grants remain separate.
object
Bound Reporting identity.
The two independently generated, customer-editable Reporting definitions.
Whether this request created and published the definition.
Menu changed by first creation; null on a non-mutating repeat.
object
object
object
object
Example
{ "Data": { "Kind": 0 }, "Errors": [ { "Type": 0, "Severity": 0 } ], "Warnings": [ { "Type": 0, "Severity": 0 } ]}Forbidden
object
Examplegenerated
{ "type": "example", "title": "example", "status": 1, "detail": "example", "instance": "example"}Conflict
object
Durable target of first creation or a non-mutating repeat. Source grants remain separate.
object
Bound Reporting identity.
The two independently generated, customer-editable Reporting definitions.
Whether this request created and published the definition.
Menu changed by first creation; null on a non-mutating repeat.
object
object
object
object
Example
{ "Data": { "Kind": 0 }, "Errors": [ { "Type": 0, "Severity": 0 } ], "Warnings": [ { "Type": 0, "Severity": 0 } ]}