API

RoderCodeRepairSetting

Operations

Every route this entity exposes. Each route links to its own reference on this page.

Method Route SDK operation Returns
POST /api/v1/agent/roder/code_repair_settings create Internal automatic-intake settings
GET /api/v1/agent/roder/code_repair_settings load Internal automatic-intake settings

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:

roder_code_repair_setting, err := client.RoderCodeRepairSetting(nil).Load(map[string]any{"organization_id": "example"}, nil)
if err != nil {
    panic(err)
}
fmt.Println(roder_code_repair_setting)
created, err := client.RoderCodeRepairSetting(nil).Create(map[string]any{"enabled": true, "organization_id": "example"}, nil)
if err != nil {
    panic(err)
}
fmt.Println(created)

Lua

Construct client as shown in the Lua setup, then call the operations:

local roder_code_repair_setting, err = client:RoderCodeRepairSetting():load({ organization_id = "example" })
local created, err = client:RoderCodeRepairSetting():create({ enabled = true, organization_id = "example" })

PHP

Construct client as shown in the PHP setup, then call the operations:

$roder_code_repair_setting = $client->RoderCodeRepairSetting()->load(["organization_id" => "example"]);
$created = $client->RoderCodeRepairSetting()->create(["enabled" => true, "organization_id" => "example"]);

Python

Construct client as shown in the Python setup, then call the operations:

roder_code_repair_setting = client.RoderCodeRepairSetting().load({"organization_id": "example"})
created = client.RoderCodeRepairSetting().create({ "enabled": True, "organization_id": "example" })

Ruby

Construct client as shown in the Ruby setup, then call the operations:

roder_code_repair_setting = client.RoderCodeRepairSetting.load({ "organization_id" => "example" })
created = client.RoderCodeRepairSetting.create({ "enabled" => true, "organization_id" => "example" })

TypeScript

Construct client as shown in the TypeScript setup, then call the operations:

const roder_code_repair_setting = await client.RoderCodeRepairSetting().load({ organization_id: "example" })
const created = await client.RoderCodeRepairSetting().create({ enabled: true, organization_id: "example" })

Fields

Field Type Required Description
available boolean Yes Available
daily_limit integer Yes Daily Limit
enabled boolean Yes Enabled
enabled_at one,string,null Yes Enabled At
operator_user_id one,string,null Yes Operator User Id
organization_id string Yes Organization Id
repository_slug one,string,null Yes Connected Composal repository required when enabling

create

POST /api/v1/agent/roder/code_repair_settings

Operation ID: post_api_v1_agent_roder_code_repair_settings.

Authentication: bearer token (bearerAuth).

Request body

application/json

Property Type Required Description
enabled boolean Yes
organization_id string Yes
repository_slug string No Connected Composal repository required when enabling

Responses

200: Internal automatic-intake settings

application/json

Property Type Required Description
available boolean Yes
daily_limit integer Yes
enabled boolean Yes
enabled_at string (date-time) Yes
operator_user_id string Yes
repository_slug string Yes
400: A required field is missing
403: Internal operator access is required
404: Organization membership is unavailable
422: Internal rollout or source access is unavailable

load

GET /api/v1/agent/roder/code_repair_settings

Operation ID: api_v1_roder_code_repair_settings.

Authentication: bearer token (bearerAuth).

Parameters

Parameter In Type Required Description
organization_id query string Yes

Responses

200: Internal automatic-intake settings

application/json

Property Type Required Description
available boolean Yes
daily_limit integer Yes
enabled boolean Yes
enabled_at string (date-time) Yes
operator_user_id string Yes
repository_slug string Yes
403: Internal operator access is required
404: Organization membership is unavailable