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