About Adding and Editing Event Items with the Event Management API
You can use the Event Management API to add or edit event items, including lots, line items, questions, and requirements.
-
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.
For additional fields and values required when adding questions, prerequisites, requirements, and attachments, refer to About Adding Questions, Prerequisites, Requirements, and Attachments with the Event Management API.
-
itemId: item ID. You can obtain itemId values from POST /events/{eventId}/items or GET /events/{eventId} responses.
You can optionally specify the query filter $expand for the GET /events/{eventId} endpoint to retrieve the event information in addition to the header information. You can specify multiple values, delimited by commas.
Valid values: all, items, supplierInvitations, teams, owners, customFields, none
Default: none
-
terms: array with at least 1 term.
[ {
"title": "My item",
"itemType": 4,
"terms": [ {
"title": "Price",
"historicValueProperty": 1,
"reserverValueProperty": 1,
"value": {
"moneyValue": {
"amount": 100.00,
"currency": "USD"
}
},
"historyValue": {
"moneyValue": {
"amount": 100.00,
"currency": "USD"
}
}
"reserveValue": {
"moneyValue": {
"amount": 100.00,
"currency": "USD"
}
}
},
{
"title": "Quantity",
"value": {
"quantityValue": {
"amount": 2000.00,
"unitOfMeasureCode": "EA"
} } } ] } ] }
Content Item Hierarchies and Order
Sourcing creates every event with a Totals item. The Totals item is the parent item for all top-level items in the content hierarchy and contains any rolled-up term values for the event. By default, the Event Management API adds a new item after the last item at the top level of an event (as a child of the Totals item).
-
parentItem to add the new item inside the specified item or section, as a child of the existing item
-
afterItem to add the new item after the specified item, as a peer to the existing item
[ {
"title": "my child item",
"parentItem": "1236666",
"itemType": 4,
...
You can also add a hierarchy of items by including a children array in an item, where the children array contains child Item objects.
Item Fields
Item fields specify the item type, if a response is required, and other item properties.
The following table lists commonly used Item fields for setting item properties. The fields available for an item and the default values depend on the item definitions in the template used to create the event. For a complete list of Item fields, refer to the Event Management API specification available from the SAP Ariba developer portal.
|
To Set This Item Property... |
Use This Field |
|---|---|
|
Item name |
title. For questions, specify the prompt (display text) using a title field in the terms. |
|
Type of item |
itemType; for lots and section items, use the additional itemSubType field.
Valid values for itemType:
Valid values for itemSubType:
|
|
Specify if participants must submit a response |
isBidRequired |
|
Order or position relative to the other content items |
parentItem and afterItem. If neither field is specified, the web service adds a new item after the last top-level item in the event. |
|
Child items |
children (an array of child items) |
|
Terms |
terms. Refer to Term Fields and About Defining New Terms or Formulas with the Event Management API for additional information. |
|
Competitive term for the item |
competitiveTermFieldId (you can only set this if the competitive term is delegated in the template, indicated by a true value for isCompetitiveTermEditable ) |
|
Terms that are rolled up (summed up) and listed at the event or section level |
rollUpTerms |
|
Specify if and when participants can view the item |
participantVisibility. Valid values:
|
|
Specify that a question is a prerequisite and if the event owner must review the supplier's response |
prerequisiteType and prerequisiteReviewType. Ignored if itemType is not 3 (QuestionItemType).
Valid values for prerequisiteType:
Valid values for prerequisiteReviewType:
|
|
Specify that a question is a requirement |
isRequirement |
|
Suppliers invited to bid on (submit responses for) the item |
invitedSuppliers. If this array is empty, all suppliers invited to the event are invited for this item. For additional information, refer to About Adding (Inviting) Suppliers to Events with the Event Management API. |
|
Specify the commodity code for the item |
commodity
The item inherits the commodity code for the event if the following conditions are met:
|
|
Specify the region for the item |
region
The item inherits the region for the event if the following conditions are met:
|
|
Specify currency and currency conversion rate set for the item (for multiple-currency events) |
currency and currencyConversionRateSet |