Emailtemplates

Edit an email template record at provider level

Activity name : <a href="https://developer.loket.nl/Activities/PutEmailTemplateByProviderIdAndEmailTemplateId" target="_blank">PutEmailTemplateByProviderIdAndEmailTemplateId</a>

Edit the email template. The subject, body and senderEmail can be editted.

put/v2/providers/{providerId}/emailtemplates/{emailTemplateId}

Request

  • Base URL
    https://api.loket.nl
  • URL
    https://api.loket.nl/v2/providers/{providerId}/emailtemplates/{emailTemplateId}
  • Auth
    none required

Path parameters

providerIdstring uuid required

The unique identifier of a provider

emailTemplateIdstring uuid required

The unique identifier of the email template record

Headers

Authorizationstring required
Example:Bearer <TOKEN>

A valid Bearer token for authorizing the request.

Acceptstring required
Example:application/json;version=2018-01-01

The accept header is used to influence what type of output is returned and in most cases the version of the output

Request body

subjectstring

The subjectline of the email.

bodystring

The body text of the email.

senderEmailstring

The email address of the sender.

Example request

{
  "subject": "Verlofaanvraag behandeld",
  "body": "Je verlofaanvraag is behandeld.",
  "senderEmail": "noreply@loket.nl"
}

Response

OK

Example response

{
  "version": {
    "resourceVersion": "2018-12-31"
  },
  "messages": [
    {
      "type": "Warning",
      "description": "<some warning>",
      "id": "904d6856-6034-4624-bcbc-886188c115c5",
      "code": 12
    }
  ],
  "content": {
    "type": {
      "id": "b14acd0d-75d7-4fc8-8b22-4a3924585cab",
      "description": "Verlofaanvraag behandeld (voor de indiener)",
      "sortOrder": 210
    },
    "category": {
      "key": 3,
      "value": "Verlof"
    },
    "email": {
      "subject": "Verlofaanvraag behandeld",
      "body": "Je verlofaanvraag is behandeld.",
      "senderEmail": "noreply@loket.nl"
    },
    "dependsOnModule": {
      "id": "b14acd0d-75d7-4fc8-8b22-4a3924585cab",
      "description": "Verlof"
    },
    "definedAtLevel": "provider",
    "isEmailTemplateEditable": true
  }
}

Changes

No recorded changes to this operation across all 6 revisions of this API.