module Gitlab::Client::BroadcastMessages

def create_broadcast_message(message, options = {})

Returns:
  • (Gitlab::ObjectifiedHash) - Information about created broadcast message.

Options Hash: (**options)
  • :font(optional) (String) -- Foreground color hex code
  • :color(optional) (String) -- Background color hex code
  • :ends_at(optional) (DateTime) -- Ending time (defaults to one hour from current time)
  • :starts_at(optional) (DateTime) -- Starting time (defaults to current time)

Parameters:
  • options (Hash) -- A customizable set of options.
  • message (String) -- Message to display
def create_broadcast_message(message, options = {})
  body = { message: message }.merge(options)
  post('/broadcast_messages', body: body)
end