PgBeam Docs
Support

CreateSupportCase

Create a support case

Creates a new support case with an initial message.

Usage

result, err := client.Support.CreateSupportCase(ctx, "org_abc123", pgbeam.CreateSupportCaseRequest{
    OrgID: "...",
    Title: "...",
    Body: "...",
  })

Parameters

ParameterTypeRequiredDescription
ctxcontext.ContextYesRequest context
orgIDstringYesUnique organization identifier.
reqpgbeam.CreateSupportCaseRequestYesRequest body
req.OrgIDstringYesOrganization ID.
req.TitlestringYesBrief summary of the issue.
req.Severity*intNoSeverity level: 1=Critical, 2=High, 3=Normal, 4=Low.
req.BodystringYesInitial message body.

Response

(*pgbeam.SupportCase, error) — support case created.

Example

import pgbeam "go.pgbeam.com/sdk"

client := pgbeam.NewClient(&pgbeam.ClientOptions{
  APIKey: "pgb_your_api_key",
})

result, err := client.Support.CreateSupportCase(ctx, "org_abc123", pgbeam.CreateSupportCaseRequest{
    OrgID: "...",
    Title: "...",
    Severity: 4,
    Body: "...",
  })
if err != nil {
  log.Fatal(err)
}
fmt.Println(result)

Errors

StatusDescription
400Invalid request parameters.
401Missing or invalid authentication.
403Operation not allowed by current plan limits.

On this page