Open this page in the API Guide

JobController.EnableJob Method

Enables or disables a job.

Namespace:  Dundas.BI.WebApi.Controllers
Assembly:  Dundas.BI.WebApi (in Dundas.BI.WebApi.dll) Version: 2.0.0.0 (25.2.0.1000)
Syntax
[HttpPutAttribute("EnableJob/{id}")]
[ProducesResponseTypeAttribute(403)]
[ProducesResponseTypeAttribute(404)]
[ProducesResponseTypeAttribute(440)]
public ActionResult<bool> EnableJob(
	Guid id,
	[FromBodyAttribute] bool enabled,
	Guid? sessionId = null
)

Parameters

id
Type: System.Guid
The ID of the job to enable or disable.
enabled
Type: System.Boolean
A Boolean used to enable or disable a job.
sessionId (Optional)
Type: System.Nullable<Guid>
The current session ID.

Return Value

Type: ActionResult<Boolean>
The operation completed successfully. The payload contains a Boolean indicating success (or failure if the job is running).
See Also