Can't to edit argo smarting routing via API Token

hi,

I grant all zone permissions to our API token, but I still can’t patch argo smarting routine via API token.

$curl -X PATCH "https://api.cloudflare.com/client/v4/zones/<zone-id>/argo/smart_routing" \
    -H "Content-Type :application/json" \
    -H "Authorization: Bearer <api-token>" \
    --data '{"value":"on"}'

What’s the problem?

What error message are you seeing?

403 error

HTTP/2 403 
date: Fri, 22 Oct 2021 02:18:42 GMT
content-type: application/json
cf-ray: 6a1f3c8b4f523d6c-HKG
set-cookie: __cflb=0H28vgHxwvgAQtjUGU4vq74ZFe3sNVUZRnrNZn7HueM; SameSite=Lax; path=/; expires=Fri, 22-Oct-21 04:48:43 GMT; HttpOnly
cf-cache-status: DYNAMIC
expect-ct: max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"
set-cookie: __cfruid=78248cd24da1b5eb812aa64a968c7badebcdbf34-1634869122; path=/; domain=.api.cloudflare.com; HttpOnly; Secure; SameSite=None
server: cloudflare

{"success":false,"errors":[{"code":10000,"message":"Authentication error"}]}

That’s a good question. It looks like a token permissions issue, but I don’t know which settings you need for the token.

I suggest you open a ticket via email: support AT cloudflare DOT com
and post the ticket # here as soon as you get the autoreply.

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