amo/entity.go

19 lines
202 B
Go
Raw Permalink Normal View History

2024-05-30 11:43:10 +03:00
package amo
import "fmt"
func (client *Client) updateEntity(
u string,
id int,
body any,
) error {
err := client.API.Patch(
fmt.Sprintf(
"%s/%d",
u, id,
),
body, nil,
)
return err
}