Set Ingest Aliases
Create or update customer ingest aliases
client.V1.Customers.SetIngestAliases(ctx, params) error
post/v1/customers/{customer_id}/setIngestAliases
Sets the ingest aliases for a customer. Ingest aliases can be used in the customer_id field when sending usage events to Metronome. This call is idempotent. It fully replaces the set of ingest aliases for the given customer.
Parameters
paramsCustomerIDfieldIngestAliasesfieldV1CustomerSetIngestAliasesParams
package main
import (
"context"
"github.com/Metronome-Industries/metronome-go"
"github.com/Metronome-Industries/metronome-go/option"
)
func main() {
client := metronome.NewClient(
option.WithBearerToken("My Bearer Token"),
)
err := client.V1.Customers.SetIngestAliases(context.TODO(), metronome.V1CustomerSetIngestAliasesParams{
CustomerID: metronome.F("d7abd0cd-4ae9-4db7-8676-e986a4ebd8dc"),
IngestAliases: metronome.F([]string{"[email protected]"}),
})
if err != nil {
panic(err.Error())
}
}