Skip to main content
POST
/
actions
/
commands
/
add-actions
Add actions
curl --request POST \
  --url https://api.example.com/actions/commands/add-actions \
  --header 'Content-Type: application/json' \
  --data '
{
  "actions": [
    {
      "name": "<string>",
      "category": "<string>",
      "game": "<string>",
      "price": {
        "minor": 123,
        "major": 123,
        "currency": "<string>"
      },
      "payload": {},
      "parameters": [
        {
          "name": "<string>",
          "displayName": "<string>",
          "type": "<string>"
        }
      ]
    }
  ]
}
'
{
  "success": true,
  "message": "<string>",
  "action": {
    "id": "<string>",
    "name": "<string>",
    "price": {
      "minor": 123,
      "major": 123,
      "currency": "<string>"
    },
    "category": "<string>",
    "game": "<string>",
    "enabled": true,
    "payload": {}
  }
}

Body

application/json
actions
object[]
required

Response

200 - application/json

Actions successfully created

success
boolean
required
message
string
required
action
object
required