Update a block entry

Updates a block entry's reason, notes, active state, or expiry. Use this endpoint to update a block entry through the Samva email API.

PATCH
/v1/email/blocks/{id}

Updates a block entry's reason, notes, active state, or expiry.

x-api-key<token>

In: header

Path Parameters

id*string
Match^blk_[0-9a-hjkmnp-tv-z]{16,24}$

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

reason?string|null
notes?string|null
isActive?boolean|null
expiresAt?string|null|null

Response Body

application/json

application/json

application/json

application/json

application/json

curl -X PATCH "https://example.com/v1/email/blocks/string" \  -H "Content-Type: application/json" \  -d '{}'
{  "id": "string",  "blockType": "email",  "blockValue": "string",  "reason": "string",  "notes": "string",  "isActive": true,  "expiresAt": "string",  "updatedAt": "string"}

Related documentation