[RESOLVED] As suspected the issue had to do with the way in which I was formatting my request. For reasons I am not clear on the additional level created by the nested custom_fields dictionary was not being formatted in correct JSON format. I was able to resolve this using requests JSON parameter. ``` def postTaskToAsana(taskName, taskURL, taskCreated, taskCompleted, taskDue): token [your value] bearerToken [your value] " + token header = { "Authorization" : bearerToken } options = { "data" : { "projects" : ["123412341234"], "name" : "Review Task: " + taskName, "notes" : "Please review this task for where the process failed.\nTask: " + taskURL, "assignee" : "123412341234", "followers" : ["123412341234"], "custom_fields" : { "123412341234" : taskCreated, "123412342134" : taskDue, "123412341234" : taskCompleted } } } url = "https://app.asana.com/api/1.0/tasks" r = requests.post(url, headers=header, json=options) return r ```

Context: Stack Overflow question (score 2, has accepted answer): I am attempting to create a new task using the Asana API with https://app.asana.com/api/1.0/tasks endpoint. I have been successful in creating some test tasks in the desired project. However I am now trying to also set the values of the custom fields and seem to be hitting a road block. I am using the Python request library. I have a feeling this is an issue with the way I have formatted the post. I have checked a number of sources, including here, as well tinkered and modified the way in which I structure the "options" dictionary. However it does not seem to help. ``` def postTaskToAsana(taskName, taskURL, taskCreated, taskCompleted, taskDue): token [your value] bearerToken [your value] " + token header = { "Authorization" : bearerToken } options = { "projects" : ["234234234"