DocumentationDynamic Media Image Production System API

submitJob

Last update: March 8, 2022
  • Topics:
  • Dynamic Media Classic,SDK/API

CREATED FOR:

  • Developer
  • Admin

Submits a job to the system.

Syntax

Authorized User Types

  • IpsUser
  • IpsAdmin
  • TrialSiteAdmin
  • TrialSiteUser
  • ImagePortalAdmin
  • ImagePortalContrib
  • ImagePortalContribUser

Parameters

Input (submitJobParam)

NameTypeRequiredDescription
companyHandlexsd:stringYesCompany handle.
userHandlexsd:stringNo

Handle to the user who submitted the job.

Note: The system sends email to the user specified by userHandle. If userHandle is not provided, the person who submitted the job receives the emails.

jobNamexsd:stringYesJob name.
localexsd:stringNo

The locale used for job log details and email localization.

Locales are specified as <language_code> and [<country_code>], where the language code is a lower-case, two- letter code as specified by ISO-639, and the optional country code is an upper-case, two-letter code as specified by ISO-3166. For example, the locale string for English (United States) would be: en-US.

execTimexsd:dateTimeNo

Date and time to run the job.

Note: Provide the time zone with the request. Time zones are adjusted to the time zone of the target IPS server.

execSchedulexsd:stringNo

Determines when to run the job.

Can be a cron string that runs the job on a recurring basis.

The schedule is always relative to the server’s local time zone. See the IPS documentation for the custom schedule format.

descriptionxsd:stringNoJob description.
exportJobtypes:ExportJobNo

Export previously uploaded files.

See ExportJob.

imageServingPublishJobtypes:ImageServingPublishJobNoDetails for an image serving publish job.
imageRenderingPublishJobtypes:ImageRenderingPublishJobNoDetails for an image rendering publish job.
videoPublishJobtypes:VideoPublishJobNo

Details for an video publish job.

See VideoPublishJob.

serverDirectoryPublishJobtypes:ServerDirectoryPublishJobNoDetails for an server directory publish job.
uploadDirectoryJobtypes:UploadDirectoryJobNoDetails for an upload directory job.
uploadUrlsJobtypes:UploadUrlsJobNoDetails for an upload URL job.
optimizeImagesJobtypes:OptimizeImagesJobNo
ripPdfsJobtypes:RipPdfsJobNo
reprocessAssetsJobtypes:ReprocessAssetsJobNo
automatedSetGenerationJobtypes:AutomatedSetGenerationJobNo

Process an asset list into sets using Automated Set Scripts.

See AutomatedSetGenerationJob.

Output (submitJobReturn)

NameTypeRequiredDescription
jobHandlexsd:stringYesJob handle.

Examples

This code sample submits an image serving publish job to IPS and returns a job handle. Choose only one type of job in the request. Because userHandle was omitted, email notifications are sent to the user who submitted the job. This sample job runs immediately because execTime and execSchedule were omitted.

Request

<submitJobParam xmlns="http://www.scene7.com/IpsApi/xsd">
   <companyHandle>47</companyHandle>
   <jobName>My Test Job</jobName>
   <imageServingPublishJob>
      <publishType>Full</publishType>
      <emailSetting>Error</emailSetting>
   </imageServingPublishJob>
</submitJobParam>

Response

<submitJobReturn xmlns="http://www.scene7.com/IpsApi/xsd">
   <jobHandle>47|My Test Job|</jobHandle>
</submitJobReturn>

Notes

You can specify at most one of execTime and execSchedule. If neither is passed, the job runs immediately. You can use only one of the following:

  • imageServingPublishJob
  • imageRenderingPublishJob
  • videoPublishJob
  • serverDirectoryPublishJob
  • uploadDirectoryJob
  • uploadUrlsJob
recommendation-more-help
4e9b9d8c-5839-4215-aa35-01b652869681