Schedule a job with parameters
/services/rest/v1/jobs/scheduleJob
Request
There are no request parameters for this operation.
Back to TopResponse
- application/text
200 Response
object
-
bookBindingOutputOption:
boolean
If true, saves Is the book binding used?
-
burstringOption:
boolean
If true, enables bursting.
-
chunkingOption:
boolean
If true, enables chunking.
-
compressDeliveryOutputOption:
boolean
If true, compresses the output before delivery.
-
cronExpression:
string
Cron expression for scheduling the recurring jobs.
-
dataModelUrl:
string
URL of the data model.
-
DeliveryChannels:
object DeliveryChannels
-
endDate:
string
End date and time for the job. Use the W3CDTF date format string. For example, 2010-05-21T21:24:19Z
-
jobLocale:
string
Locale for the job output
-
jobTZ:
string
Time zone for the job run
-
mergeOutputOption:
boolean
If true, merges the output.
-
notificationPassword:
string
Password for the notification server.
-
notificationServer:
string
Notification server.
-
notificationTo:
string
User to send notification.
-
notificationUserName:
string
User name for the notification server.
-
notifyHttpWhenFailed:
boolean
If true, sends HTTP notification to user when the job fails (default - false).
-
notifyHttpWhenSkipped:
boolean
If true, sends HTTP notification to user when job is skipped (default is false).
-
notifyHttpWhenSuccess:
boolean
If true, sends HTTP notification to user when the job is successful (default is false).
-
notifyHttpWhenWarning:
boolean
If true, sends HTTP notification to user when the job is in warning state (default is false).
-
notifyWhenFailed:
boolean
If true, sends notification to the user when the job fails (default is false).
-
notifyWhenSkipped:
boolean
If true, sends notification to the user when the job is skipped (default is false).
-
notifyWhenSuccess:
boolean
If true, sends notification to the user when the job is successful (default is false).
-
notifyWhenWarning:
boolean
If true, sends notification to the user when the job is in warning state (default is false).
-
repeatCount:
integer
Repeat count for the job.
-
ReportRequest:
object ReportRequest
-
saveDataOption:
boolean
If true, saves the XML data so that the XML data is visible for download in the history page.
-
saveOutputOption:
boolean
If true, saves the output so that the output is visible in the history page.
-
schedulePublicOption:
boolean
If true, sets the output as public.
-
startDate:
string
Start date and time for the job. Use the W3CDTF date format string. For example, 2010-05-21T21:24:19Z
-
userJobDesc:
string
User defined job description
-
userJobName:
string
User defined job name
-
UTF8Option:
boolean
If true, enable UTF8 encoding.
object
-
emailOptions:
object ArrayOfEmailDeliveryOption
-
faxOptions:
object ArrayOfFaxDeliveryOption
-
ftpOptions:
object ArrayOfFTPDeliveryOption
-
localOptions:
object ArrayOfLocalDeliveryOption
-
objectStorageOptions:
object ArrayOfObjectStorageDeliveryOption
-
printOptions:
object ArrayOfPrintDeliveryOption
-
wccOptions:
object ArrayOfWCCDeliveryOption
-
webDAVOptions:
object ArrayOfWebDavDeliveryOption
object
-
attributeCalendar:
string
The formatting calendar to use for the report request. Valid values are: "Gregorian", "Arabic Hijrah", "English Hijrah", "Japanese Imperial", "Thai Buddha", and "ROC Official".
-
attributeFormat:
string
The output format of the requested report.
-
attributeLocale:
string
The locale selection for the report. Example: fr-FR
-
attributeTemplate:
string
The template to apply to the report. For example, Employeelisting.rtf.
-
attributeTimezone:
string
Specifies the time zone to use for the request, using a supported Java time zone ID. For example, "America/Los_Angeles".
-
attributeUILocale:
string
The locale selection for the report. Example: fr-FR
-
byPassCache:
boolean
Default Value:
false
True indicates to bypass document cache. -
dynamicDataSource:
object BIPDataSource
-
flattenXML:
boolean
Default Value:
false
True indicates that the XML is to be flattened. This flag is used for the Analyzer for Microsoft Excel because Excel requires XML data type to be flattened. -
parameterNameValues:
object ParamNameValues
-
xdopropertyList:
object MetaDataList
object
-
item:
array item
An array of EMailDeliveryOption
object
-
item:
array item
An array of FaxDeliveryOption
object
-
item:
array item
An array of FTPDeliveryOption
object
-
item:
array item
An array of LocalDeliveryOption
object
-
item:
array item
An array of ObjectStorageDeliveryOption
object
-
item:
array item
An array of PrintDeliveryOption
object
-
item:
array item
An array of WCCDeliveryOption
object
-
item:
array item
An array of WebDavDeliveryOption
object
-
eMailAttachmentName:
string
The email attachment field.
-
eMailBCC:
string
The email bcc field.
-
eMailBody:
string
The email body field.
-
eMailCC:
string
The email cc field.
-
eMailDeliveryStatusNotification:
boolean
The email status notification field.
-
eMailFrom:
string
email from field.
-
eMailReplyTo:
string
The email reply-to field.
-
eMailReturnReceipt:
boolean
The email return receipt field.
-
eMailServerName:
string
The email server name.
-
eMailSubject:
string
The email subject field.
-
eMailTo:
string
email to field.
object
-
faxNumber:
string
The fax server number.
-
faxServer:
string
fax server name.
object
-
ftpServerName:
string
The ftp server name.
-
ftpUserName:
string
ftp user name.
-
ftpUserPassword:
string
ftp user password.
-
remoteFile:
string
remote file path.
-
sftpOption:
boolean
sftp option.
object
-
destination:
string
The local destination path.
object
-
fileMetadata:
string
Optional file description.
-
fileName:
string
File Name.
-
filePrefix:
string
folder for object storage, can have sub folders.
-
serverName:
string
The object storage server name.
object
-
printerName:
string
The printer name.
-
printNumberOfCopy:
string
number of copies.
-
printOrientation:
string
portrait or landscape.
-
printRange:
string
page range e.g 1-3.
-
printSide:
string
Single Sided or Double Sided.
-
printTray:
string
Dafault or tray number.
object
-
wccAccount:
string
wcc account
-
wccAuthor:
string
wcc author.
-
wccComments:
string
wcc comments.
-
wccFileName:
string
wcc file name.
-
wccFolderPath:
string
wcc folder path.
-
wccIncludeMetadata:
boolean
incude metadata true/false
-
wccSecurityGroup:
string
wcc security group.
-
wccServerName:
string
The wcc server name.
-
wccTitle:
string
wcc title.
object
-
deliveryAuthType:
string
delivery auth type.
-
password:
string
password.
-
remoteFilePath:
string
remote file path.
-
server:
string
The webdav server name.
-
userName:
string
user name
object
-
listOfParamNameValues:
array listOfParamNameValues
An array of ParamNameValue
object
-
metaDataName:
string
The name of the metadata.
-
metaDataValue:
string
The metadata content.
object
-
dynamicDataSourcePath:
string
To specify a path to a data source that resides on an available server, specify the full path to the data source and set temporaryDataSource to "false". For example: "D:\BI\OracleBI\xmlp\XMLP\DemoFiles\Balance.xml")" If the file is located in the system temporary directory, set temporaryDataSource to true, and specify the file name here. For example: "Balance.xml".
-
temporaryDataSource:
boolean
Default Value:
false
Set to "true" when the file data source is in the system temporary directory. Set to "false" when dynamicDataSourcePath specifies the full path.
object
-
dataSourceName:
string
The Data Source Name assigned to the data source in the Oracle BI Publisher data source definition page (for example, Oracle).
-
jdbcdriverClass:
string
The JDBC driver class for the data source (for example, oracle.jdbc.OracleDriver).
-
jdbcdriverType:
string
The driver type as defined in the Oracle BI Publisher data source definition page (for example, Oracle10g/11g/12c).
-
jdbcpassword:
string
The password for the data source as defined in the Oracle BI Publisher data source definition page.
-
jdbcurl:
string
The connection string for the data source (for example, jdbc:oracle:thin:@mydatabase.foobar.com.example:1521: orcl).
-
jdbcuserName:
string
The user name for the data source as defined in the Oracle BI Publisher data source definition page.
-
postProcessFunc:
string
Enter a PL/SQL function to execute when a connection is closed (Post Process).
-
preProcessFunc:
string
Enter a PL/SQL function to execute when a connection is created (Pre Process).
-
useProxyAuth:
boolean
Default Value:
false
Enable Proxy Authentication.
object
-
dataType:
string
Valid values include: Boolean Date Float Integer String
-
dateFormatString:
string
If UIType is "Date", this specifies the Date Format String. The date format string must be a Java date format (for example, MM-DD-YYYY).
-
dateFrom:
string
If UIType is "Date", this specifies the begin value of the date.
-
dateTo:
string
If UIType is "Date", this specifies the end value of the date.
-
defaultValue:
string
Specifies the default value of the parameter.
-
fieldSize:
string
For parameter types "Text" and "Date", specifies the text field size for the parameter.
-
label:
string
For all parameter types except "Hidden", specifies the display label for the parameter.
-
lovLabels:
array lovLabels
If the parameter type is "Menu", specifies the values displayed in the list of values to the user.
-
multiValuesAllowed:
boolean
True indicates that a parameter may contain multiple values.
-
name:
string
The parameter name.
-
refreshParamOnChange:
boolean
For parameter types "Text" and "Menu", a value of true for this parameter indicates that other defined parameters should be refreshed when a selection is made for this parameter.
-
selectAll:
boolean
For parameter type "Menu", a value of true indicates that all values can be selected for the LOV.
-
templateParam:
boolean
A value of true indicates the parameter is defined in the RTF template.
-
UIType:
string
The type of parameter as defined in the Oracle BI Publisher data model user interface. Valid values include: Date Hidden Menu Search Text
-
useNullForAll:
boolean
For parameter type "Menu", a value of true indicates that a null will be passed if all values are selected for the parameter.
-
values:
array values
Parameter values.
array
Examples
The following examples shows how to schedule a job by submitting a PUT request on the REST resource using cURL.
Schedule a job to run now
The following shows how to schedule a job immediately by submitting a PUT request on the REST resource using cURL. You must specify the data model and the report template.
curl -i \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--request PUT –d '{"dataModelUrl":"my model URL","reportRequest":{"reportAbsolutePath":"/Sample Lite/Published Reporting/Reports/Balance Letter.xdo", "attributeFormat":"pdf"}}' 'https://hostname/xmlpserver/services/rest/v1/jobs/scheduleJob'
Schedule a job to run later
The following shows how to schedule a job to run at a specified date and time by submitting a PUT request on the REST resource using cURL. You must specify the data model and the report template.
curl -i \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--request PUT -d
'{"dataModelUrl":"my model URL","startDate":"2024-11-01T09:45:00.000","reportRequest":{"reportAbsolutePath":"/Sample
Lite/Published Reporting/Reports/Balance Letter.xdo", "attributeFormat":"pdf"}}' '
https://hostname/xmlpserver/services/rest/v1/jobs/scheduleJob'
Schedule a job to save data and output
The following shows how to schedule a job and save data and output by submitting a PUT request on the REST resource using cURL. You must specify the data model, report template, and output format. If you save data and output, you can view and download the XML data and output.
curl -i \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--request PUT -d
'{"dataModelUrl":"/Sample/Published Reporting/Data Models/BalanceLetter
Datamodel.xdm","saveOutputOption":"true","saveDataOption":"true","reportRequest":{"reportAbsolutePath":"/Sample
Lite/Published Reporting/Reports/Balance
Letter.xdo","attributeFormat":"pdf"}}' 'https://hostname/xmlpserver/services/rest/v1/jobs/scheduleJob'
Schedule a job to run daily
The following shows how to schedule a job to run daily at a specified date and time by submitting a PUT request on the REST resource using cURL. You must specify the data model, report template, job start date and time, job end date and time, and the job run frequency.
curl -i \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--request PUT -d
'{"dataModelUrl":"/Sample Lite/Published Reporting/Data Models/BalanceLetter
Datamodel.xdm","startDate":"2024-10-01T09:45:00.000","endDate":"2025-10-01T09:45:00.000","recurrenceExpression":"0
0 12 * * ?","reportRequest":{"reportAbsolutePath":"/Sample Lite/Published
Reporting/Reports/Balance Letter.xdo", "attributeFormat":"pdf"}}' 'https://hostname/xmlpserver/services/rest/v1/jobs/scheduleJob'
Schedule a job to run weekly
The following shows how to schedule a job to run every Thursday by submitting a PUT request on the REST resource using cURL. You must specify the data model, report template, job start date and time, job end date and time, and the day of the week for running the job.
curl -i \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--request PUT -d
'{"dataModelUrl":"/Sample Lite/Published Reporting/Data Models/BalanceLetter
Datamodel.xdm","startDate":"2024-10-01T09:45:00.000","endDate":"2025-10-01T09:45:00.000","recurrenceExpression":"0
0 12 ? * THU *","reportRequest":{"reportAbsolutePath":"/Sample Lite/Published
Reporting/Reports/Balance Letter.xdo"}}' 'https://hostname/xmlpserver/services/rest/v1/jobs/scheduleJob'
Schedule a job with a custom name
The following shows how to schedule a job with a custom job name to run later by submitting a PUT request on the REST resource using cURL. You must specify the data model, report template, and the job start date and time.
curl -i \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--request PUT -v -d
'{"dataModelUrl" "my model URL","userJobName":"test from
rest","startDate":"2024-10-01T09:45:00.000","reportRequest":{"reportAbsolutePath":"/Sample
Lite/Published Reporting/Reports/Balance Letter.xdo"}}' 'https://hostname/xmlpserver/services/rest/v1/jobs/scheduleJob'
Schedule a job to deliver output to Object Storage
The following shows how to schedule a job to deliver the output to Object Storage by submitting a PUT request on the REST resource using cURL. You must specify the job name, report path, Object Storage server name, file prefix, and file name.
curl -i \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--request PUT -v -d
'{"userJobName":"restdeliverydemo2","saveOutputOption":"true",
"saveDataOption":"true",
"reportRequest":{"reportAbsolutePath":"~admin/Discrete Job Data Report.xdo","attributeFormat":"pdf"},
"deliveryChannels":{"objectStorageOptions":{"item":
[{"serverName":"obj","filePrefix":"bipdelivery/demo","fileName":"bipdemo3.pdf"}]}}}'
'https://hostname/xmlpserver/services/rest/v1/jobs/scheduleJob'
Schedule a bursting job
The following shows how to schedule a bursting job immediately by submitting a PUT request on the REST resource using cURL. You must specify the data model and the report template. Make sure that the bursting property is checkmarked in report properties.
curl -i \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--request PUT -v –d '{"dataModelUrl":"my model URL","reportRequest":{"reportAbsolutePath":"/Sample Lite/Published Reporting/Reports/Balance Letter.xdo"}}' 'https://hostname/xmlpserver/services/rest/v1/jobs/scheduleJob'
Schedule a bursting job with parameters
The following shows how to schedule a bursting job with parameters by submitting a PUT request on the REST resource using cURL. You must specify the data model and the report template. Make sure that the bursting property is checkmarked in report properties.
curl -i \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--request PUT -d
'{"dataModelUrl":"data model URL","userJobName":"test from rest
5","scheduleBurstringOption":"true","saveDataOption":"true","reportRequest":{"reportAbsolutePath":"/~admin/00.BIPDS-Test/BurstingQueryWithParameterReport.xdo",
"parameterNameValues": { "listOfParamNameValues": { "item": [{ "name": "P_DEPT_ID",
"values": { "item": [ 20] }} , { "name": "P_TEMPLATE", "values": { "item":
["simple"] } }] }} }} ' 'https://hostname/xmlpserver/services/rest/v1/jobs/scheduleJob'