Zum Hauptinhalt springen
POST
/
offer-templates
Vorlage anlegen
curl --request POST \
  --url https://coreapi.io/offer-templates \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "<string>",
  "sections": [
    "<string>"
  ],
  "type": "section"
}
'
{
  "name": "<string>",
  "id": "<string>",
  "sections": [
    "<string>"
  ],
  "type": "section"
}

Autorisierungen

Authorization
string
header
erforderlich

API-Token der Organisation. Sende es als Authorization: Bearer api_... Das Token ist fest an genau eine Organisation gebunden.

Body

application/json

The new OfferTemplate resource

name
string
erforderlich
sections
string[]
type
enum<string>
Standard:section
Verfügbare Optionen:
section,
page,
block,
block_group
Beispiel:

"section"

Antwort

OfferTemplate resource created

name
string
erforderlich
id
string
read-only
sections
string[]
type
enum<string>
Standard:section
Verfügbare Optionen:
section,
page,
block,
block_group
Beispiel:

"section"