Skip to content

Commit

Permalink
Merge pull request #12 from blueshift-labs/update-description
Browse files Browse the repository at this point in the history
Added a method to update description of a field
  • Loading branch information
vishwajitparasar-bsft authored Dec 24, 2024
2 parents 5ad0397 + 6c72247 commit e0292d6
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/apollo/clients/accounts.rb
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,10 @@ def get_mapping(doc_type:)
def get_dictionary(doc_type:)
handle_request("dictionary/#{@account}/#{doc_type}", :get)
end

def update_description(doc_type:, field:, description:)
handle_request("dictionary/#{@account}/#{doc_type}/description", :put, body: {"field": field, "description": description})
end
end
end
end

0 comments on commit e0292d6

Please sign in to comment.