PgBeam Docs
Support

CreateSupportMessage

Add a message to a support case

Adds a new message to an existing support case thread.

Usage

result, err := client.Support.CreateSupportMessage(ctx, "org_abc123", "sc_xxx", pgbeam.CreateSupportMessageRequest{
    Body: "...",
  })

Parameters

ParameterTypeRequiredDescription
ctxcontext.ContextYesRequest context
orgIDstringYesUnique organization identifier.
caseIDstringYesUnique support case identifier (prefixed, e.g. sc_xxx).
reqpgbeam.CreateSupportMessageRequestYesRequest body
req.BodystringYesMessage content.

Response

(*pgbeam.SupportMessage, error) — message created.

Example

import pgbeam "go.pgbeam.com/sdk"

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

result, err := client.Support.CreateSupportMessage(ctx, "org_abc123", "sc_xxx", pgbeam.CreateSupportMessageRequest{
    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.
404Resource not found.

On this page