I'm new to Retool, so this may be a simple question in the docs somewhere but I have not been able to find an answer.
I have a very simple POST that I'm trying to do that has a very simple JSON body. The body consists of only five values.
Here's a sample payload that works perfectly when run through Postman.
{
"searchTerm": "Bob",
"pageSize": 0,
"offset": 0,
"includeActiveUsers": true,
"includeInactiveUser": true
}
Here's how I have the resource defined:
The problem is that whenever I execute the API call, I receive this error:
{
"type": "RFC 7231 - Hypertext Transfer Protocol (HTTP/1.1): Semantics and Content",
"title": "One or more validation errors occurred.",
"status": 400,
"traceId": "|e662989a-4549e6787d996067.",
"errors": {
"$.pageSize": [
"The JSON value could not be converted to System.Int32. Path: $.pageSize | LineNumber: 0 | BytePositionInLine: 34."
]
}
}
I've also tried a raw body but with the same result.
Can anyone help on this?
Thanks!