About Adding Questions, Prerequisites, Requirements, and Attachments with the Event Management API

In addition to lots and line items, you can include the following items in events:
  • Questions show suppliers (participants) a text prompt you specify. You also specify the type of response you accept, such as text or date.

  • Prerequisites are questions that you require suppliers to respond to before they can view event content or submit responses. You can also require responses to be reviewed (approved) by an event owner.

  • Requirements are statements you can add to the event to communicate information about your expectations. Participants do not need to respond to these statements.

  • Attachments are files that provide additional information to participants. For example, if you are running an event for automobile parts, you might attach CAD files detailing the design of the parts. The Event Management API enables you to add attachments to requirement items.

    For additional information about attachments, refer to Event attachments in the Event management guide.

To include items when creating an event (using the POST /events endpoint) or adding new items to an event (using the POST /events/{eventId}/items endpoint), you include an items array of Item objects in the Event inside the request body. Each Item must include the following fields at a minimum:
  • title: name of the item

  • itemType: type of item, such as 4, LineItemType). For lots, sections, and KPIs, you must also specify an itemSubType. Refer to Item Fields for the valid values and meanings.

  • terms array with at least one term. In most cases, you can use a term already defined in the template or event, or you can define a new term, as described in About Adding and Editing Event Items with the Event Management API.

In addition, you specify that an item is a question, prerequisite, or requirement as listed in the following table. Refer to Item Fields and Term Fields for additional information about field values.

To Specify A...

Use These Item and Term Fields

Question

Item field: "itemType": 3.

Term field: valueTypeName.

Prerequisite

Item fields: valueTypeName: "itemType": 3, prerequisiteType, and : prerequisiteReviewType.

Term field: valueTypeName.

Valid values for prerequisiteType:
  • 0: not a prerequisite
  • 1: prerequisite with no restriction
  • 2: prerequisite with gate on event content
  • 3: prerequisite required to submit responses
Valid values for prerequisiteReviewType:
  • 0: Event owner does not need to review the response to satisfy the prerequisite
  • 1: Event owner must review the response to satisfy the prerequisite

Requirement

Item fields: "itemType": 3 and "isRequirement": true.

Attachment as the value for a requirement

Item fields: "itemType": 3 and "isRequirement": true.

Term field: "valueTypeName": "Attachment".

For additional information, see Uploading Attachments with the Event Management API.

Attachment as a reference document for a term in a line item

Item field: "itemType": 4. The term field valueTypeName can be any value.

Add the attachment in a PUT request and include the query parameter isReference=true.

For additional information, see Uploading Attachments with the Event Management API.

When adding questions and prerequisites, you specify the display text (prompt) for the question or requirement with a title term, and the answer type with a valueType term.

Example prerequisite:
[ {
        "title": "prereq item",
        "itemType": 3,
        "prerequisiteType": 2,
        "terms": [ {
            "title": "Do you ship by air?",
            "valueTypeName": "YesNo"
        } ]
...