GET
/
functions
/
{function_id}
/
revisions
import requests

url = "https://api.opper.ai/v2/functions/{function_id}/revisions"

headers = {"Authorization": "Bearer <token>"}

response = requests.request("GET", url, headers=headers)

print(response.text)
{
  "meta": {
    "total_count": 1
  },
  "data": [
    {
      "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "configuration": {},
      "created_at": "2023-11-07T05:31:56Z",
      "updated_at": "2023-11-07T05:31:56Z"
    }
  ]
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

function_id
string
required

The id of the function to get revisions for

Query Parameters

offset
integer | null
default:0

The offset of the revisions to get

Required range: x >= 0
limit
integer | null
default:20

The limit of the revisions to get

Required range: 1 <= x <= 20

Response

200
application/json

Successful Response

The response is of type object.