Support
UpdateSupportCase
Update a support case
Updates the status of a support case (close or reopen).
Usage
result, err := client.Support.UpdateSupportCase(ctx, "org_abc123", "sc_xxx", pgbeam.UpdateSupportCaseRequest{
})Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| ctx | context.Context | Yes | Request context |
| orgID | string | Yes | Unique organization identifier. |
| caseID | string | Yes | Unique support case identifier (prefixed, e.g. sc_xxx). |
| req | pgbeam.UpdateSupportCaseRequest | Yes | Request body |
| req.Status | *pgbeam.SupportCaseStatus | No |
Response
(*pgbeam.SupportCase, error) — updated support case.
Example
import pgbeam "go.pgbeam.com/sdk"
client := pgbeam.NewClient(&pgbeam.ClientOptions{
APIKey: "pgb_your_api_key",
})
result, err := client.Support.UpdateSupportCase(ctx, "org_abc123", "sc_xxx", pgbeam.UpdateSupportCaseRequest{
Status: pgbeam.SupportCaseStatus{ /* ... */ },
})
if err != nil {
log.Fatal(err)
}
fmt.Println(result)Errors
| Status | Description |
|---|---|
| 400 | Invalid request parameters. |
| 401 | Missing or invalid authentication. |
| 403 | Operation not allowed by current plan limits. |
| 404 | Resource not found. |