Handle negotiation callback event
POST/api/negotiations/callbacks/:id/events
Handle negotiation callback event
Request
Path Parameters
id stringrequired
- application/json
Bodyrequired
@typestringrequired
Example:
dspace:ContractNegotiationEventMessage
dspace:consumerPidstringrequired
Example:
urn:example:consumerPid
dspace:providerPidstringrequired
Example:
urn:example:providerPid
dspace:eventTypestringrequired
Example:
NEGOTIATION_STARTED
Responses
- 200
- application/json
- Schema
- Example (auto)
Schema
statusstring
{
"status": "string"
}
Authorization: http
name: bearertype: httpscheme: bearerbearerFormat: VPdescription: Verifiable Presentation needed to communicate between two instances of the control plane.
- curl
- http
- CURL
curl -L 'https://tsg.dataspac.es/api/negotiations/callbacks/:id/events' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <token>' \
--data-raw '{
"@type": "dspace:ContractNegotiationEventMessage",
"dspace:consumerPid": "urn:example:consumerPid",
"dspace:providerPid": "urn:example:providerPid",
"dspace:eventType": "NEGOTIATION_STARTED"
}'