Skip to content

Commit ca61d77

Browse files
yaron2msfussell
andauthored
fix job api http reference (#4343)
Signed-off-by: yaron2 <schneider.yaron@live.com> Co-authored-by: Mark Fussell <markfussell@gmail.com>
1 parent ef0a5b5 commit ca61d77

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

daprdocs/content/en/reference/api/jobs_api.md

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -63,13 +63,11 @@ Entry | Description | Equivalent
6363

6464
```json
6565
{
66-
"job": {
67-
"data": {
66+
"data": {
6867
"@type": "type.googleapis.com/google.protobuf.StringValue",
6968
"value": "\"someData\""
7069
},
7170
"dueTime": "30s"
72-
}
7371
}
7472
```
7573

@@ -90,14 +88,12 @@ $ curl -X POST \
9088
http://localhost:3500/v1.0-alpha1/jobs/jobforjabba \
9189
-H "Content-Type: application/json"
9290
-d '{
93-
"job": {
94-
"data": {
91+
"data": {
9592
"@type": "type.googleapis.com/google.protobuf.StringValue",
9693
"value": "Running spice"
9794
},
98-
"schedule": "@every 1m",
99-
"repeats": 5
100-
}
95+
"schedule": "@every 1m",
96+
"repeats": 5
10197
}'
10298
```
10399

0 commit comments

Comments
 (0)