Add Key
Create a custom field key
v1.custom_fields.add_key(**kwargs) -> void
post/v1/customFields/addKey
Add a key to the allow list for a given entity. There is a 100 character limit on custom field keys.
Parameters
enforce_uniquenessbool
entityunion
:alert | :billable_metric | :charge | 15 more
keyString
require "metronome_sdk"
metronome = MetronomeSDK::Client.new(bearer_token: "My Bearer Token")
result = metronome.v1.custom_fields.add_key(enforce_uniqueness: true, entity: :customer, key: "x_account_id")
puts(result)