## Update KYC review to get a hosted KYC link {% #update-redirect-url %} {% section %} {% panel-left %} **`PATCH /v1/profiles/{profileId}/kyc-reviews/{kycReviewId}`** Updates the KYC review with a redirect url. Returns KYC review object with a **`link`** field containing a url where the end customer needs to be directed in order to complete the Hosted KYC flow. Once Hosted KYC flow is completed by the end customer, they will be redirected to the `redirectUrl` provided in this API call. During the redirection, the `redirectUrl` will be appended with query parameters: `status=success` or `status=error`, indicating whether Hosted KYC flow was completed successfully or not. {% fields title="Request Fields" %} {% field name="redirectUrl" format="string" %} URL where the user will be redirected at the end of the flow. Can contain query params and path fragments. It has to be a valid URL as per [RFC2396](https://www.ietf.org/rfc/rfc2396.txt). {% /field %} {% /fields %} {% fields title="Response" %} Possible HTTP status codes {% field name="200 - OK" %} Returns updated KYC Review object {% /field %} {% field name="400 - Bad Request" %} Invalid request. (e.g. not valid URI) {% /field %} {% field name="401 - Unauthorized" %} User is not authorized to access the resource {% /field %} {% field name="404 - Not Found" %} KYC Review not found {% /field %} {% /fields %} {% /panel-left %} {% panel-right %} {% example-box title="Example Request" %} ```shell curl -L -X PATCH \ 'https://api.sandbox.transferwise.tech/v1/profiles/{personalProfileId}/kyc-reviews/{kycReviewId}' \ -H 'Content-Type: application/json' \ -H 'Authorization: Bearer ' \ -d '{ "redirectUrl": "https://example.com" }' ``` {% /example-box %} {% example-box title="Example Response" %} ```json { "id": "46e1a5c4-4a9b-4563-39d3-18174d3ac0f8", "createdAt": "2024-09-03T16:22:02.257725", "updatedAt": "2024-09-03T16:29:41.147522", "requiredBy": "2024-09-03T16:22:02.257725", "status": "WAITING_CUSTOMER_INPUT", "link": { "value": "https://sandbox.transferwise.tech/embedded-flows/verification?token=d7332edb-25bf-41af-a4e9-09f5efe39ded&checkId=3120073", "expiresAt": "2024-09-03T16:29:41.203225146" }, "triggerReferences": [{ "type": "QUOTE", "triggerData": { "id": "ba83s43a-f623-46f0-956d-196c13e2ab01" } }], "redirectUrl": "https://example.com" } ``` {% /example-box %} {% /panel-right %} {% /section %}