[Urgent]Update a case rating error:401

Matrix
Matrix Newcomer
edited February 28 in World-Check One

Hi Lseg:
Please let me know is there something I miss?
I try to update case rate but it's show me 401 error,I follow the sample code and template document.

Request header like follow:
Date: Fri, 28 Feb 2025 03:21:21 GMT
Content-Length: 0
Connection: keep-alive
Authorization: WWW-Authenticate: Signature realm="World-Check One API",algorithm="hmac-sha256",headers="(request-target) host date content-type content-length"
Content-Security-Policy: default-src 'none'; frame-ancestors 'none'
Strict-Transport-Security: max-age=15552000; includeSubDomains
X-Frame-Options: DENY
X-XSS-Protection: 1; mode=block
X-Content-Type-Options: nosniff

API:PUT https://api.risk.lseg.com/screening/v2/cases/{caseSystemId}/rating
Sample code:
HttpResponse<String> response = Unirest.put("https://api.risk.lseg.com/screening/v2/cases/%7BcaseSystemId%7D/rating")
.header("Authorization", "SOME_STRING_VALUE")
.header("Date", "SOME_STRING_VALUE")
.header("Content-Type", "SOME_STRING_VALUE")
.header("Content-Length", "SOME_INTEGER_VALUE")
.body("{"caseRating":"NO_RISK","reason":"string"}")
.asString();

Reference document:https://developers.lseg.com/content/dam/devportal/en_us/product-docs/wc1-api/documentation/v2/schema-reference/wc1-api-schema-reference-documentation.html#tag/case-rating/operation/saveCaseRating

My local env is JDK 17 and MacOS


King regards

Answers

  • Matrix
    Matrix Newcomer
    • 😂
      It's fixed,I think lseg document have some issue
  • Hi @Matrix,

    Apologies for any inconvenience. We will review the sample code and make the necessary updates. We are pleased to hear that you were able to resolve the issue. Should you have any further questions, please do not hesitate to contact us.

    Thanks,
    Ram.