entity.go 202 B

123456789101112131415161718
  1. package amo
  2. import "fmt"
  3. func (client *Client) updateEntity(
  4. u string,
  5. id int,
  6. body any,
  7. ) error {
  8. err := client.API.Patch(
  9. fmt.Sprintf(
  10. "%s/%d",
  11. u, id,
  12. ),
  13. body, nil,
  14. )
  15. return err
  16. }