Skip to content

JobScheduleSaveRequest

Namespace AgentPrism · Assembly AgentPrism.AspNetCore.dll

Request to create/update a schedule.

public sealed record JobScheduleSaveRequest : IEquatable<JobScheduleSaveRequest>

objectJobScheduleSaveRequest

IEquatable<JobScheduleSaveRequest>

object.GetType(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()

The name comes from the path, not the body — same reason as WorkflowSaveRequest.

public JobScheduleSaveRequest()

Five-field cron expression. If left empty, the schedule can only be triggered manually (POST .../trigger).

public string? Cron { get; init; }

string?

Whether the schedule is enabled.

public bool Enabled { get; init; }

bool

Kind of job this schedule produces.

public required JobKind Kind { get; init; }

JobKind

Input set or parameters.

public JsonElement Payload { get; init; }

JsonElement

Name of the agent or workflow to run.

public required string TargetName { get; init; }

string

Time zone the Cron expression is interpreted in.

public string TimeZone { get; init; }

string

public override bool Equals(object? obj)

obj object?

bool

public bool Equals(JobScheduleSaveRequest? other)

other JobScheduleSaveRequest?

bool

public override int GetHashCode()

int

public override string ToString()

string

operator ==(JobScheduleSaveRequest?, JobScheduleSaveRequest?)

Section titled “ operator ==(JobScheduleSaveRequest?, JobScheduleSaveRequest?)”
public static bool operator ==(JobScheduleSaveRequest? left, JobScheduleSaveRequest? right)

left JobScheduleSaveRequest?

right JobScheduleSaveRequest?

bool

operator !=(JobScheduleSaveRequest?, JobScheduleSaveRequest?)

Section titled “ operator !=(JobScheduleSaveRequest?, JobScheduleSaveRequest?)”
public static bool operator !=(JobScheduleSaveRequest? left, JobScheduleSaveRequest? right)

left JobScheduleSaveRequest?

right JobScheduleSaveRequest?

bool