| Requires any of the roles: | Client, Admin, Partner |
| PUT | /campaign/actions/files | Set Campaign Action Files |
|---|
import datetime
import decimal
from marshmallow.fields import *
from servicestack import *
from typing import *
from dataclasses import dataclass, field
from dataclasses_json import dataclass_json, LetterCase, Undefined, config
from enum import Enum, IntEnum
@dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE)
@dataclass
class CampaignActionFile:
name: Optional[str] = None
file_type: Optional[str] = None
file_size: Optional[str] = None
extension: Optional[str] = None
upload_url: Optional[str] = None
@dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE)
@dataclass
class SetCampaignActionFiles:
# @Validate(Validator="NotNull")
campaigns_id: int = 0
campaign_actions_id: int = 0
files: Optional[List[CampaignActionFile]] = None
Python SetCampaignActionFiles DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
PUT /campaign/actions/files HTTP/1.1
Host: duengageapi.uat.scadsoftware.com
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length
{
CampaignsId: 0,
CampaignActionsId: 0,
Files:
[
{
Name: String,
FileType: String,
FileSize: String,
Extension: String,
UploadUrl: String
}
]
}
HTTP/1.1 200 OK Content-Type: text/jsv Content-Length: length False