API ReferenceTemplates
Update Template
Authorization
apiKey X-API-Key<token>
API key for authentication
In: header
Request Body
application/json
id*string
Format
uuiddata*
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"
}