EmailAttachment
Creates a EmailAttachment resource.
Creates a EmailAttachment resource.
POST
/api/spa/email-attachmentsAuthorizations
X-AUTH-TOKEN
stringheaderrequired
Value for the X-AUTH-TOKEN header parameter.
Request Body
application/json
required
The new EmailAttachment resource
{
"identifier": "string",
"description": "Example description",
"fileName": "Example name",
"file": "string",
"subClient": {},
"brandIdentifier": "default",
"active": true,
"activeFrom": "2024-01-01",
"groupIdentifier": "my_group",
"groupCondition": "data['contract']['balance'] > 0",
"subClientDefault": false
}Response
201
EmailAttachment resource created
id
integer
identifier
string
description
string
fileName
string
file
value
createdBy
string
User, created this entry
updatedBy
string
User, updated this entry
createdAt
string<date-time>
UTC date time of entry creation
updatedAt
string<date-time>
UTC date time of last entry update
brandIdentifier
stringrequired
active
boolean
Active flag. Default: true
activeFrom
string<date-time>
Date to activate the entry. Default: today
groupIdentifier
string
Optional group identifier to be used with group conditions
groupCondition
string
Group condition.
subClientDefault
boolean
Default for environmental tenants (sub-clients)
subClientId
integer
SubClient ID. Provided on instances with enabled sub-client module only.
subClientDescription
string
SubClient description. Provided on instances with enabled sub-client module only.