Skip to content

Commit

Permalink
Update specification/resources/apps/examples/python/apps_toggle_datab…
Browse files Browse the repository at this point in the history
…ase_trusted_source.yml

Co-authored-by: danaelhe <[email protected]>
  • Loading branch information
thearyanahmed and danaelhe authored Jun 11, 2024
1 parent e0e6edf commit 1ee4d33
Showing 1 changed file with 5 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,10 @@ source: |-
app_id = "123e4567-e89b-12d3-a456-426614174000"
component_name = "database"
toggle_resp = client.request(
method="POST",
path=f"/v2/apps/{app_id}/components/{component_name}/trusted_sources",
body={
"enable": True
}
)
req = {
"enable": True
}

toggle_resp = client.apps.toggle_database_trusted_source(app_id=app_id, component_name=component_name, body=req)

print(toggle_resp)

0 comments on commit 1ee4d33

Please sign in to comment.