Replace an interaction context enrichment.

put

/admin/interactionContextEnrichments/{id}

Request

Path Parameters
Supported Media Types
Request Body - application/json ()
Root Schema : schema
Type: object
Show Source
Nested Schema : interaction-context-enrichment-specification-item
Type: object
Show Source
Match One Schema
Show Source
Nested Schema : context-items
Type: array
Minimum Number of Items: 1
Show Source
Nested Schema : interaction-context-change-mode
Type: object
Change mode of the interaction context .
Show Source
Nested Schema : items
Type: object
Show Source
Match One Schema
Show Source
Nested Schema : interaction-context-source
Type: object
Show Source
  • Allowed Values: [ "ContentJSONPathSelector", "ContentJSONPointerSelector", "HeaderSelector", "QueryParameterSelector", "PathParameterSelector" ]
    The kind of selector. ContentJSONPathSelector: payload selection based on JSONPath ContentJSONPointerSelector: payload selection based on JSONPointer HeaderSelector: the name of a header QueryParameterSelector: the name of a query parameter PathParameterSelector: the name of a path parameter .
  • Allowed Values: [ "REQUEST", "RESPONSE" ]
    The message direction. request from the caller or from the response .
  • The specific selection string. In case there is no match, then the specific context element is not modified or created .
Match One Schema
Show Source
Nested Schema : new-context-expiry
Type: object
Declares the maximum lifetime of an initiated interaction context. A maximum 59 minutes. Defaults to ten minutes .
Show Source
Back to Top

Response

Supported Media Types

200 Response

OK
Body ()
Root Schema : InteractionContextEnrichment
Type: object
Show Source
Nested Schema : interaction-context-enrichment-specification-item
Type: object
Show Source
Match One Schema
Show Source
Nested Schema : context-items
Type: array
Minimum Number of Items: 1
Show Source
Nested Schema : interaction-context-change-mode
Type: object
Change mode of the interaction context .
Show Source
Nested Schema : items
Type: object
Show Source
Match One Schema
Show Source
Nested Schema : interaction-context-source
Type: object
Show Source
  • Allowed Values: [ "ContentJSONPathSelector", "ContentJSONPointerSelector", "HeaderSelector", "QueryParameterSelector", "PathParameterSelector" ]
    The kind of selector. ContentJSONPathSelector: payload selection based on JSONPath ContentJSONPointerSelector: payload selection based on JSONPointer HeaderSelector: the name of a header QueryParameterSelector: the name of a query parameter PathParameterSelector: the name of a path parameter .
  • Allowed Values: [ "REQUEST", "RESPONSE" ]
    The message direction. request from the caller or from the response .
  • The specific selection string. In case there is no match, then the specific context element is not modified or created .
Match One Schema
Show Source
Nested Schema : new-context-expiry
Type: object
Declares the maximum lifetime of an initiated interaction context. A maximum 59 minutes. Defaults to ten minutes .
Show Source

400 Response

Bad Request
Body ()
Root Schema : Error
Type: object
Used when an API throws an Error, typically with a HTTP error response-code (3xx, 4xx, 5xx).
Show Source

401 Response

Unauthorized
Body ()
Root Schema : Error
Type: object
Used when an API throws an Error, typically with a HTTP error response-code (3xx, 4xx, 5xx).
Show Source

403 Response

Forbidden
Body ()
Root Schema : Error
Type: object
Used when an API throws an Error, typically with a HTTP error response-code (3xx, 4xx, 5xx).
Show Source

404 Response

Not Found
Body ()
Root Schema : Error
Type: object
Used when an API throws an Error, typically with a HTTP error response-code (3xx, 4xx, 5xx).
Show Source

409 Response

Conflict
Body ()
Root Schema : Error
Type: object
Used when an API throws an Error, typically with a HTTP error response-code (3xx, 4xx, 5xx).
Show Source

500 Response

Internal Server Error
Body ()
Root Schema : Error
Type: object
Used when an API throws an Error, typically with a HTTP error response-code (3xx, 4xx, 5xx).
Show Source
Back to Top

Examples

The following example shows how to replace an integration context enrichment by submitting a PUT request on the REST resource using cURL.

cURL Command

curl -H 'Authorization: Bearer <Token>' -X PUT https://{FABRIC_HOST}/admin/interactionContextEnrichments/{id} -H "Content-Type: application/json" -D @replace_ICE.json | json_pp

Example of Request Body

The following shows an example of the request body in JSON format.

{
    "interaction-context-enrichment-specification-link-key": "CM-B2C-New",
    "interaction-context-enrichment-specification-item": {
        "interaction-context-change-mode": {
            "new-context-expiry": {
                "expiry-uom": "sec",
                "expiry-units": 59
            },
            "operation-mode": "UNSAFE",
            "requires-existing-context": false,
            "existing-context-handling": "enrich"
        },
        "context-items": [
            {
                "interaction-context-key-name": "source-system",
                "interaction-context-fixed-value": "CM-B2C"
            }
        ]
    }
}

Example of Response Body

The following shows an example of the response body in JSON format.

{
    "id": "ICSE1650526055",
    "interaction-context-enrichment-specification-link-key": "CM-B2C-New",
    "interaction-context-enrichment-specification-item": {
        "interaction-context-change-mode": {
            "new-context-expiry": {
                "expiry-uom": "sec",
                "expiry-units": 59
            },
            "operation-mode": "UNSAFE",
            "requires-existing-context": false,
            "existing-context-handling": "enrich"
        },
        "context-items": [
            {
                "interaction-context-key-name": "source-system",
                "interaction-context-fixed-value": "CM-B2C"
            }
        ]
    }
}
Back to Top