defmodule Coffrify.Resources.Branding do
@moduledoc "Workspace branding — colors, logos, footer, Slack/Discord/Teams webhooks."
alias Coffrify
@doc "Fetch the current branding payload."
@spec get(Coffrify.t()) :: {:ok, map()} | {:error, Exception.t()}
def get(client), do: Coffrify.request(client, :get, "/branding")
@doc "Update branding fields. Pass only the keys you want to change."
@spec update(Coffrify.t(), map()) :: {:ok, map()} | {:error, Exception.t()}
def update(client, patch), do: Coffrify.request(client, :patch, "/branding", patch)
end