Set the brand's campaign attachment types. Requires brand.manage
PUT
/v1/brands/{brand}/campaign-attachment-types
const url = 'https://api.replifier.com/v1/brands/brd_01hx0000000000000000000000/campaign-attachment-types';const options = { method: 'PUT', headers: {'Content-Type': 'application/json'}, body: '{"mimes":["application/pdf"]}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request PUT \ --url https://api.replifier.com/v1/brands/brd_01hx0000000000000000000000/campaign-attachment-types \ --header 'Content-Type: application/json' \ --data '{ "mimes": [ "application/pdf" ] }'Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”brand
required
string
Example
brd_01hx0000000000000000000000Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
mimes
required
MIME types allowed as campaign attachments; null restores the default list.
Array<string>
Responses
Section titled “Responses”Allowed types
Media typeapplication/json
object
brandId
required
string
mimes
required
Array<string>
isDefault
required
boolean
selectable
required
Array<string>
Example generated
{ "brandId": "example", "mimes": [ "example" ], "isDefault": true, "selectable": [ "example" ]}Invalid data
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
cause
required
string
fix
required
string
requestId
required
string
Example
{ "error": { "code": "not_found" }}No session, expired session, or invalid, expired or revoked API key
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
cause
required
string
fix
required
string
requestId
required
string
Example
{ "error": { "code": "not_found" }}Not allowed, API key missing the scope, IP not allowed, or request rejected (csrf_rejected)
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
cause
required
string
fix
required
string
requestId
required
string
Example
{ "error": { "code": "not_found" }}Does not exist or is not visible to you
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
cause
required
string
fix
required
string
requestId
required
string
Example
{ "error": { "code": "not_found" }}Internal error
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
cause
required
string
fix
required
string
requestId
required
string
Example
{ "error": { "code": "not_found" }}