Modify custom user attribute with access token

Hi,

Is there an API endpoint where an app can modify a custom user attribute and the endpoint uses the access token issued for the user during the OpenID Connect login flow for authentication?

I’m developing a single page web app, so using the endpoints with SSWS api keys are not an option.

Thanks,
Csaba

https://developer.okta.com/docs/reference/token-hook/