How to insert attendance by using api post request?

I want to insert attendance by post request. How this process works in erpnext ? and how can i create custom api by me? i am new in erpnext, can anyone help me please?
thanks in advance

Read here:
https://frappeframework.com/docs/user/en/api/rest