Skip to content

Commit

Permalink
Add delete field method to sdk (#2675)
Browse files Browse the repository at this point in the history
  • Loading branch information
jotare authored Dec 2, 2024
1 parent 2aa9108 commit 19def0a
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions nucliadb_sdk/src/nucliadb_sdk/v2/sdk.py
Original file line number Diff line number Diff line change
Expand Up @@ -508,6 +508,16 @@ def _check_response(self, response: httpx.Response):
response_type=None,
)

# Field endpoints
delete_field_by_id = _request_builder(
name="delete_field_by_id",
path_template="/v1/kb/{kbid}/resource/{rid}/{field_type}/{field_id}",
method="DELETE",
path_params=("kbid", "rid", "field_type", "field_id"),
request_type=None,
response_type=None,
)

# Conversation endpoints
add_conversation_message = _request_builder(
name="add_conversation_message",
Expand Down

0 comments on commit 19def0a

Please sign in to comment.