Just been working my way through the example here and noticed that when creating a right, leaving out the sourceRightId causes an application error:
POST http://localhost:3000/api/v1/rights
{
"right": {
"license": "My license"
},
"currentHolder": {
"publicKey": "Hrzhm61KQut7Rm2nT1k1f7gGpUWijxsGd8udcPqE5sSK",
"privateKey": "Eiea9RJPRAYqokwVbwr9tw7vt6HWdsZ9TbyFzjaeMdUc"
},
"sourceRightId": ""
}
Leaving out any of the other fields results in a 400 with useful information in the body as to why the request was unsuccessful.
Just been working my way through the example here and noticed that when creating a right, leaving out the
sourceRightIdcauses an application error:POST http://localhost:3000/api/v1/rights{ "right": { "license": "My license" }, "currentHolder": { "publicKey": "Hrzhm61KQut7Rm2nT1k1f7gGpUWijxsGd8udcPqE5sSK", "privateKey": "Eiea9RJPRAYqokwVbwr9tw7vt6HWdsZ9TbyFzjaeMdUc" }, "sourceRightId": "" }Leaving out any of the other fields results in a 400 with useful information in the body as to why the request was unsuccessful.