> For the complete documentation index, see [llms.txt](https://api-docs.myhappyforce.com/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://api-docs.myhappyforce.com/docs/api-reference/milestone-resource.md).

# Milestone Resource

## PUT /api/v1/company/milestone/{id}

>

```json
{"openapi":"3.1.0","info":{"title":"Happyforce API","version":"v1"},"tags":[],"servers":[{"url":"{url}","description":"API URL","variables":{"url":{"description":"API Environment","enum":["https://api.happyforce.com","https://staging.happyforce.com","http://localhost:9000"],"default":"https://api.happyforce.com"}}}],"security":[{"companyAPISessionId":[]}],"components":{"securitySchemes":{"companyAPISessionId":{"type":"apiKey","description":"SessionId","name":"SessionId","in":"header"}},"schemas":{"MilestoneDTO":{"type":"object","properties":{"id":{"type":"string"},"title":{"type":"string"},"description":{"type":"string"},"hierarchyId":{"type":"string"},"createdBy":{"type":"string"},"date":{"type":"string","format":"date-time"},"type":{"$ref":"#/components/schemas/MilestoneType"},"is_private":{"type":"boolean"}}},"MilestoneType":{"type":"string","description":"Types of milestone","enum":["OTHER","ANNOUNCEMENT","TOPIC"]}}},"paths":{"/api/v1/company/milestone/{id}":{"put":{"tags":["milestone-resource"],"operationId":"updateMilestone","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/MilestoneDTO"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/MilestoneDTO"}}}}}}}}}
```

## DELETE /api/v1/company/milestone/{id}

>

```json
{"openapi":"3.1.0","info":{"title":"Happyforce API","version":"v1"},"tags":[],"servers":[{"url":"{url}","description":"API URL","variables":{"url":{"description":"API Environment","enum":["https://api.happyforce.com","https://staging.happyforce.com","http://localhost:9000"],"default":"https://api.happyforce.com"}}}],"security":[{"companyAPISessionId":[]}],"components":{"securitySchemes":{"companyAPISessionId":{"type":"apiKey","description":"SessionId","name":"SessionId","in":"header"}},"schemas":{"MilestoneDTO":{"type":"object","properties":{"id":{"type":"string"},"title":{"type":"string"},"description":{"type":"string"},"hierarchyId":{"type":"string"},"createdBy":{"type":"string"},"date":{"type":"string","format":"date-time"},"type":{"$ref":"#/components/schemas/MilestoneType"},"is_private":{"type":"boolean"}}},"MilestoneType":{"type":"string","description":"Types of milestone","enum":["OTHER","ANNOUNCEMENT","TOPIC"]}}},"paths":{"/api/v1/company/milestone/{id}":{"delete":{"tags":["milestone-resource"],"operationId":"deleteMilestone","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/MilestoneDTO"}}}}}}}}}
```

## POST /api/v1/company/milestone

>

```json
{"openapi":"3.1.0","info":{"title":"Happyforce API","version":"v1"},"tags":[],"servers":[{"url":"{url}","description":"API URL","variables":{"url":{"description":"API Environment","enum":["https://api.happyforce.com","https://staging.happyforce.com","http://localhost:9000"],"default":"https://api.happyforce.com"}}}],"security":[{"companyAPISessionId":[]}],"components":{"securitySchemes":{"companyAPISessionId":{"type":"apiKey","description":"SessionId","name":"SessionId","in":"header"}},"schemas":{"MilestoneDTO":{"type":"object","properties":{"id":{"type":"string"},"title":{"type":"string"},"description":{"type":"string"},"hierarchyId":{"type":"string"},"createdBy":{"type":"string"},"date":{"type":"string","format":"date-time"},"type":{"$ref":"#/components/schemas/MilestoneType"},"is_private":{"type":"boolean"}}},"MilestoneType":{"type":"string","description":"Types of milestone","enum":["OTHER","ANNOUNCEMENT","TOPIC"]}}},"paths":{"/api/v1/company/milestone":{"post":{"tags":["milestone-resource"],"operationId":"createMilestone","requestBody":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/MilestoneDTO"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/MilestoneDTO"}}}}}}}}}
```

## GET /api/v1/company/milestone/from/{from}/to/{to}

>

```json
{"openapi":"3.1.0","info":{"title":"Happyforce API","version":"v1"},"tags":[],"servers":[{"url":"{url}","description":"API URL","variables":{"url":{"description":"API Environment","enum":["https://api.happyforce.com","https://staging.happyforce.com","http://localhost:9000"],"default":"https://api.happyforce.com"}}}],"security":[{"companyAPISessionId":[]}],"components":{"securitySchemes":{"companyAPISessionId":{"type":"apiKey","description":"SessionId","name":"SessionId","in":"header"}},"schemas":{"MilestoneType":{"type":"string","description":"Types of milestone","enum":["OTHER","ANNOUNCEMENT","TOPIC"]},"MilestoneDTO":{"type":"object","properties":{"id":{"type":"string"},"title":{"type":"string"},"description":{"type":"string"},"hierarchyId":{"type":"string"},"createdBy":{"type":"string"},"date":{"type":"string","format":"date-time"},"type":{"$ref":"#/components/schemas/MilestoneType"},"is_private":{"type":"boolean"}}}}},"paths":{"/api/v1/company/milestone/from/{from}/to/{to}":{"get":{"tags":["milestone-resource"],"operationId":"getCompanyMilestones","parameters":[{"name":"from","in":"path","required":true,"schema":{"type":"string","format":"date-time"}},{"name":"to","in":"path","required":true,"schema":{"type":"string","format":"date-time"}},{"name":"hierarchyIds","in":"query","required":false,"schema":{"type":"array","items":{"type":"string"},"uniqueItems":true}},{"name":"private","in":"query","required":false,"schema":{"type":"boolean","default":false}},{"name":"type","in":"query","required":false,"schema":{"$ref":"#/components/schemas/MilestoneType","default":"OTHER"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/MilestoneDTO"}}}}}}}}}}
```
