Przejdź do głównej zawartości

Dodaj załącznik do szablonu wiadomości

PUT
/api/v3/Templates/{templateId}/attachments/{filename}
curl --request PUT \
--url https://twoja-instancja-smerp-api.enterprise.sellrocket.pl/api/v3/Templates/1/attachments/example \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/octet-stream' \
--data example

Wgrywa plik, który będzie dołączany do wiadomości wysyłanych z szablonu.

templateId
wymagane
integer format: int64
filename
wymagane
string
Typ treściapplication/octet-stream
string format: byte

Success

object
id
integer format: int64
templateId
integer format: int64
name
string
nullable
blobKey
string
nullable
contentType
string
nullable
type
string
Dozwolone wartości: Invoice NewestShipmentLabel OrderAdditionalField LineItemProductComplexField LineItemAdditionalField CsvTemplate PdfTemplate AllInvoices
additionalFieldName
string
nullable
attachmentTemplateId
integer format: int64
nullable

Bad Request

object
type
string
nullable
title
string
nullable
status
integer format: int32
nullable
detail
string
nullable
instance
string
nullable
key
additional properties

Server Error