Skip to content

Commit

Permalink
feat(assistantv1): New params append and include_audit in `update…
Browse files Browse the repository at this point in the history
…_intent`
  • Loading branch information
ehdsouza committed Feb 11, 2020
1 parent d523706 commit 3b015f9
Showing 1 changed file with 18 additions and 1 deletion.
19 changes: 18 additions & 1 deletion ibm_watson/assistant_v1.py
Original file line number Diff line number Diff line change
Expand Up @@ -741,6 +741,8 @@ def update_intent(self,
new_intent: str = None,
new_description: str = None,
new_examples: List['Example'] = None,
append: bool = None,
include_audit: bool = None,
**kwargs) -> 'DetailedResponse':
"""
Update intent.
Expand All @@ -763,6 +765,17 @@ def update_intent(self,
string cannot contain carriage return, newline, or tab characters.
:param List[Example] new_examples: (optional) An array of user input
examples for the intent.
:param bool append: (optional) Whether the new data is to be appended to
the existing data in the object. If **append**=`false`, elements included
in the new data completely replace the corresponding existing elements,
including all subelements. For example, if the new data for the intent
includes **examples** and **append**=`false`, all existing examples for the
intent are discarded and replaced with the new examples.
If **append**=`true`, existing elements are preserved, and the new elements
are added. If any elements in the new data collide with existing elements,
the update request fails.
:param bool include_audit: (optional) Whether to include the audit
properties (`created` and `updated` timestamps) in the response.
:param dict headers: A `dict` containing the request headers
:return: A `DetailedResponse` containing the result, headers and HTTP status code.
:rtype: DetailedResponse
Expand All @@ -783,7 +796,11 @@ def update_intent(self,
operation_id='update_intent')
headers.update(sdk_headers)

params = {'version': self.version}
params = {
'version': self.version,
'append': append,
'include_audit': include_audit
}

data = {
'intent': new_intent,
Expand Down

0 comments on commit 3b015f9

Please sign in to comment.