You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: _includes/cloudcode/cloud-code-advanced.md
+11-11
Original file line number
Diff line number
Diff line change
@@ -206,7 +206,7 @@ end
206
206
207
207
Here's an example of the JSON data that would be sent in the request to this webhook:
208
208
209
-
```json
209
+
```json5
210
210
// Sent to webhook
211
211
{
212
212
"master":false,
@@ -225,14 +225,14 @@ Here's an example of the JSON data that would be sent in the request to this web
225
225
226
226
This response would indicate a success in the webhook:
227
227
228
-
```json
228
+
```json5
229
229
// Returned from the webhook on success
230
230
{ "success":"Hello World!" }
231
231
```
232
232
233
233
This response would indicate an error in the webhook:
234
234
235
-
```json
235
+
```json5
236
236
// Returned from the webhook on error
237
237
{ "error":"Error message >:(" }
238
238
```
@@ -275,7 +275,7 @@ end
275
275
276
276
Here's an example of the JSON data that would be sent in the request to this webhook:
277
277
278
-
```json
278
+
```json5
279
279
// Sent to webhook
280
280
{
281
281
"master":true,
@@ -287,7 +287,7 @@ Here's an example of the JSON data that would be sent in the request to this web
287
287
288
288
This response would indicate a success in the webhook:
289
289
290
-
```json
290
+
```json5
291
291
// Returned from the webhook on success
292
292
{ "success":"User billed!" }
293
293
```
@@ -310,7 +310,7 @@ For triggers, the following parameters are sent to your webhook.
310
310
311
311
To respond to a `beforeSave` request, send a JSON object with the key `error` or `success` set. This is the same as for Cloud functions, but there's an extra capability with `beforeSave` triggers. By returning an error, you will cancel the save request and the object will not be stored on Parse. You can also return a JSON object in this following format to override the values that will be saved for the object:
312
312
313
-
```json
313
+
```json5
314
314
{
315
315
"className":"AwesomeClass",
316
316
"existingColumn":"sneakyChange",
@@ -348,7 +348,7 @@ end
348
348
349
349
Here's an example of the JSON data that would be sent in the request to this webhook:
350
350
351
-
```json
351
+
```json5
352
352
// Sent to webhook
353
353
{
354
354
"master":false,
@@ -419,7 +419,7 @@ end
419
419
420
420
Here's an example of the JSON data that would be sent in the request to this webhook:
421
421
422
-
```json
422
+
```json5
423
423
// Sent to webhook
424
424
{
425
425
"master":false,
@@ -485,7 +485,7 @@ end
485
485
486
486
Here's an example of the JSON data that would be sent in the request to this webhook:
487
487
488
-
```json
488
+
```json5
489
489
// Sent to webhook
490
490
{
491
491
"master":false,
@@ -509,7 +509,7 @@ Here's an example of the JSON data that would be sent in the request to this web
509
509
510
510
This response would indicate a success in the webhook:
511
511
512
-
```json
512
+
```json5
513
513
// Returned from the webhook on success
514
514
{ "success":true }
515
515
```
@@ -554,7 +554,7 @@ end
554
554
555
555
Here's an example of the JSON data that would be sent in the request to this webhook:
0 commit comments