{
"data": {
"type": "GenericNotification",
"attributes": {
"subject": "string",
"body": "string",
"previewText": "string",
"replyTo": "string",
"ccSender": true,
"bcc": [
{
"name": "string",
"email": "string"
}
],
"attachments": [
{
"filename": "string",
"content": "string",
"type": "application/pdf"
}
]
},
"relationships": {
"userGroup": {
"data": {
"id": "FID001",
"type": "UserGroup"
}
},
"attempts": {
"data": [
{
"id": "FID001",
"type": "Attempt"
}
]
},
"users": {
"data": [
{
"id": "FID001",
"type": "User"
}
]
},
"user": {
"data": {
"id": "FID001",
"type": "User"
}
}
}
}
}
curl --location --request POST 'https://api.synap.ac/v3/generic-notifications' \
--header 'Content-Type: application/vnd.api+json' \
--data-raw '{
"data": {
"type": "GenericNotification",
"attributes": {
"subject": "string",
"body": "string",
"previewText": "string",
"replyTo": "string",
"ccSender": true,
"bcc": [
{
"name": "string",
"email": "string"
}
],
"attachments": [
{
"filename": "string",
"content": "string",
"type": "application/pdf"
}
]
},
"relationships": {
"userGroup": {
"data": {
"id": "FID001",
"type": "UserGroup"
}
},
"attempts": {
"data": [
{
"id": "FID001",
"type": "Attempt"
}
]
},
"users": {
"data": [
{
"id": "FID001",
"type": "User"
}
]
},
"user": {
"data": {
"id": "FID001",
"type": "User"
}
}
}
}
}'
{
"data": {
"id": "FID001",
"type": "GenericNotification",
"attributes": {
"subject": "string",
"body": "string",
"previewText": "string",
"replyTo": "string",
"ccSender": true,
"bcc": [
{
"name": "string",
"email": "string"
}
],
"attachments": [
{
"filename": "string",
"content": "string",
"type": "application/pdf"
}
]
},
"relationships": {
"userGroup": {
"data": {
"id": "FID001",
"type": "UserGroup"
}
},
"attempts": {
"data": [
{
"id": "FID001",
"type": "Attempt"
}
]
},
"users": {
"data": [
{
"id": "FID001",
"type": "User"
}
]
},
"user": {
"data": {
"id": "FID001",
"type": "User"
}
}
}
}
}