Update custom user activitiy data

put

https://oaainstall-host/risk-analyzer/transaction/v1

Updates runtime data for custom user activities

Request

There are no request parameters for this operation.

Supported Media Types
Request Body - application/xml ()
Root Schema : schema
Type: array
List of runtime data for custom user activity create requests.
Show Source
Nested Schema : TransactionRequest
Type: object
Data Object to create a Transaction
Show Source
Nested Schema : contextMap
Type: array
context data
Show Source
Nested Schema : KeyValPair
Type: object
Key-value pair which can be used generically.
Show Source
Request Body - application/json ()
Root Schema : schema
Type: array
List of runtime data for custom user activity create requests.
Show Source
Nested Schema : TransactionRequest
Type: object
Data Object to create a Transaction
Show Source
Nested Schema : contextMap
Type: array
context data
Show Source
Nested Schema : KeyValPair
Type: object
Key-value pair which can be used generically.
Show Source
Back to Top

Response

Supported Media Types

200 Response

Updated custom user activity response
Body ()
Root Schema : StatusResponses
Type: array
List of status responses
Show Source
Nested Schema : StatusResponse
Type: object
Status information for API call
Show Source
Nested Schema : SessionUserData
Type: object
user related data
Show Source

400 Response

Invalid input
Body ()
Root Schema : StatusResponses
Type: array
List of status responses
Show Source
Nested Schema : StatusResponse
Type: object
Status information for API call
Show Source
Nested Schema : SessionUserData
Type: object
user related data
Show Source

401 Response

Unauthorized

500 Response

Internal server error

503 Response

Service Unavailable
Back to Top

Examples

The following example shows a sample request and response for updating runtime data for custom user activities.

cURL Command to Update Runtime Data for Custom User Activity in JSON Format

curl --location --request PUT '<RISK>/risk-analyzer/transaction/v1' \
--header 'Content-Type: application/json' \
--header 'Authorization: Basic <Base64Encoded(<username>:<password>)>' \
--data '[
    {
        "requestId": "4fb04854-cd02-492d-ab87-164a87b7d06e",
        "transactionId": "7",
        "transactionKey": "Credit Card Activity",
        "status":1,
        "contextMap": [
            {
                "key": "transaction.price",
                "value": "400"
            },
            {
                "key": "CC.name",
                "value": "Mastercard"
            }
        ]
    }
]'

Sample Response in JSON Format

[
    {
        "responseCode": "0",
        "responseMessage": "",
        "status": true,
        "transactionId": 7
    }
]

cURL Command to Update Runtime Data for Custom User Activity in XML Format

curl --location --request PUT '<RISK>/risk-analyzer/transaction/v1' \
--header 'Content-Type: application/xml' \
--header 'Accept: application/xml' \
--header 'Authorization: Basic <Base64Encoded(<username>:<password>)>' \
--data '
<?xml version="1.0" encoding="UTF-8" ?>
<TransactionRequests>
    <TransactionRequest>
	<requestId>4fb04854-cd02-492d-ab87-164a87b7d06e</requestId>
	<transactionId>7</transactionId>
	<transactionKey>Credit Card Activity</transactionKey>
	<status>1</status>
	<contextMap>
		<key>transaction.price</key>
		<value>400</value>
	</contextMap>
	<contextMap>
		<key>CC.name</key>
		<value>Mastercard</value>
	</contextMap>
</TransactionRequests>
    </TransactionRequest>
'

Sample Response in XML Format

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<StatusResponses>
    <StatusResponse>
	<responseCode>0</responseCode>
	<responseMessage></responseMessage>
	<status>true</status>
	<transactionId>7</transactionId>
    </StatusResponses>
</StatusResponse>
Back to Top