Discord bot

Save a bot message

PUT
/v1/stores/{storeId}/discord-bot/messages/{key}

Authorization

AuthorizationBearer <token>

API key from Settings → API keys

In: header

Path Parameters

storeId*string
key*string

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

curl -X PUT "https://example.com/v1/stores/string/discord-bot/messages/string" \  -H "Content-Type: application/json" \  -d '{    "template": {}  }'
{  "key": "string",  "name": "string",  "description": "string",  "channel": "string",  "message": "string",  "template": {    "title": "string",    "url": "string",    "description": "string",    "color": "string",    "author": {      "name": "string",      "url": "string",      "icon_url": "string"    },    "thumbnail_url": "string",    "image_url": "string",    "footer": {      "text": "string",      "icon_url": "string"    },    "timestamp": true,    "fields": [      {        "type": "field",        "name": "string",        "value": "string",        "inline": true      }    ],    "buttons": [      {        "label": "string",        "url": "string"      }    ]  },  "customised": true,  "defaultTemplate": {    "title": "string",    "url": "string",    "description": "string",    "color": "string",    "author": {      "name": "string",      "url": "string",      "icon_url": "string"    },    "thumbnail_url": "string",    "image_url": "string",    "footer": {      "text": "string",      "icon_url": "string"    },    "timestamp": true,    "fields": [      {        "type": "field",        "name": "string",        "value": "string",        "inline": true      }    ],    "buttons": [      {        "label": "string",        "url": "string"      }    ]  },  "limits": {    "property1": -9007199254740991,    "property2": -9007199254740991  },  "variables": [    {      "key": "string",      "label": "string",      "sample": "string",      "group": "string"    }  ],  "groups": [    {      "key": "string",      "label": "string",      "item_label": "string"    }  ],  "spreads": [    {      "key": "string",      "label": "string",      "group": "string"    }  ],  "sampleContext": {    "values": {      "property1": "string",      "property2": "string"    },    "groups": {      "property1": [        {          "values": {            "property1": "string",            "property2": "string"          },          "spreads": {            "property1": {              "property1": "string",              "property2": "string"            },            "property2": {              "property1": "string",              "property2": "string"            }          }        }      ],      "property2": [        {          "values": {            "property1": "string",            "property2": "string"          },          "spreads": {            "property1": {              "property1": "string",              "property2": "string"            },            "property2": {              "property1": "string",              "property2": "string"            }          }        }      ]    },    "spreads": {      "property1": {        "property1": "string",        "property2": "string"      },      "property2": {        "property1": "string",        "property2": "string"      }    }  }}