POST api/v2.0/ExternalSearch/AddEventItems

Add External Calendar Event Items to the Search Results.

Request Information

URI Parameters

None.

Body Parameters

External Calendar Event Items to add.

Collection of ExternalCalendarEvent
NameDescriptionTypeAdditional information
ContributorLegacyContactKey

string

None.

Additional

Collection of string

None.

Code

string

None.

CreatedOn

date

None.

DeliveryMethods

Collection of string

None.

Description

string

None.

EndDateTime

date

None.

EventType

string

None.

ID

string

None.

IsDelete

boolean

None.

IsFree

boolean

None.

Location

string

None.

StartDateTime

date

None.

Tags

Collection of TagInfo

None.

TimeZone

string

None.

Title

string

None.

Url

string

None.

ViewSecurityRoles

Collection of string

None.

Request Formats

application/json, text/json

Sample:
[
  {
    "ContributorLegacyContactKey": "sample string 1",
    "Additional": [
      "sample string 1",
      "sample string 2"
    ],
    "Code": "sample string 2",
    "CreatedOn": "2024-11-02T18:46:16.9941193Z",
    "DeliveryMethods": [
      "sample string 1",
      "sample string 2"
    ],
    "Description": "sample string 4",
    "EndDateTime": "2024-11-02T18:46:16.9941193Z",
    "EventType": "sample string 6",
    "ID": "sample string 7",
    "IsDelete": true,
    "IsFree": true,
    "Location": "sample string 10",
    "StartDateTime": "2024-11-02T18:46:16.9941193Z",
    "Tags": [
      {
        "Tag": "sample string 1",
        "TagGroup": "sample string 2"
      },
      {
        "Tag": "sample string 1",
        "TagGroup": "sample string 2"
      }
    ],
    "TimeZone": "sample string 12",
    "Title": "sample string 13",
    "Url": "sample string 14",
    "ViewSecurityRoles": [
      "sample string 1",
      "sample string 2"
    ]
  },
  {
    "ContributorLegacyContactKey": "sample string 1",
    "Additional": [
      "sample string 1",
      "sample string 2"
    ],
    "Code": "sample string 2",
    "CreatedOn": "2024-11-02T18:46:16.9941193Z",
    "DeliveryMethods": [
      "sample string 1",
      "sample string 2"
    ],
    "Description": "sample string 4",
    "EndDateTime": "2024-11-02T18:46:16.9941193Z",
    "EventType": "sample string 6",
    "ID": "sample string 7",
    "IsDelete": true,
    "IsFree": true,
    "Location": "sample string 10",
    "StartDateTime": "2024-11-02T18:46:16.9941193Z",
    "Tags": [
      {
        "Tag": "sample string 1",
        "TagGroup": "sample string 2"
      },
      {
        "Tag": "sample string 1",
        "TagGroup": "sample string 2"
      }
    ],
    "TimeZone": "sample string 12",
    "Title": "sample string 13",
    "Url": "sample string 14",
    "ViewSecurityRoles": [
      "sample string 1",
      "sample string 2"
    ]
  }
]

application/xml, text/xml

