Patch OAuth Client API

Hi All,

We are trying to increase the expiry of oauth token for one of the clients, however the call fails with below error:

API call -
curl --location --request PATCH ‘https:///v3/oauth-clients/:id’
–header ‘Content-Type: application/json-patch+json’
–header ‘Accept: application/json’
–header ‘Authorization: Bearer <bearer_token>’
–data ‘{
“op”: “replace”,
“path”: “/accessTokenValiditySeconds”,
“value”: 1000
}’

Response -
{
“messages”: [
{
“localeOrigin”: “DEFAULT”,
“text”: “The request was syntactically correct but its content is semantically invalid.”,
“locale”: “en-US”
}
],
“detailCode”: “400.1 Bad request content”,
“trackingId”: “e8d459f9-c792-460d-9b1e-4060d0143f1b”
}

Has anyone faced this issue before for PATCH /v3/oauth-clients/:id API?

Thanks,
Shailee

That one works for me

Thanks @kjakubiak . Changed the value to string, however it doesn’t work. Just wondering if any changes are to be made on the ORG/tenant before running the API

Hi @kjakubiak , we managed to resolve it. We were using expired clientID. Thank you for the pointers.

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.