ModelSubscriptionAccountConnection
Operations
Every route this entity exposes. Each route links to its own reference on this page.
| Method | Route | SDK operation | Returns |
|---|---|---|---|
GET |
/api/v1/model_subscription_accounts/connection/{agent_id} |
load |
Provider sign-in state |
POST |
/api/v1/model_subscription_accounts/connection/{agent_id} |
update |
Provider sign-in state |
Examples
One example per SDK, generated from the API model. The argument names are the parameters and fields of this entity, and the values are placeholders. The examples are not compiled or executed.
Golang
Construct client as shown in the Golang setup, then call the operations:
model_subscription_account_connection, err := client.ModelSubscriptionAccountConnection(nil).Load(map[string]any{"id": "example_id"}, nil)
if err != nil {
panic(err)
}
fmt.Println(model_subscription_account_connection)
updated, err := client.ModelSubscriptionAccountConnection(nil).Update(map[string]any{"id": "example_id", "action_name": "example", "login_id": "example"}, nil)
if err != nil {
panic(err)
}
fmt.Println(updated)
Lua
Construct client as shown in the Lua setup, then call the operations:
local model_subscription_account_connection, err = client:ModelSubscriptionAccountConnection():load({ id = "example_id" })
local updated, err = client:ModelSubscriptionAccountConnection():update({ id = "example_id", action_name = "example", login_id = "example" })
PHP
Construct client as shown in the PHP setup, then call the operations:
$model_subscription_account_connection = $client->ModelSubscriptionAccountConnection()->load(["id" => "example_id"]);
$updated = $client->ModelSubscriptionAccountConnection()->update(["id" => "example_id", "action_name" => "example", "login_id" => "example"]);
Python
Construct client as shown in the Python setup, then call the operations:
model_subscription_account_connection = client.ModelSubscriptionAccountConnection().load({"id": "example_id"})
updated = client.ModelSubscriptionAccountConnection().update({"id": "example_id", "action_name": "example", "login_id": "example"})
Ruby
Construct client as shown in the Ruby setup, then call the operations:
model_subscription_account_connection = client.ModelSubscriptionAccountConnection.load({ "id" => "example_id" })
updated = client.ModelSubscriptionAccountConnection.update({ "id" => "example_id", "action_name" => "example", "login_id" => "example" })
TypeScript
Construct client as shown in the TypeScript setup, then call the operations:
const model_subscription_account_connection = await client.ModelSubscriptionAccountConnection().load({ id: "example_id" })
const updated = await client.ModelSubscriptionAccountConnection().update({ id: "example_id", action_name: "example", login_id: "example" })
Fields
| Field | Type | Required | Description |
|---|---|---|---|
id |
string |
No | Id |
load
GET /api/v1/model_subscription_accounts/connection/{agent_id}
Operation ID: modelSubscriptionConnectionGet.
Authentication: bearer token (bearerAuth).
Parameters
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
agent_id |
path |
string |
Yes |
Responses
200: Provider sign-in state
application/json
The response is object or object.
401: Unauthorized
403: Forbidden
404: Not found
422: Unprocessable entity
502: Bad gateway
update
POST /api/v1/model_subscription_accounts/connection/{agent_id}
Operation ID: modelSubscriptionConnectionPost.
Authentication: bearer token (bearerAuth).
Parameters
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
agent_id |
path |
string |
Yes |
Request body
application/json
The request body is object or object or object.
Responses
200: Provider sign-in state
application/json
The response is object or object.