Skip to content

Commit cdec1f5

Browse files
authored
Update json-endpoint.mdx
update `json_schema` to `schema`
1 parent 3379615 commit cdec1f5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/content/docs/browser-rendering/rest-api/json-endpoint.mdx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ curl --request POST 'https://api.cloudflare.com/client/v4/accounts/CF_ACCOUNT_ID
3434
"prompt": "Get me the list of AI products",
3535
"response_format": {
3636
"type": "json_schema",
37-
"json_schema": {
37+
"schema": {
3838
"type": "object",
3939
"properties": {
4040
"products": {
@@ -130,7 +130,7 @@ curl --request POST 'https://api.cloudflare.com/client/v4/accounts/CF_ACCOUNT_ID
130130
--header 'content-type: application/json' \
131131
--data '"response_format": {
132132
"type": "json_schema",
133-
"json_schema": {
133+
"schema": {
134134
"type": "object",
135135
"properties": {
136136
"products": {
@@ -293,7 +293,7 @@ curl --request POST \
293293
"prompt": "Get the heading from the page in the form of an object like h1, h2. If there are many headings of the same kind then grab the first one.",
294294
"response_format": {
295295
"type": "json_schema",
296-
"json_schema": {
296+
"schema": {
297297
"type": "object",
298298
"properties": {
299299
"h1": {

0 commit comments

Comments
 (0)