v9 metadata webapi - create solution

157 views Asked by At

Receive the following error when trying to create a solution via the webapi v9:

Invoke-RestMethod : {"error":{"code":"0x0","message":"An error occurred while validating input parameters: Microsoft.OData.ODataException: A 'PrimitiveValue' node with non-null value was found when trying to read the value of the property 'publisherid'; however, a 'StartArray' node, a 'StartObject' node, or a 'PrimitiveValue' node with null value was expected.\r\n at

I have tried a json object in the field as well, but nothing works for setting the publisherid.

1

There are 1 answers

0
sfarriss On

Nevermind, I forgot it has to be in the format:

"[email protected]": "https://[Organization URI]/api/data/v9.0/publishers(60f77a42-5f0e-e611-80e0-00155da84c03)"