Expand my Community achievements bar.

SOLVED

Not able to generate access token

Avatar

Level 1

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())

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

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

Thanks, Sathees

View solution in original post

1 Reply

Avatar

Correct answer by
Community Advisor

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

Thanks, Sathees