S
Samva
S
Samva
DashboardAPISamva DocumentationQuickstart GuideAuthentication

API Reference

Email Management

Conversation Management

Configuration

Approve TemplateCreate TemplateGet TemplateList TemplatesRemove TemplateRender TemplateUpdate Template

Analytics & Operations

OpenAPI Specification
API ReferenceTemplates

Update Template

PATCH
/templates/:id

Authorization

apiKey
X-API-Key<token>

API key for authentication

In: header

Request Body

application/json

id*string
Formatuuid
data*

Response Body

application/json

curl -X PATCH "https://samva.app/api/v1/templates/:id" \  -H "Content-Type: application/json" \  -d '{    "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",    "data": {}  }'
{
  "id": "string",
  "organizationId": "string",
  "name": "string",
  "slug": "string",
  "description": "string",
  "category": "string",
  "supportedChannels": [
    "string"
  ],
  "content": {
    "property1": null,
    "property2": null
  },
  "variableSchema": [
    {}
  ],
  "compliance": {
    "property1": null,
    "property2": null
  },
  "usageCount": 0,
  "lastUsedAt": "2019-08-24T14:15:22Z",
  "isActive": true,
  "isDefault": true,
  "version": 0,
  "createdAt": "2019-08-24T14:15:22Z",
  "updatedAt": "2019-08-24T14:15:22Z"
}

Render Template

Previous Page

Create Webhook Endpoint

Next Page

curl -X PATCH "https://samva.app/api/v1/templates/:id" \
  -H "Content-Type: application/json" \
  -d '{
    "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
    "data": {}
  }'