POST api/JobInstances

Request Information

URI Parameters

None.

Body Parameters

JobInstanceDto
NameDescriptionTypeAdditional information
Id

globally unique identifier

None.

CreationDate

date

Required

CreatedByUserId

globally unique identifier

None.

ScheduledDate

date

Required

RecurringJobId

globally unique identifier

None.

RenderType

RenderTypeDto

Required

Status

JobStatusDto

None.

StatusChangeLogs

Collection of JobStatusChangeLogDto

None.

XmlLocation

string

None.

XmlDocument

XDocument

None.

SupplierId

globally unique identifier

None.

OutputType

OutputTypeDto

None.

Request Formats

application/json, text/json

Sample:
{
  "Id": "52afdb49-d51b-43b1-a937-cd8dca150932",
  "CreationDate": "2025-12-10T23:32:46.0073662+00:00",
  "CreatedByUserId": "2d7f9a8b-4f92-4205-be20-6017069447d3",
  "ScheduledDate": "2025-12-10T23:32:46.0073662+00:00",
  "RecurringJobId": "05945280-6a1a-426d-bf37-581ed38fb32e",
  "RenderType": 0,
  "Status": 0,
  "StatusChangeLogs": [
    {
      "Id": "91de8f44-409d-462e-9f44-4fe30a13a4c0",
      "UserId": "91d08fe2-b34b-4a4d-8394-2351dadf59a9",
      "Status": 0,
      "Comment": "sample string 3",
      "JobId": "03793f63-ab9b-43d4-a705-a711e4d37b5c",
      "CreationDate": "2025-12-10T23:32:46.0073662+00:00"
    },
    {
      "Id": "91de8f44-409d-462e-9f44-4fe30a13a4c0",
      "UserId": "91d08fe2-b34b-4a4d-8394-2351dadf59a9",
      "Status": 0,
      "Comment": "sample string 3",
      "JobId": "03793f63-ab9b-43d4-a705-a711e4d37b5c",
      "CreationDate": "2025-12-10T23:32:46.0073662+00:00"
    }
  ],
  "XmlLocation": "sample string 6",
  "XmlDocument": {},
  "SupplierId": "df1b768a-3df5-4778-b1a7-47d4d840f980",
  "OutputType": 0
}

application/xml

Sample:

An exception has occurred while using the formatter 'XmlMediaTypeFormatter' to generate sample for media type 'application/xml'. Exception message: Type 'System.Xml.Linq.XDeclaration' cannot be serialized. Consider marking it with the DataContractAttribute attribute, and marking all of its members you want serialized with the DataMemberAttribute attribute. If the type is a collection, consider marking it with the CollectionDataContractAttribute. See the Microsoft .NET Framework documentation for other supported types.

text/xml

Sample:

An exception has occurred while using the formatter 'XmlMediaTypeFormatter' to generate sample for media type 'text/xml'. Exception message: Type 'System.Xml.Linq.XDeclaration' cannot be serialized. Consider marking it with the DataContractAttribute attribute, and marking all of its members you want serialized with the DataMemberAttribute attribute. If the type is a collection, consider marking it with the CollectionDataContractAttribute. See the Microsoft .NET Framework documentation for other supported types.

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'JobInstanceDto'.

Response Information

Resource Description

None.