Hello all,
I am trying to create a subtask with custom fields and I get the following error message. However, I don’t understand where the JSON error should be.
error message:
b'{"errors":[{"message":"custom_fields: Value is not a JSON object: 123456789","help":"For more information on API status codes and how to handle them, read the docs on errors: https://developers.asana.com/docs/errors"}]}'
My code:
url = "https://app.asana.com/api/1.0/tasks/" + id + "/subtasks"
data = {
"workspace": "123456789",
"projects": "123456789",
"team": "123456789",
"assignee": "123456789",
"name": "my subtask",
"completed": "False",
"custom_fields": {"123456789": "testcustomfield"},
}
I have anonymised the IDs.
Thank you!