Authorization: Bearer ********************offline_access-Offline accessopenid-OpenIDprofile-Profileemail-EmailNONE: nobody except the author(s) can accessORGANIZATION: all users in the current user's organization can access (including users created after publication)CONTACTS: everyone in the user's contacts can accessSELECTION: an explicit list of contacts, contact groups and organizations can accesscurl --location --request PUT 'https://api.belga.press/belgapress/api/newslettertemplates//publishsettings' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"contactIds": [
29032713
],
"groupIds": [
123495
],
"organizationIds": [
123495
],
"excludeOrganizationGroupIds": [
123495
],
"notifications": {
"instant": true,
"publishLanguage": "EN",
"includes": {
"title": true,
"lead": true,
"note": true
}
},
"publishType": "ORGANIZATION"
}'{
"contacts": [
{
"id": 0,
"firstName": "string",
"lastName": "string",
"email": "user@example.com",
"contactType": "INTERNAL"
}
],
"groups": [
{
"contactAmount": 0,
"id": 0,
"name": "string"
}
],
"includedOrganizations": [
{
"contactAmount": 0,
"id": 0,
"name": "string",
"type": "INTERNAL"
}
],
"excludeOrganizationGroups": [
{
"id": 0,
"content": {
"nl": {
"name": "string"
},
"fr": {
"name": "string"
},
"en": {
"name": "string"
}
}
}
],
"publishLanguage": "EN",
"publishType": "ORGANIZATION"
}