Ga naar inhoud

Offer every current credential again

POST
/api/v1/credentials/reoffer
curl --request POST \
--url https://example.com/api/v1/credentials/reoffer \
--cookie bl_authority_session=<bl_authority_session>

Offers each active participant a successor of its current credentials now, for example after a change of the issuer key, instead of waiting for two thirds of their lifetime.

OK.

Media typeapplication/json
object
offered
required

How many credentials were offered again.

integer format: int64
failed
required

The offers that failed: did, type, error.

Array<object>
object

Example generated

{
"offered": 1,
"failed": [
{}
]
}

No valid session, DPoP-bound token or API key.

Media typeapplication/json

The body of every failed call to a management API.

object
error
required
object
code
required

Stable, machine-readable: invalid_request, unauthenticated, forbidden, not_found, conflict, upstream_unavailable, unavailable, internal, or a more specific code of the operation.

string
message
required

For people; may change between versions.

string

Example

{
"error": {
"code": "not_found",
"message": "unknown negotiation"
}
}

The caller lacks the role this operation needs; or a change with the session cookie came from a page of another site (cross_site_request, decisions #83).

Media typeapplication/json

The body of every failed call to a management API.

object
error
required
object
code
required

Stable, machine-readable: invalid_request, unauthenticated, forbidden, not_found, conflict, upstream_unavailable, unavailable, internal, or a more specific code of the operation.

string
message
required

For people; may change between versions.

string

Example

{
"error": {
"code": "not_found",
"message": "unknown negotiation"
}
}