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
Hello again!
When I execute POST request I want to append values to persist.entity json file. I can append one field during request, but Unfortunately I cannot append more. Tell me please is it possible to do or how should I do in such situation?
Next example which works (append 1 field):
"persist": {
"entity": "/adverts/live-1.json",
"actions": {
"append":
"{"data": {\r\n"comments_allowed_for": {{ request.body.data%5Bcomments_allowed_for%5D.(?P\d+) }} }}"
}
}
Next example which doesn't work (append 2 field):
"persist": {
"entity": "/adverts/{{ request.query.storageId }}-{{ storage.GetValue(advert-{{ request.query.storageId }}-{{ request.query.id }}) }}.json",
"actions": {
"append":
"{"data": {\r\n"comments_allowed_for": {{ request.body.data%5Bcomments_allowed_for%5D.(?P\d+) }},\r\n"price-user": {{ request.body.data%5Bprice%5D.(?P\d+) }}\r\n}}"
}
}
The text was updated successfully, but these errors were encountered:
Hello again!
When I execute POST request I want to append values to persist.entity json file. I can append one field during request, but Unfortunately I cannot append more. Tell me please is it possible to do or how should I do in such situation?
Next example which works (append 1 field):
"persist": {
"entity": "/adverts/live-1.json",
"actions": {
"append":
"{"data": {\r\n"comments_allowed_for": {{ request.body.data%5Bcomments_allowed_for%5D.(?P\d+) }} }}"
}
}
Next example which doesn't work (append 2 field):
"persist": {
"entity": "/adverts/{{ request.query.storageId }}-{{ storage.GetValue(advert-{{ request.query.storageId }}-{{ request.query.id }}) }}.json",
"actions": {
"append":
"{"data": {\r\n"comments_allowed_for": {{ request.body.data%5Bcomments_allowed_for%5D.(?P\d+) }},\r\n"price-user": {{ request.body.data%5Bprice%5D.(?P\d+) }}\r\n}}"
}
}
The text was updated successfully, but these errors were encountered: