S
Samva
S
Samva
DashboardAPISamva DocumentationQuickstart GuideAuthentication

Api referenceWhatsapp

Update WhatsApp Business Account

PATCH
/whatsapp/business-accounts/:accountId

Authorization

apiKey
X-API-Key<token>

API key for authentication

In: header

Request Body

application/json

accountId*string
Formatuuid
displayName?string
Length1 <= length
webhookUrl?string|null
webhookVerifyToken?string|null

Response Body

application/json

curl -X PATCH "https://samva.app/api/v1/whatsapp/business-accounts/:accountId" \  -H "Content-Type: application/json" \  -d '{    "accountId": "3d07c219-0a88-45be-9cfc-91e9d095a1e9"  }'
{
  "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
  "organizationId": "7bc05553-4b68-44e8-b7bc-37be63c6d9e9",
  "phoneNumber": "string",
  "phoneNumberId": "string",
  "displayName": "string",
  "whatsappBusinessAccountId": "string",
  "verificationStatus": "pending",
  "isDefault": true,
  "webhookUrl": "string",
  "qualityRating": "green",
  "messagingLimit": "string",
  "currentLimit": 0,
  "isActive": true,
  "createdAt": "2019-08-24T14:15:22Z",
  "updatedAt": "2019-08-24T14:15:22Z"
}
curl -X PATCH "https://samva.app/api/v1/whatsapp/business-accounts/:accountId" \
  -H "Content-Type: application/json" \
  -d '{
    "accountId": "3d07c219-0a88-45be-9cfc-91e9d095a1e9"
  }'