Szablony

Zmień szablon

Częściowa aktualizacja - podajesz tylko zmieniane pola (name, type, body, subject). Wymaga zakresu manage.

patch/v1/templates/{id}

Request

  • Base URL: https://api.przypominamy.com
  • URL: https://api.przypominamy.com/v1/templates/{id}
  • Auth: HTTP bearer

Path parameters

idstring required

Request body

namestring
type'sms' | 'mms' | 'vms'
bodystring
subjectstring nullable

Response

Zmieniono

idstring
namestring
type'sms' | 'mms' | 'vms'

Kanał, do którego pasuje szablon - musi zgadzać się z endpointem wysyłki

bodystring

Treść z placeholderami {{klucz}} (dla MMS - dokument SMIL)

subjectstring nullable

Temat (tylko MMS)

placeholdersstring[]

Placeholdery znalezione w body, małymi literami

created_atstring date-time
updated_atstring date-time

Example response

{
  "id": "tpl_Q3m7kL2pXa9dRt",
  "name": "Wizyta",
  "body": "Cześć {{imie}}, wizyta {{kiedy}} u {{lekarz}}.",
  "placeholders": [
    "imie",
    "kiedy",
    "lekarz"
  ]
}

Changes

No recorded changes to this operation across all 1 revision of this API.