Delete
Delete Risk Level Attribute Value
client.Attributes.RiskLevels.Delete(ctx, id, body) (*AttributeRiskLevelDeleteResponse, error)
delete/api/v1/attributes/risk_levels/{id}
Delete a risk level attribute value by id.
Parameters
idstring
The id field.
bodyBodyfieldAttributeRiskLevelDeleteParams
Returns
AttributeRiskLevelDeleteResponseinterface
The DeleteRiskLevelAttributeValueResponse message.
Request example Go
package main
import (
"context"
"fmt"
"github.com/stainless-sdks/-go"
"github.com/stainless-sdks/-go/option"
)
func main() {
client := conductoronesdk.NewClient(
option.WithAPIKey("My API Key"),
)
riskLevel, err := client.Attributes.RiskLevels.Delete(
context.TODO(),
"id",
conductoronesdk.AttributeRiskLevelDeleteParams{
},
)
if err != nil {
panic(err.Error())
}
fmt.Printf("%+v\n", riskLevel)
}
200 Example
{}