Sample:
<ArrayOfExternalSearchItem.ExternalCalendarEvent xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/HigherLogic.Business.Core">
  <ExternalSearchItem.ExternalCalendarEvent>
    <_x003C_Additional_x003E_k__BackingField xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
      <d3p1:string>sample string 1</d3p1:string>
      <d3p1:string>sample string 2</d3p1:string>
    </_x003C_Additional_x003E_k__BackingField>
    <_x003C_Code_x003E_k__BackingField>sample string 2</_x003C_Code_x003E_k__BackingField>
    <_x003C_ContributorLegacyContactKey_x003E_k__BackingField>sample string 1</_x003C_ContributorLegacyContactKey_x003E_k__BackingField>
    <_x003C_CreatedOn_x003E_k__BackingField>2024-11-02T14:46:16.9941193-04:00</_x003C_CreatedOn_x003E_k__BackingField>
    <_x003C_DeliveryMethods_x003E_k__BackingField xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
      <d3p1:string>sample string 1</d3p1:string>
      <d3p1:string>sample string 2</d3p1:string>
    </_x003C_DeliveryMethods_x003E_k__BackingField>
    <_x003C_Description_x003E_k__BackingField>sample string 4</_x003C_Description_x003E_k__BackingField>
    <_x003C_EndDateTime_x003E_k__BackingField>2024-11-02T14:46:16.9941193-04:00</_x003C_EndDateTime_x003E_k__BackingField>
    <_x003C_EventType_x003E_k__BackingField>sample string 6</_x003C_EventType_x003E_k__BackingField>
    <_x003C_ID_x003E_k__BackingField>sample string 7</_x003C_ID_x003E_k__BackingField>
    <_x003C_IsDelete_x003E_k__BackingField>true</_x003C_IsDelete_x003E_k__BackingField>
    <_x003C_IsFree_x003E_k__BackingField>true</_x003C_IsFree_x003E_k__BackingField>
    <_x003C_Location_x003E_k__BackingField>sample string 10</_x003C_Location_x003E_k__BackingField>
    <_x003C_StartDateTime_x003E_k__BackingField>2024-11-02T14:46:16.9941193-04:00</_x003C_StartDateTime_x003E_k__BackingField>
    <_x003C_Tags_x003E_k__BackingField>
      <ExternalSearchItem.TagInfo>
        <_x003C_TagGroup_x003E_k__BackingField>sample string 2</_x003C_TagGroup_x003E_k__BackingField>
        <_x003C_Tag_x003E_k__BackingField>sample string 1</_x003C_Tag_x003E_k__BackingField>
      </ExternalSearchItem.TagInfo>
      <ExternalSearchItem.TagInfo>
        <_x003C_TagGroup_x003E_k__BackingField>sample string 2</_x003C_TagGroup_x003E_k__BackingField>
        <_x003C_Tag_x003E_k__BackingField>sample string 1</_x003C_Tag_x003E_k__BackingField>
      </ExternalSearchItem.TagInfo>
    </_x003C_Tags_x003E_k__BackingField>
    <_x003C_TimeZone_x003E_k__BackingField>sample string 12</_x003C_TimeZone_x003E_k__BackingField>
    <_x003C_Title_x003E_k__BackingField>sample string 13</_x003C_Title_x003E_k__BackingField>
    <_x003C_Url_x003E_k__BackingField>sample string 14</_x003C_Url_x003E_k__BackingField>
    <_x003C_ViewSecurityRoles_x003E_k__BackingField xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
      <d3p1:string>sample string 1</d3p1:string>
      <d3p1:string>sample string 2</d3p1:string>
    </_x003C_ViewSecurityRoles_x003E_k__BackingField>
  </ExternalSearchItem.ExternalCalendarEvent>
  <ExternalSearchItem.ExternalCalendarEvent>
    <_x003C_Additional_x003E_k__BackingField xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
      <d3p1:string>sample string 1</d3p1:string>
      <d3p1:string>sample string 2</d3p1:string>
    </_x003C_Additional_x003E_k__BackingField>
    <_x003C_Code_x003E_k__BackingField>sample string 2</_x003C_Code_x003E_k__BackingField>
    <_x003C_ContributorLegacyContactKey_x003E_k__BackingField>sample string 1</_x003C_ContributorLegacyContactKey_x003E_k__BackingField>
    <_x003C_CreatedOn_x003E_k__BackingField>2024-11-02T14:46:16.9941193-04:00</_x003C_CreatedOn_x003E_k__BackingField>
    <_x003C_DeliveryMethods_x003E_k__BackingField xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
      <d3p1:string>sample string 1</d3p1:string>
      <d3p1:string>sample string 2</d3p1:string>
    </_x003C_DeliveryMethods_x003E_k__BackingField>
    <_x003C_Description_x003E_k__BackingField>sample string 4</_x003C_Description_x003E_k__BackingField>
    <_x003C_EndDateTime_x003E_k__BackingField>2024-11-02T14:46:16.9941193-04:00</_x003C_EndDateTime_x003E_k__BackingField>
    <_x003C_EventType_x003E_k__BackingField>sample string 6</_x003C_EventType_x003E_k__BackingField>
    <_x003C_ID_x003E_k__BackingField>sample string 7</_x003C_ID_x003E_k__BackingField>
    <_x003C_IsDelete_x003E_k__BackingField>true</_x003C_IsDelete_x003E_k__BackingField>
    <_x003C_IsFree_x003E_k__BackingField>true</_x003C_IsFree_x003E_k__BackingField>
    <_x003C_Location_x003E_k__BackingField>sample string 10</_x003C_Location_x003E_k__BackingField>
    <_x003C_StartDateTime_x003E_k__BackingField>2024-11-02T14:46:16.9941193-04:00</_x003C_StartDateTime_x003E_k__BackingField>
    <_x003C_Tags_x003E_k__BackingField>
      <ExternalSearchItem.TagInfo>
        <_x003C_TagGroup_x003E_k__BackingField>sample string 2</_x003C_TagGroup_x003E_k__BackingField>
        <_x003C_Tag_x003E_k__BackingField>sample string 1</_x003C_Tag_x003E_k__BackingField>
      </ExternalSearchItem.TagInfo>
      <ExternalSearchItem.TagInfo>
        <_x003C_TagGroup_x003E_k__BackingField>sample string 2</_x003C_TagGroup_x003E_k__BackingField>
        <_x003C_Tag_x003E_k__BackingField>sample string 1</_x003C_Tag_x003E_k__BackingField>
      </ExternalSearchItem.TagInfo>
    </_x003C_Tags_x003E_k__BackingField>
    <_x003C_TimeZone_x003E_k__BackingField>sample string 12</_x003C_TimeZone_x003E_k__BackingField>
    <_x003C_Title_x003E_k__BackingField>sample string 13</_x003C_Title_x003E_k__BackingField>
    <_x003C_Url_x003E_k__BackingField>sample string 14</_x003C_Url_x003E_k__BackingField>
    <_x003C_ViewSecurityRoles_x003E_k__BackingField xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
      <d3p1:string>sample string 1</d3p1:string>
      <d3p1:string>sample string 2</d3p1:string>
    </_x003C_ViewSecurityRoles_x003E_k__BackingField>
  </ExternalSearchItem.ExternalCalendarEvent>
