Content Search - AcceleratorKMS - Version 3.12 - Help - Hexagon

AcceleratorKMS API Guide

Language
English
Product
AcceleratorKMS
Search by Category
Help
AcceleratorKMS Version
3.12

Use the Content Search API to gather data on content, such as status, version, domain, and dates.

URL

https://AcceleratorKMS_URL/api/Content/Search

Where:

AcceleratorKMS_URL is replaced with your AcceleratorKMS instance.

HTTP Verb

Make an HTTP Post request using the following header and parameters.

Header

Key

Value

Description

Authorization

bearer <token>

Actual token value acquired from the authentication step

Content-Type

application/json

Designates the POST’s content response as JSON format

Parameters

At least one search parameter is required for the request to proceed.

Parameter

Type

Description

SearchText

String

Title in any language

Status

Array

Can be "Published", "Draft", "Partially Published", "Expired", "Archived"

LimitSearchResults

Integer

Represents the number of results to return

ModifiedStartDate

Integer

Content Modified no earlier than X days ago (lower bound)

ModifiedEndDate

Integer

Content Modified no later than X day ago (upper bound)

ModifiedStartDateCustom

Date

YYYY-MM-DD (lower bound)

ModifiedEndDateCustom

Date

YYYY-MM-DD (upper bound)

ExpiresBy

Integer

Content expires by X number of days

ExpiresByCustom

Date

YYYY-MM-DD Date by when contents are expired.

TemplateOption

String

"All" (default), "Generated", "Coupled", "Decoupled", "Non-templated"

OrganicReview

Boolean

Indicates if organic review is enabled or not. If not used in the query, then all results are returned. Can be "true" or "false".

Response Parameters

Content Search Response - JSON Format

Description

Id

Content GUID

Title

Title text of the procedure in (base language)

Titles

All the titles available for the procedures (multi-language)

Description

Description added in the content

ContentTypeName

Type of the content: Procedure, Process, etc.

ContentTypeId

GUID for content type

ExpiryDate

Expiry date of the content; "null" if content is draft or archived

ClassificationId

Domain GUID

ClassificationPath

Domain full path

ModifiedDate *

If the content has a published version, it will report the Modified date for the published version. If not, it will report the modified date of the latest draft.

ModifiedBy *

Username of the person who last modified the content

VersionNumber

The current version of the document

CreatedBy *

Username

CreatedDate *

Date when content was created

Status

The status of the content. If a published and draft version both exist, this will show "Published" because that is the version that is shown when searching.

OrganicReview

True if enabled, otherwise false

ExtendExpiryMonths

Number of months by which the expiry date will extend when an organic review occurs

* Additional fields included in API response that are not available from All Content Search within AcceleratorKMS

Sample Query

{"SearchText":"EVAP123 - Evaporator - Shutdown","Status":["Published"]}

Sample Response (JSON)

"Id": "5c8897f7-c6eb-993h-cc6f-090p7b5be9cd",

"Title": "EVAP123 - Evaporator - Shutdown",

"Titles": {

"en-CA": "EVAP123 - Evaporator - Shutdown",

"fr-CA": "EVAP123 - Évaporateur - Arrêt"

},

"Description": "Steps to bring Evaporator EVAP123 from normal operation to a complete shutdown.",

"Descriptions": {

"en-CA": "Steps to bring Evaporator EVAP123 from normal operation to a complete shutdown.",

"fr-CA": "Étapes pour amener Évaporateur EVAP123 de fonctionnement normal à l'arrêt complet."

},

"ContentTypeName": "Procedure",

"ContentTypeId": "g55940fd-f0ed-4256-8d98-3cbff2a114a2",

"ClassificationPath": "Global",

"ClassificationId": "00000000-0000-0000-0000-000000000000",

"ModifiedDate": "2022-11-24T18:19:44.94Z",

"ModifiedBy": "erin.jones@company.com",

"ExpiryDate": "2025-11-24T23:59:59Z",

"VersionNumber": "1.0.0",

"CreatedBy": "erin.jones@company.com",

"CreatedDate": "2018-07-27T12:53:47.66Z",

"Status": "Published",

"OrganicReview": true,

"ForWorkflows": false,

"ExtendExpiryMonths": 36