Ga naar inhoud

End an agreement (provider)

POST
/dsp/agreements/{id}/termination
curl --request POST \
--url https://example.com/dsp/agreements/example/termination \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{}'

Not part of DSP (decisions #76): the consumer ends an agreement with an AgreementTerminationMessage. Running transfers under it end. The same message again gets the same answer.

id
required
string

The id of the agreement.

An AgreementTerminationMessage for this agreement.

Media typeapplication/json
object

Example generated

{}

Ended.

Media typeapplication/json
object

Example generated

{}

The request is not valid.

Media typeapplication/json

A DSP error (dspace:…Error): code and reason, as JSON-LD.

object
@context
required
object
@type
required

E.g. ContractNegotiationError.

string
code
required
string
reason
required
Array<string>

Example generated

{
"@context": {},
"@type": "example",
"code": "example",
"reason": [
"example"
]
}

Not authenticated.

Media typeapplication/json

A DSP error (dspace:…Error): code and reason, as JSON-LD.

object
@context
required
object
@type
required

E.g. ContractNegotiationError.

string
code
required
string
reason
required
Array<string>

Example generated

{
"@context": {},
"@type": "example",
"code": "example",
"reason": [
"example"
]
}

Unknown agreement.

Media typeapplication/json

A DSP error (dspace:…Error): code and reason, as JSON-LD.

object
@context
required
object
@type
required

E.g. ContractNegotiationError.

string
code
required
string
reason
required
Array<string>

Example generated

{
"@context": {},
"@type": "example",
"code": "example",
"reason": [
"example"
]
}