Skip to content

Commit

Permalink
馃摑 Add a note on where to find resultId
Browse files Browse the repository at this point in the history
  • Loading branch information
baptisteArno committed Jan 4, 2024
1 parent b2c732a commit 2385eaf
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
6 changes: 5 additions & 1 deletion apps/builder/src/features/results/api/getResult.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,11 @@ export const getResult = authenticatedProcedure
.describe(
"[Where to find my bot's ID?](../how-to#how-to-find-my-typebotid)"
),
resultId: z.string(),
resultId: z
.string()
.describe(
'The `resultId` is returned by the /startChat endpoint or you can find it by listing results with `/results` endpoint'
),
})
)
.output(
Expand Down
3 changes: 2 additions & 1 deletion apps/docs/openapi/builder.json
Original file line number Diff line number Diff line change
Expand Up @@ -15494,7 +15494,8 @@
"in": "path",
"name": "resultId",
"schema": {
"type": "string"
"type": "string",
"description": "The `resultId` is returned by the /startChat endpoint or you can find it by listing results with `/results` endpoint"
},
"required": true
}
Expand Down

0 comments on commit 2385eaf

Please sign in to comment.