RingGroup creation through xAPI 'delta' field required

Status
Not open for further replies.

mikaelwills

New User
Joined
Oct 24, 2023
Messages
5
Reaction score
2
Hi,

Im trying to use the xAPI to programatically create ring groups using the documentation in the openapi: 3.0yaml file.
Ive even inspected in chrome the network call to make a ring group when the webclient does it and matched my json payload with that.
But whenever i do it i get a 400 response with: {"error":{"code":"","message":"The input was not valid.\n\ndelta:\nThe delta field is required.","details":[{"code":"","message":"The input was not valid."},{"code":"","target":"delta","message":"The delta field is required."}]}}

This 'delta' field isnt in any of the documentation, I've tried putting the ring group inside a 'delta': jsonEncode(ringGroup). Ive tried adding a 'delta': ''; field with a string, int, bool, date time and it doesnt like them either.

Does anyone have any documentation on what this is?
Regards
 
I managed to fix it by putting

'OData-Version': '4.0',
'Prefer': 'return=representation'

In the headers of the POST request
 
Status
Not open for further replies.

Forum statistics

Threads
112,328
Messages
591,905
Members
165,483
Latest member
AshleyStokes