> 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/company-files-resource.md).

# Company Files Resource

## POST /api/v1/company/files

>

```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":{"AttachmentResponse":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"fileType":{"type":"string"},"filePath":{"type":"string"},"fileSize":{"type":"number","format":"double"}}}}},"paths":{"/api/v1/company/files":{"post":{"tags":["company-files-resource"],"operationId":"uploadPublicFile","parameters":[{"name":"file","in":"query","required":true,"schema":{"type":"array","items":{"type":"string","format":"binary"}}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/AttachmentResponse"},"uniqueItems":true}},"*/*":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/AttachmentResponse"},"uniqueItems":true}}}}}}}}}
```

## DELETE /api/v1/company/files

>

```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":{"AttachmentResponse":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"fileType":{"type":"string"},"filePath":{"type":"string"},"fileSize":{"type":"number","format":"double"}}}}},"paths":{"/api/v1/company/files":{"delete":{"tags":["company-files-resource"],"operationId":"deletePublicFile","parameters":[{"name":"attachmentId","in":"query","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/AttachmentResponse"}}}}}}}}}
```
