ApexERPHost

<back to all web services

GetJob

Requires Authentication
Required role:SysAdmin
The following routes are available for this service:
GET/sys/jobs/{JobId}
GetJob Parameters:
NameParameterData TypeRequiredDescription
JobIdpathstringNo
GetJobResponse Parameters:
NameParameterData TypeRequiredDescription
ResponseStatusformResponseStatusNo
ResultformErpJobNo
TemplateformErpJobTemplateNo
TriggerformErpJobTriggerInfoNo
ErpJob Parameters:
NameParameterData TypeRequiredDescription
JobIdformstringNo
NameformstringNo
TemplateIdformstringNo
QueueformstringNo
CronformstringNo
JobDataformDictionary<string, string>No
Enabledformbool?No
UsernameformstringNo
ExecuteAsUsernameformstringNo
ErpJobTemplate Parameters:
NameParameterData TypeRequiredDescription
IdformstringNo
NameformstringNo
DisplayNameformstringNo
DescriptionformstringNo
CategoryformstringNo
IsSysJobformboolNo
ParametersformList<ErpJobParameterInfo>No
ErpJobParameterInfo Parameters:
NameParameterData TypeRequiredDescription
NameformstringNo
DisplayNameformstringNo
DescriptionformstringNo
Orderformint?No
Requiredformbool?No
FormatformstringNo
EditTypeformint?No
DataTypeformint?No
AllowEvalformbool?No
ErpJobTriggerInfo Parameters:
NameParameterData TypeRequiredDescription
StartTimeUtcformDateTimeOffsetNo
EndTimeUtcformDateTimeOffset?No
FinalFireTimeUtcformDateTimeOffset?No
PriorityformintNo
NextFireTimeUtcformDateTimeOffset?No
PreviousFireTimeUtcformDateTimeOffset?No

To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv

HTTP + JSV

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

GET /sys/jobs/{JobId} HTTP/1.1 
Host: apex.nikoratrade.ge 
Accept: text/jsv
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length

{
	ResponseStatus: 
	{
		ErrorCode: String,
		Message: String,
		StackTrace: String,
		Errors: 
		[
			{
				ErrorCode: String,
				FieldName: String,
				Message: String,
				Meta: 
				{
					String: String
				}
			}
		],
		Meta: 
		{
			String: String
		}
	},
	Result: 
	{
		JobId: String,
		Name: String,
		TemplateId: String,
		Queue: String,
		Cron: String,
		JobData: 
		{
			String: String
		},
		Enabled: False,
		Username: String,
		ExecuteAsUsername: String
	},
	Template: 
	{
		Id: String,
		Name: String,
		DisplayName: String,
		Description: String,
		Category: String,
		IsSysJob: False,
		Parameters: 
		[
			{
				Name: String,
				DisplayName: String,
				Description: String,
				Order: 0,
				Required: False,
				Format: String,
				EditType: 0,
				DataType: 0,
				AllowEval: False
			}
		]
	},
	Trigger: 
	{
		StartTimeUtc: 0001-01-01T00:00:00.0000000+00:00,
		EndTimeUtc: 0001-01-01T00:00:00.0000000+00:00,
		FinalFireTimeUtc: 0001-01-01T00:00:00.0000000+00:00,
		Priority: 0,
		NextFireTimeUtc: 0001-01-01T00:00:00.0000000+00:00,
		PreviousFireTimeUtc: 0001-01-01T00:00:00.0000000+00:00
	}
}