Skip to content

Registering a right #36

Description

@addywaddy

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions