POST api/v2.0/ExternalSearch/AddBlogItems
Add External Blog Items to the Search Results.
Request Information
URI Parameters
None.
Body Parameters
External Blog Items to add.
Collection of ExternalBlogName | Description | Type | Additional information |
---|---|---|---|
ContributorLegacyContactKey | string |
None. |
|
Additional | Collection of string |
None. |
|
Code | string |
None. |
|
CreatedOn | date |
None. |
|
Description | string |
None. |
|
ID | string |
None. |
|
IsDelete | boolean |
None. |
|
Tags | Collection of TagInfo |
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:50:22.1997089Z", "Description": "sample string 4", "ID": "sample string 5", "IsDelete": true, "Tags": [ { "Tag": "sample string 1", "TagGroup": "sample string 2" }, { "Tag": "sample string 1", "TagGroup": "sample string 2" } ], "Title": "sample string 7", "Url": "sample string 8", "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:50:22.1997089Z", "Description": "sample string 4", "ID": "sample string 5", "IsDelete": true, "Tags": [ { "Tag": "sample string 1", "TagGroup": "sample string 2" }, { "Tag": "sample string 1", "TagGroup": "sample string 2" } ], "Title": "sample string 7", "Url": "sample string 8", "ViewSecurityRoles": [ "sample string 1", "sample string 2" ] } ]
application/xml, text/xml
Sample:
<ArrayOfExternalSearchItem.ExternalBlog xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/HigherLogic.Business.Core"> <ExternalSearchItem.ExternalBlog> <_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:50:22.1997089-04:00</_x003C_CreatedOn_x003E_k__BackingField> <_x003C_Description_x003E_k__BackingField>sample string 4</_x003C_Description_x003E_k__BackingField> <_x003C_ID_x003E_k__BackingField>sample string 5</_x003C_ID_x003E_k__BackingField> <_x003C_IsDelete_x003E_k__BackingField>true</_x003C_IsDelete_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_Title_x003E_k__BackingField>sample string 7</_x003C_Title_x003E_k__BackingField> <_x003C_Url_x003E_k__BackingField>sample string 8</_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.ExternalBlog> <ExternalSearchItem.ExternalBlog> <_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:50:22.1997089-04:00</_x003C_CreatedOn_x003E_k__BackingField> <_x003C_Description_x003E_k__BackingField>sample string 4</_x003C_Description_x003E_k__BackingField> <_x003C_ID_x003E_k__BackingField>sample string 5</_x003C_ID_x003E_k__BackingField> <_x003C_IsDelete_x003E_k__BackingField>true</_x003C_IsDelete_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_Title_x003E_k__BackingField>sample string 7</_x003C_Title_x003E_k__BackingField> <_x003C_Url_x003E_k__BackingField>sample string 8</_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.ExternalBlog> </ArrayOfExternalSearchItem.ExternalBlog>
Response Information
Resource Description
AddItemsResponseName | Description | Type | Additional 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>