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
- application/xml
- application/json
Root Schema : schema
Type:
arrayList of runtime data for custom user activity create requests.
Show Source
-
Array of:
object TransactionRequest
Data Object to create a Transaction
Nested Schema : TransactionRequest
Type:
objectData Object to create a Transaction
Show Source
-
analyzePatterns: boolean
true if patterns should be analyzed
-
contextMap(required): array
contextMap
context data
-
externalTransactionId: string
external transaction id
-
requestId(required): string
request identifier.
-
requestTime: string
(date-time)
Date time string in the format rfc3339 sec 5.6. https://tools.ietf.org/html/rfc3339#section-5.6 e.g format 2021-08-13T01:29:29.768Z
-
status(required): integer
status of the transaction.
-
transactionId: number
Transaction identifier, generally used to update the transaction.
-
transactionKey(required): string
Key of the transaction
Nested Schema : contextMap
Type:
arraycontext data
Show Source
-
Array of:
object KeyValPair
Key-value pair which can be used generically.
Nested Schema : KeyValPair
Type:
objectKey-value pair which can be used generically.
Show Source
-
key(required): string
Key that can be used to fetch the related value.
-
value(required): object
value
associated value.
Nested Schema : value
Type:
objectassociated value.
Root Schema : schema
Type:
arrayList of runtime data for custom user activity create requests.
Show Source
-
Array of:
object TransactionRequest
Data Object to create a Transaction
Nested Schema : TransactionRequest
Type:
objectData Object to create a Transaction
Show Source
-
analyzePatterns: boolean
true if patterns should be analyzed
-
contextMap(required): array
contextMap
context data
-
externalTransactionId: string
external transaction id
-
requestId(required): string
request identifier.
-
requestTime: string
(date-time)
Date time string in the format rfc3339 sec 5.6. https://tools.ietf.org/html/rfc3339#section-5.6 e.g format 2021-08-13T01:29:29.768Z
-
status(required): integer
status of the transaction.
-
transactionId: number
Transaction identifier, generally used to update the transaction.
-
transactionKey(required): string
Key of the transaction
Nested Schema : contextMap
Type:
arraycontext data
Show Source
-
Array of:
object KeyValPair
Key-value pair which can be used generically.
Nested Schema : KeyValPair
Type:
objectKey-value pair which can be used generically.
Show Source
-
key(required): string
Key that can be used to fetch the related value.
-
value(required): object
value
associated value.
Nested Schema : value
Type:
objectassociated value.
Response
Supported Media Types
- application/xml
- application/json
- text/plain
200 Response
Updated custom user activity response
Root Schema : StatusResponses
Type:
arrayList of status responses
Show Source
-
Array of:
object StatusResponse
Status information for API call
Nested Schema : StatusResponse
Type:
objectStatus information for API call
Show Source
-
responseCode: string
status code of the request
-
responseMessage: string
response message related to the response code if needed.
-
sessionId: string
session id of the authentcation.
-
status: boolean
authentication update request status
-
transactionId: number
transactionId in case of transaction data.
-
userData: object
SessionUserData
user related data
Nested Schema : SessionUserData
Type:
objectuser related data
Show Source
-
groupName(required): string
group name
-
loginName(required): string
Login name used for authentication
-
userId: string
user identifier.
400 Response
Invalid input
Root Schema : StatusResponses
Type:
arrayList of status responses
Show Source
-
Array of:
object StatusResponse
Status information for API call
Nested Schema : StatusResponse
Type:
objectStatus information for API call
Show Source
-
responseCode: string
status code of the request
-
responseMessage: string
response message related to the response code if needed.
-
sessionId: string
session id of the authentcation.
-
status: boolean
authentication update request status
-
transactionId: number
transactionId in case of transaction data.
-
userData: object
SessionUserData
user related data
Nested Schema : SessionUserData
Type:
objectuser related data
Show Source
-
groupName(required): string
group name
-
loginName(required): string
Login name used for authentication
-
userId: string
user identifier.
401 Response
Unauthorized
500 Response
Internal server error
503 Response
Service Unavailable
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>