Method: Gitlab::Client::Groups#add_group_custom_attribute

Defined in:
lib/gitlab/client/groups.rb

#add_group_custom_attribute(key, value, group_id) ⇒ Gitlab::ObjectifiedHash

Creates a new custom_attribute

Examples:

Gitlab.add_custom_attribute('some_new_key', 'some_new_value', 2)

Parameters:

  • key (String)

    The custom_attributes key

  • value (String)

    The custom_attributes value

  • group_id (Integer)

    The ID of a group.

Returns:


306
307
308
309
# File 'lib/gitlab/client/groups.rb', line 306

def add_group_custom_attribute(key, value, group_id)
  url = "/groups/#{group_id}/custom_attributes/#{key}"
  put(url, body: { value: value })
end