Skip to content

CreateElementParent has a required useless request body

CreateElementParent has both some path parameters and a required body. This means that this call will not work:

cli.request('CreateElementParent', parent=some_id, child=some_id)

Workaround:

cli.request('CreateElementParent', parent=some_id, child=some_id, body={})

Note that APIStar does not validate request bodies, otherwise, the workaround would have been:

cli.request('CreateElementParent', parent=some_id, child=some_id, body={'parent': some_id, 'child': some_id})

The request body is completely ignored by the actual endpoint.