amo/entity.go
2024-05-30 13:43:10 +05:00

18 lines
202 B
Go

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
}