API Token Change in 4.7?

Hello,

Has there been a change in how to format the API token when making API Calls?

I was using it just fine in 4.6, but when I try it in 4.7, I’m getting Forbidden errors.

I believe it should be a Header Authorization formatted like below.

“Authorize” : “Token aa33bb33cc33dd44ee44”

Thanks,
Daniel

Hi,

Looking at the release notes and the git log there does not appear to be any REST API change. Try obtaining a new token:

https://docs.mayan-edms.com/apps/rest_api/index.html#api-tokens

I’ve tried that. I’ll try again, maybe I messed up a step.

Is it possible the force the token to be recreated?

Every time I call for a token it’s the same one.

This whole issue was from a mistake I made.

I forgot to assign the user group to a role. Once I did that, everything worked. :flushed:

1 Like

Thanks for the follow up!

1 Like

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