https://www.ory.sh/ logo
n

narrow-boots-20963

10/04/2021, 5:52 PM
Hi Everyone, Anyone knows where can i find examples of the endpoint
PATCH /clients/{client_id}
? I want to update the audience of a client, but i cant figure how to make the request. I saw the docs but they aren't clear. Thanks,
w

wooden-camera-81341

10/05/2021, 12:18 PM
Hi Andres! I used the following patch request to include a redirect_url for a client:
Copy code
curl -X PATCH \
  <https://hydra:4445/clients/myclient> \
  -H 'content-type: application/json' \
  -d '[{
  "op": "add",
  "path":"/redirect_uris/-",
  "value": "<https://mydomain.com/callback>"
}]'
n

narrow-boots-20963

10/05/2021, 11:24 PM
Hi @wooden-camera-81341, Works for me, thanks! 👋
w

wooden-camera-81341

10/05/2021, 11:24 PM
😉
3 Views