</ArrayOfExternalSearchItem.ExternalCalendarEvent>

Response Information

Resource Description

AddItemsResponse
NameDescriptionTypeAdditional information
QueuedIdList

List of IDs that have been successfully accepted for index queuing within the Community site.

Collection of string

None.

Errors

List of Errors that occurred when attempting to queue the passed in External Search items.

Collection of ItemError

None.

Response Formats

application/json, text/json

Sample:
{
  "QueuedIdList": [
    "sample string 1",
    "sample string 2"
  ],
  "Errors": [
    {
      "ErrorMessage": "sample string 1",
      "Item": "sample string 2"
    },
    {
      "ErrorMessage": "sample string 1",
      "Item": "sample string 2"
    }
  ]
}

application/xml, text/xml

Sample:
<AddItemsResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/HigherLogic.API.Models.Enterprise.ExternalSearch">
  <Errors>
    <ItemError>
      <ErrorMessage>sample string 1</ErrorMessage>
      <Item>sample string 2</Item>
    </ItemError>
    <ItemError>
      <ErrorMessage>sample string 1</ErrorMessage>
      <Item>sample string 2</Item>
    </ItemError>
  </Errors>
  <QueuedIdList xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:string>sample string 1</d2p1:string>
    <d2p1:string>sample string 2</d2p1:string>
  </QueuedIdList>
</AddItemsResponse>