CreateTestAuditLog creates a fake audit log. Only owners of the organization can perform this action. It's used for testing purposes.
(ctx context.Context, req CreateTestAuditLogRequest)
| 276 | // CreateTestAuditLog creates a fake audit log. Only owners of the organization |
| 277 | // can perform this action. It's used for testing purposes. |
| 278 | func (c *Client) CreateTestAuditLog(ctx context.Context, req CreateTestAuditLogRequest) error { |
| 279 | res, err := c.Request(ctx, http.MethodPost, "/api/v2/audit/testgenerate", req) |
| 280 | if err != nil { |
| 281 | return err |
| 282 | } |
| 283 | defer res.Body.Close() |
| 284 | |
| 285 | if res.StatusCode != http.StatusNoContent { |
| 286 | return err |
| 287 | } |
| 288 | |
| 289 | return nil |
| 290 | } |