Not able to generate access token | Community
Skip to main content
May 15, 2024
Solved

Not able to generate access token

  • May 15, 2024
  • 1 reply
  • 630 views

Hi, we are trying to generate access token but we are getting below error

{
    "error": {
        "message": "method PUT is not allowed for authorization type EAUTH_JWT_COOKIE_WITHOUT_CSRF"
    }
}
 
we are using the below endpoint

import requests
import json

WORKFRONT_API_URL = "https://gartnerdigitalmarkets.my.workfront.com/attask/api/v14.0"
WORKFRONT_API_VERSION = "/attask/api/v14.0"
response = requests.put(url=f'{WORKFRONT_API_URL}{WORKFRONT_API_VERSION}/user?action=generateApiKey&username=[ email id ]&password=[ password ]&method=put')

print(response.json())

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by SatheeskannaK

Looks like this is related to the workfront. Take a look at this documentation. Moving this question to workfront community.

1 reply

SatheeskannaK
Community Advisor
SatheeskannaKCommunity AdvisorAccepted solution
Community Advisor
May 15, 2024

Looks like this is related to the workfront. Take a look at this documentation. Moving this question to workfront community.

Thanks, Sathees