Method: ActionNetworkRest::Taggings#create
- Defined in:
- lib/action_network_rest/taggings.rb
#create(tagging_data, person_id:) ⇒ Object
11 12 13 14 15 16 17 18 |
# File 'lib/action_network_rest/taggings.rb', line 11 def create(tagging_data, person_id:) post_body = tagging_data person_url = action_network_url("/people/#{url_escape(person_id)}") post_body['_links'] = { 'osdi:person' => { href: person_url } } response = client.post_request base_path, post_body object_from_response(response) end |