Recurring due dates via API?

When utilizing any of the task APIs, particularly the “Duplicate a task” or the “Update a task”…

Is it possible to specify a recurring due date?

Hi @FreshyJon,

No, task recurrence is not supported by the API. Last it was discussed here in the forum (which was a while ago I think) , Asana indicated they had no plans to add that support - so I wouldn’t hold my breath for it.

1 Like

Circling back here, is there still no way to do recurring due dates on a task, via the API? I’m creating a new task via Zapier, and want to then set a recurring due date on it.

Still not available in the API…

Hello!
I’m happy to let you know that this is available. To create a task, you’ll need to pass the recurrence key with this data.

{'data': {'days_of_week': [1], 'frequency': 2}, 'type': 'weekly'}

request example

request_body = {
            "name": "Some title",
            "projects": 123123123
            "due_on": YYYY-MM-DD
            "recurrence": {"data": {"days_of_week": [1], "frequency": 2}, "type": "weekly"}
        }

this will create a task that will be repeated every 2 weeks on Monday

6 Likes

Whoa, @Lukash_Oleksandr, you’re right, this does work!

And similarly one can also retrieve the recurrence info for a task by using opt_fields=recurrence

This is undocumented and the Asana API team has always said recurrence info is not available in the API, so this is a big shock to me!

@John_Baldo is this new, and whether it is nor not, can you get it added to the API docs? Thanks!

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.