Home > database >  Convert to string in Postman?
Convert to string in Postman?

Time:10-06

In Postman, I use {{$randomUUID}} as a parameter, but I need to pass it as string (text) in the request. However, there is no convert function in Postman and I could not found any proper way to convert this generated UUID to string. So, how can I convert it to string in Postman and pass it as string?

I also tried something like "menuId": {{"" $randomUUID}},, but is does not work.

CodePudding user response:

{

"menuId": "{{$randomUUID}}"

}

you just have to enclose it with double quotes

  • Related