Search for a command to run...
v1
Annotate your reports with important dates.
Permissions: Requires read access to the site (all-sites-readonly, read:{site_id} or manage:{site_id}).
Return a list of all milestones this site owns. Milestones are sorted by created_at ascending to allow you to paginate with ease.
site_idstringrequiredCDBUGSlimitintegeroptional10starting_afterstringoptionalstarting_after is an object ID that defines your place in the list. For example, if you make a list request and receive 10 objects ending with obj_foo, your subsequent call can include starting_after=obj_foo to fetch the next page.ending_beforestringoptionalstarting_after. ending_before is an object ID that defines your place in the list.A list of milestone objects.
curl "https://api.usefathom.com/v1/sites/CDBUGS/milestones" \
-H "Authorization: Bearer YOUR_API_TOKEN" \
-H "Accept: application/json"{
"object": "list",
"url": "/api/v1/CDBUGS/milestones",
"has_more": false,
"data": [
{
"id": "ddc9cdff-ab83-41fa-96c6-dfb276a862e7",
"object": "milestone",
"name": "Website Redesign Launch",
"milestone_date": "2024-01-15 00:00:00",
"created_at": "2024-01-10 12:00:00",
"updated_at": "2024-01-10 12:00:00"
},
{
"id": "7c3a1b29-5d64-4e0a-b1f2-9a8c7e6d5f43",
"object": "milestone",
"name": "Marketing Campaign Start",
"milestone_date": "2024-02-01 00:00:00",
"created_at": "2024-01-20 09:30:00",
"updated_at": "2024-01-20 09:30:00"
}
]
}Permissions: Requires read access to the site (all-sites-readonly, read:{site_id} or manage:{site_id}).
Return a single milestone.
site_idstringrequiredCDBUGSmilestone_idstringrequiredid (UUID) of the milestone you wish to retrieve.A milestone object.
curl "https://api.usefathom.com/v1/sites/CDBUGS/milestones/ddc9cdff-ab83-41fa-96c6-dfb276a862e7" \
-H "Authorization: Bearer YOUR_API_TOKEN" \
-H "Accept: application/json"{
"id": "ddc9cdff-ab83-41fa-96c6-dfb276a862e7",
"object": "milestone",
"name": "Website Redesign Launch",
"milestone_date": "2024-01-15 00:00:00",
"created_at": "2024-01-10 12:00:00",
"updated_at": "2024-01-10 12:00:00"
}Permissions: Requires write access to the site (manage:{site_id}).
Create a milestone. Returns HTTP 201 Created on success.
site_idstringrequiredCDBUGSnamestringrequiredmilestone_datestringrequiredYYYY-MM-DD format.A milestone object.
curl -X POST "https://api.usefathom.com/v1/sites/CDBUGS/milestones" \
-H "Authorization: Bearer YOUR_API_TOKEN" \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-d '{
"name": "Website Redesign Launch",
"milestone_date": "2024-01-15"
}'{
"id": "ddc9cdff-ab83-41fa-96c6-dfb276a862e7",
"object": "milestone",
"name": "Website Redesign Launch",
"milestone_date": "2024-01-15 00:00:00",
"created_at": "2024-01-10 12:00:00",
"updated_at": "2024-01-10 12:00:00"
}Permissions: Requires write access to the site (manage:{site_id}).
Update a milestone. Both name and milestone_date are required.
site_idstringrequiredCDBUGSmilestone_idstringrequiredid (UUID) of the milestone you wish to update.namestringrequiredmilestone_datestringrequiredYYYY-MM-DD format.A milestone object.
curl -X POST "https://api.usefathom.com/v1/sites/CDBUGS/milestones/ddc9cdff-ab83-41fa-96c6-dfb276a862e7" \
-H "Authorization: Bearer YOUR_API_TOKEN" \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-d '{
"name": "Website Redesign Launch v2",
"milestone_date": "2024-01-20"
}'{
"id": "ddc9cdff-ab83-41fa-96c6-dfb276a862e7",
"object": "milestone",
"name": "Website Redesign Launch v2",
"milestone_date": "2024-01-20 00:00:00",
"created_at": "2024-01-10 12:00:00",
"updated_at": "2024-01-10 12:30:00"
}Permissions: Requires write access to the site (manage:{site_id}).
Delete a milestone. Careful — you can't undo this, and neither can we.
site_idstringrequiredCDBUGSmilestone_idstringrequiredid (UUID) of the milestone you wish to delete.Returns a deleted object on success. Otherwise, this call returns an error.
curl -X DELETE "https://api.usefathom.com/v1/sites/CDBUGS/milestones/ddc9cdff-ab83-41fa-96c6-dfb276a862e7" \
-H "Authorization: Bearer YOUR_API_TOKEN" \
-H "Accept: application/json"{
"id": "ddc9cdff-ab83-41fa-96c6-dfb276a862e7",
"object": "milestone",
"deleted": true
}