Store credential
POST/api/dcp/credentials
Stores a new credential
Request
Header Parameters
Authorization stringrequired
Access Token from Self-Issued ID Token
- application/json
Bodyrequired
@contextstring[]required
Example:
["https://w3id.org/dspace-dcp/v1.0/dcp.jsonld"]
typestringrequired
Example:
CredentialMessage
issuerPidstringrequired
holderPidstringrequired
statusstringrequired
Possible values: [ISSUED
, REJECTED
]
rejectionReasonstring
credentials object[]
Responses
- 200
- 400
- 403
Malformed request
- application/json
- Schema
- Example (auto)
Schema
namestringrequired
Example:
ResourceNotFound
statusstringrequired
Example:
404 Not Found
codenumberrequired
Example:
404
messageobject
Example:
The requested resource does not exist.
errorstring
Example:
Not Found
{
"name": "ResourceNotFound",
"status": "404 Not Found",
"code": 404,
"message": "The requested resource does not exist.",
"error": "Not Found"
}
Forbidden
- application/json
- Schema
- Example (auto)
Schema
namestringrequired
Example:
ResourceNotFound
statusstringrequired
Example:
404 Not Found
codenumberrequired
Example:
404
messageobject
Example:
The requested resource does not exist.
errorstring
Example:
Not Found
{
"name": "ResourceNotFound",
"status": "404 Not Found",
"code": 404,
"message": "The requested resource does not exist.",
"error": "Not Found"
}
- curl
- http
- CURL
curl -L -X POST 'https://tsg.dataspac.es/api/dcp/credentials' \
-H 'Content-Type: application/json'