Skip to main content

Service Documentation: "Post Update"

The "Post Update" service enables data updating via an HTTP POST request. Its primary function is to facilitate the modification of records or information within the system, such as user profiles, configurations, and content. This helps maintain up-to-date and accurate data within the application or system where it's implemented.

Update

Service Overview

  • Service Name: Post Update
  • URL{URL_Base}/api/v1/Update
  • Method: POST
  • Functionality:service allows users to modify existing records or information within the system by sending an HTTP POST request to the designated endpoint. This functionality is crucial for keeping the data within the application or system current and accurate. Users can update various types of data, such as user profiles, configurations, content, or any other relevant information managed by the system. The service processes the POST request and applies the specified changes to the appropriate records, ensuring that the system reflects the most recent updates made by users or administrators.

Request Parameters:  

  • cid: The customer ID that we will provide you
  • csid:  Bank session ID
  • userID:  Bank user ID
  • additionalData: Key value pair dictionary (the generic values can be viewed above)

Response Structure

The API responds with a JSON object listing the risk levels configured within the system. Each entry in the response includes:

  • success:  Operation Status Code

Example Response

 

{
  "success": 1
}

Example CURL Request

To query the risk for a specific project, utilize the following curl command:

curl -X 'POST' \
  'https://fraud-detector-api.statsd.io/api/v1/update' \
  -H 'accept: application/json' \
  -H 'apiKey: [Your_API_Key]' \
  -H 'Content-Type: application/json' \
  -d '{
  "cid": "[Your_Cid]",
  "csid": "demo0883d839",
  "userID": "1193539722",
  "additionalData": {}
}'

Make sure you replace {BaseURL} with the actual base URL of the service, and your_api_key with the API key provided to you.