BSV blockchainBSV blockchain

Insert an identity certificate.

POST/certificates

Body application/json

certificateIdinteger
userIdintegerrequired
certifierstringrequired
serialNumberstringrequired
typestringrequired
isDeletedbooleanrequired
fieldsobject[]

Response

certificateId of the new record.

certificateIdinteger

Authentication required or token invalid.

errorstring
codestring

Machine-readable error code (see specs/errors.md).

Request
curl -X POST "https://{host}/storage/v1/certificates" \
  -H "Content-Type: application/json" \
  -d '{
  "certificateId": 0,
  "userId": 0,
  "certifier": "string",
  "serialNumber": "string",
  "type": "string",
  "isDeleted": true,
  "fields": [
    {}
  ]
}'
Response
{
  "certificateId": 0
}