I am not able to utilize this endpoint due to getting a camalCase error when sending correct arguments.
Here is the code I am sending from n8n:
Expected behavior
I expect the API to take the input and update the existing restriction.
I am not able to utilize this endpoint due to getting a camalCase error when sending correct arguments.
Here is the code I am sending from n8n:
Expected behavior
I expect the API to take the input and update the existing restriction.
Hey, can you please share a full request payload (rendered query params and body) that fails for you? These screenshots are hard to interpret.
[
{
"args": {
"updateMask": "{\"displayReason\":\"Test Reason\"}",
"idempotencyKey.key": "iq2kpz3g",
"idempotencyKey.firstSent": "2025-06-06T12:25:07.292Z"
},
"data": {
"gameJoinRestriction": {
"displayReason": "Test Reason"
}
},
"files": {},
"form": {},
"headers": {
"host": "postman-echo.com",
"x-request-start": "t1749212707.512",
"connection": "close",
"content-length": "55",
"x-forwarded-proto": "https",
"x-forwarded-port": "443",
"x-amzn-trace-id": "Root=1-6842de23-55bc2ae35ee3ab006603709d",
"accept": "application/json",
"content-type": "application/json",
"x-api-key": "<Removed>",
"user-agent": "n8n",
"accept-encoding": "gzip, compress, deflate, br"
},
"json": {
"gameJoinRestriction": {
"displayReason": "Test Reason"
}
},
"url": "https://postman-echo.com/patch?updateMask=%7B%22displayReason%22%3A%22Test%20Reason%22%7D&idempotencyKey.key=iq2kpz3g&idempotencyKey.firstSent=2025-06-06T12%3A25%3A07.292Z"
}
]
To add: Unfortunately through n8n, I can’t capture what is sent directly to the endpoint but this is what postman-echo receives as the same for roblox.
Have you checked the documentation for FieldMask? I don’t think what you’re feeding there for updateMask is a valid field mask. The error you are receiving seems to be correct based on the request you’re sending.
Based on what you’re trying to do, your field mask would just be game_join_restriction.display_reason, not a JSON blob.
However, note that this endpoint’s documentation states this limitation:
The
game_join_restrictionfield must be updated atomically; field masks that index intogame_join_restriction(such asgame_join_restriction.active) are not supported. This string is formatted as a FieldMask.
So I don’t think this’ll work for you. You’ll need to just patch the whole restriction object, not this one field.
Gotcha, I did attempt all the fields on it but received an error for the first field only.
I’ll look to re-work the code on it, thanks!
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.