Python
import requests url = "https://api.opper.ai/v3/functions/{name}" payload = { "source": "<string>" } headers = { "Authorization": "Bearer <token>", "Content-Type": "application/json" } response = requests.put(url, json=payload, headers=headers) print(response.text)
{ "generated_at": "2023-11-07T05:31:56Z", "hit_count": 123, "input_schema": {}, "name": "<string>", "output_schema": {}, "schema_hash": "<string>", "source": "<string>" }
Update the source code of a function.
API key authentication. Pass your API key as a Bearer token.
Function name
Successful response