/forms/{formId}/templates/{kind}Write a form's email template
Replaces or creates an email template for a form. Send code, subject, or both; omitted fields keep their current values, and creating an autoresponder template switches the autoresponder on. Writing code replaces a visual-editor layout and cannot be undone.
Template content and subject. Send code, subject, or both; omitted fields keep their current values. A template body is needed when creating a template.
A 400 is returned for malformed requests or validation failures; a 401 is returned when the token is missing, malformed, revoked, or expired; a 403 is returned when the token lacks the required scope, the workspace is not upgraded, or a limit is reached; and a 404 is returned when the resource does not exist. A 409 means custom notification templates are switched off; a 429 means the caller is rate limited; a 500 indicates an error on the service's end; and a 503 means the template service is unavailable. The formId path parameter must contain at least one character, and the kind path parameter must be notification or autoresponder. code must be 1–262144 characters when supplied, and subject must not exceed 998 characters; send null or an empty string for subject to clear it.