---
title: IActivityDataApiClient
summary: API reference for IActivityDataApiClient.
status: draft
owner: SAIF.Core documentation team
last_reviewed: 2026-09-24
library: SAIF.Data.Guidewire
reference_type: package
---

# IActivityDataApiClient

Contract implemented by `ActivityDataApiClient` for creating claim activities in Guidewire ClaimCenter. Consumers depend on this interface (rather than the concrete client) so they can be constructed via dependency injection and unit-tested without a real `HttpClient`.

## Purpose
- Declares the single operation for posting a new activity against a claim.

## Context
- Namespace: `SAIF.Data.Guidewire.Interfaces`
- Assembly/package: `SAIF.Data.Guidewire` (packaged in `SAIF.SAIFCode.Core`)

## Public members
| Member | Signature | Purpose |
| --- | --- | --- |
| CreateActivityRequest(long, Activity) | `void CreateActivityRequest(long claimId, Activity activity)` | Creates a new activity on the claim identified by `claimId`; the sole implementation (`ActivityDataApiClient`) posts synchronously and throws on failure per [SDG-BR-010](../../business-rules.md#sdg-br-010-null-activity-properties-omitted-from-serialized-request) and [SDG-BR-011](../../business-rules.md#sdg-br-011-non-success-responses-throw-with-status-and-content) |

## Behavioral notes
- This interface carries no behavior of its own; all behavior described above belongs to the implementing class, `ActivityDataApiClient`.

## Constraints and usage notes
- Callers depending on this interface should be aware that the current implementation's `CreateActivityRequest` call is synchronous (blocking) despite performing network I/O*.

> **Note:** Statements marked with * were inferred from code structure, naming conventions, or
> contextual evidence where direct confirmation was not available in source artifacts.

## Sources
- `Data/SAIF.Data.Guidewire/Interfaces/IActivityDataApiClient.cs`
- `Data/SAIF.Data.Guidewire/Clients/ActivityDataApiClient.cs`
