Receive a delegation request or offer
const url = 'https://example.com/delegation/v1/requests';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://example.com/delegation/v1/requests \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{}'Another connector sends a DelegationRequest: a rights holder asks us to deliver a dataset (with its control plane), or a supplier offers to deliver one of ours (with its data plane). The same request again gets the same answer.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Header Parameters
Section titled “Header Parameters”The sender’s signature over the body, recorded as evidence.
Request Bodyrequired
Section titled “Request Bodyrequired”A DelegationRequest (JSON-LD).
object
Example generated
{}Responses
Section titled “Responses”Created.
What the other connector gets back: the state of the delegation.
object
https://w3id.org/buildinglinks/v1/delegation.
Delegation.
Example generated
{ "@context": "example", "@type": "example", "@id": "example", "state": "example"}The request is not valid.
The body of every failed call to a management API.
object
object
Stable, machine-readable: invalid_request, unauthenticated,
forbidden, not_found, conflict, upstream_unavailable,
unavailable, internal, or a more specific code of the operation.
For people; may change between versions.
Example
{ "error": { "code": "not_found", "message": "unknown negotiation" }}No valid DCP token or signature.
The sender is not the delegator or delegate, or not an active member.
The body of every failed call to a management API.
object
object
Stable, machine-readable: invalid_request, unauthenticated,
forbidden, not_found, conflict, upstream_unavailable,
unavailable, internal, or a more specific code of the operation.
For people; may change between versions.
Example
{ "error": { "code": "not_found", "message": "unknown negotiation" }}The id is in use.
The body of every failed call to a management API.
object
object
Stable, machine-readable: invalid_request, unauthenticated,
forbidden, not_found, conflict, upstream_unavailable,
unavailable, internal, or a more specific code of the operation.
For people; may change between versions.
Example
{ "error": { "code": "not_found", "message": "unknown negotiation" }}