Przejdź do głównej zawartości

Utwórz lub zaktualizuj szablon wiadomości

PUT
/api/v3/Templates
curl --request PUT \
--url https://twoja-instancja-smerp-api.enterprise.sellrocket.pl/api/v3/Templates \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "id": 1, "content": "example", "displayName": "example", "topic": "example", "isHtml": true, "email": "example", "emailAccountId": 1, "templateType": "CSV" }'
Typ treściapplication/json
object
id
integer format: int64
nullable
content
string
nullable
displayName
string
nullable
topic
string
nullable
isHtml
boolean
nullable
email
string
nullable
emailAccountId
integer format: int64
nullable
templateType
string
Dozwolone wartości: CSV TEXT PDF

Success

object
id
integer format: int64
displayName
string
nullable
topic
string
nullable
content
string
nullable
isHtml
boolean
email
string
nullable
emailAccountId
integer format: int64
nullable
type
string
Dozwolone wartości: CSV TEXT PDF
attachments
Array<object>
nullable
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