19 lines
360 B
Bash
19 lines
360 B
Bash
|
#!/bin/bash
|
||
|
|
||
|
curl -X 'POST' \
|
||
|
'http://localhost:8080/api/jobs' \
|
||
|
-H 'accept: application/json' \
|
||
|
-H 'Content-Type: application/json' \
|
||
|
-d '{
|
||
|
"metadata": {
|
||
|
"user.name": "Sybren Stüvel"
|
||
|
},
|
||
|
"name": "Talk & Sleep",
|
||
|
"priority": 50,
|
||
|
"settings": {
|
||
|
"sleep_duration_seconds": 3,
|
||
|
"message": "{blender}"
|
||
|
},
|
||
|
"type": "echo-sleep-test"
|
||
|
}'
|