Get an article status

get

/km/api/v1/articleStatus/{id}

This method returns the ArticleStatus object that has the specified ID.

Example URIs

The example URIs for this method are as follows:

  • http://<IM_REST_API_HOST>/km/api/latest/articleStatus/{id}

    The request returns an ArticleStatus object with the specified ID parameter in FULL mode.

  • http://<IM_REST_API_HOST>/km/api/latest/articleStatus/{id}?mode=DATA

    The request returns an ArticleStatus object with the specified ID parameter in DATA mode.

  • http://<IM_REST_API_HOST>/km/api/latest/articleStatus/{id}?mode=KEY

    The request returns an ArticleStatus object with the specified ID parameter in KEY mode.

Response Errors

The possible error responses for this method are as follows:

  • OKDOM-GEN0001

    This error occurs when an ArticleStatus object with the specified unique identifier cannot be found.

Request

Path Parameters
  • The unique identifier of the object to be retrieved.
Back to Top

Response

Supported Media Types

200 Response

OK.
Body ()
Root Schema : ArticleStatus
Type: object
Title: ArticleStatus
Show Source
Nested Schema : localizedAttributes
Type: array
List of LocalizedAttributes of this ArticleStatus in various Locales
Show Source
Nested Schema : LocalizedAttributes
Type: object
Title: LocalizedAttributes
Show Source
Back to Top

Examples

The following example shows how to find the ArticleStatus object that has the specified unique identifier.

curl -X "GET" "http://<IM_REST_API_HOST>/km/api/latest/articleStatus/{id}"

Example of Request Header

The following shows an example of the request header.

curl -X GET https://<IM_REST_API_HOST>/km/api/latest/articleStatus/{id} -u "<username:password>" -H "Accept: application/json" -H "Content-Type: application/json"

Example of Response Body

The following example shows the contents of the response body in JSON format:

{
    "recordId": "DF4F09BD045D4E9ABC5DC5B7601C88C2",
    "referenceKey": "NEW_ARTICLE_STATUS",
    "name": "New Article Status",
    "links": [
        {
            "rel": "canonical",
            "href": "https://<IM_REST_API_HOST>/km/api/v1/articleStatus/DF4F09BD045D4E9ABC5DC5B7601C88C2",
            "mediaType": "application/json, application/xml",
            "method": "GET"
        },
        {
            "rel": "collection",
            "href": "https://<IM_REST_API_HOST>/km/api/v1/articleStatus",
            "mediaType": "application/json, application/xml",
            "method": "GET",
            "profile": "https://<IM_REST_API_HOST>/km/api/v1/metadata-catalog/articleStatus"
        }
    ],
    "dateAdded": "2019-04-11T07:23:25+0000",
    "dateModified": "2019-04-11T07:23:27+0000",
    "active": true,
    "localizedAttributes": [
        {
            "localeId": "en_US",
            "name": "New Article Status"
        },
        {
            "localeId": "ar_EG",
            "name": "New Article Status"
        },
        {
            "localeId": "zh_CN",
            "name": "New Article Status"
        },
        {
            "localeId": "da_DK",
            "name": "New Article Status"
        },
        {
            "localeId": "fr_FR",
            "name": "New Article Status"
        },
        {
            "localeId": "de_DE",
            "name": "New Article Status"
        },
        {
            "localeId": "es_ES",
            "name": "New Article Status"
        },
        {
            "localeId": "sv_SE",
            "name": "New Article Status"
        }
    ]
}
Back to Top