Contact property definitions. Input maps are sent as given: create/2
accepts key, type (:string | :number) and fallback_value; update/3
accepts fallback_value (nil clears it).
MillionSend.ContactProperties.create(%{key: "plan", type: :string, fallback_value: "free"})
Summary
Functions
POST /contact-properties — a duplicate key is a 409.
GET /contact-properties/:id
GET /contact-properties — accepts limit:, after:, before:.
DELETE /contact-properties/:id
PATCH /contact-properties/:id — fallback_value (nil clears it).
Functions
@spec create(MillionSend.Client.t(), map()) :: {:ok, MillionSend.ContactProperties.ContactProperty.t()} | {:error, MillionSend.Error.t()}
POST /contact-properties — a duplicate key is a 409.
@spec get(MillionSend.Client.t(), String.t()) :: {:ok, MillionSend.ContactProperties.ContactProperty.t()} | {:error, MillionSend.Error.t()}
GET /contact-properties/:id
GET /contact-properties — accepts limit:, after:, before:.
@spec list(MillionSend.Client.t() | keyword()) :: {:ok, MillionSend.List.t()} | {:error, MillionSend.Error.t()}
@spec list( MillionSend.Client.t(), keyword() ) :: {:ok, MillionSend.List.t()} | {:error, MillionSend.Error.t()}
@spec remove(MillionSend.Client.t(), String.t()) :: {:ok, MillionSend.ContactProperties.ContactProperty.t()} | {:error, MillionSend.Error.t()}
DELETE /contact-properties/:id
@spec update(MillionSend.Client.t(), String.t(), map()) :: {:ok, MillionSend.ContactProperties.ContactProperty.t()} | {:error, MillionSend.Error.t()}
PATCH /contact-properties/:id — fallback_value (nil clears it).