Create milestones using the API

Is there any operation to create milestones programmatically?

Hi @diego.corubolo and welcome to the forum.

Yes, there is! In data model terms, a milestone is just an Asana task with a resource_subtype of milestone. You can just create a task and set its resource_subtype to milestone.

FYI the API documentation hasn’t been updated yet - it says resource_subtype is read-only - but you can now write the values default_task and milestone to that field; see API for milestones?

2 Likes