Am trying to list the values for custom field . I have access to view/select the list of values of that custom field.
And I give this URL -
# This code sample uses the 'requests' library: # http://docs.python-requests.org import requests import json url = "https://mags.arisglobal.com/rest/api/3/field/customfield_10403/context/32098/option" # url = "https://mags.arisglobal.com/rest/api/3/customFieldOption/32098" auth_token = "xxx" headers = { "Authorization": f"Bearer {auth_token}", "Accept": "application/json" } response = requests.get( url, headers=headers ) def get_pretty_print(json_object): return json.dumps(json_object, sort_keys=True, indent=4, separators=(',', ': ')) if response.status_code == 200: print(get_pretty_print(response.text)) # print(json.dumps(json.loads(response.text), sort_keys=True, indent=4, separators=(",", ": ")))
It gave status code as 200 but returning html of logging page.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.