Skip to Content
Anuma SDKClientInternalFunctionspostApiV1UserAgentConsents

postApiV1UserAgentConsents

postApiV1UserAgentConsents<ThrowOnError>(options: Options<PostApiV1UserAgentConsentsData, ThrowOnError>): RequestResult<PostApiV1UserAgentConsentsResponses, PostApiV1UserAgentConsentsErrors, ThrowOnError>

Defined in: src/client/sdk.gen.ts:1617 

Create per-platform agent consent

Grants the authenticated user’s consent for an agent on a specific platform (e.g. “sms”). Idempotent — returns the existing consent if one is already active. Un-revokes any prior revoked grant for the same (user, agent, platform).

Type Parameters

Type ParameterDefault type

ThrowOnError extends boolean

false

Parameters

ParameterType

options

Options<PostApiV1UserAgentConsentsData, ThrowOnError>

Returns

RequestResult<PostApiV1UserAgentConsentsResponses, PostApiV1UserAgentConsentsErrors, ThrowOnError>

Last updated on