Skip to main content
Version: v0.4.0

Update credential

PUT 

/api/management/credentials/:credentialId

Update a credential within this wallet. Note: this will either self-issue or import a credential.

Request

Path Parameters

    credentialId stringrequired

Body

required

    contextstring[]
    Example: ["https://dataspace.example/context"]
    typestring[]
    Example: ["DataSpaceMembershipCredential"]
    idCredential ID (string)required
    keyIdstring

    credentialSubject

    object

    required

    idstringrequired

Responses

Schema

    idstringrequired
    targetDidstringrequired

    credential

    object

    required

    @contextstring[]required
    typestring[]required
    idstring

    credentialSubject

    object

    required

    oneOf

    idstringrequired
    issuerstringrequired
    expirationDatedate-time
    issuanceDatedate-timerequired
    evidenceobject

    proof

    object

    required

    oneOf

    oneOf

    idstring
    typestringrequired
    proofPurposestringrequired
    verificationMethodstring
    cryptosuitestringrequired
    createdstring
    expiresstring

    domain

    object

    oneOf

    string

    challengestring
    proofValuestringrequired

    previousProof

    object

    oneOf

    string

    noncestring
    selfIssuedbooleanrequired
    createddate-timerequired
    modifieddate-timerequired
    deleteddate-time