User Activity

Please help me to write a scripted API POST to create incident and send attachment along with it. Attachment can be any format (pdf or excel or .docx)
How to create a report of incident created from last month 20th to this month 20th. It should be dynamically updated in dashboard when month changes