Hierarchy

Properties

Methods

Properties

generated?: {
    privateKey: string;
}

If generated, private key is returned

Type declaration

  • privateKey: string

    Base64 PEM

jwk: JWK

JSON Web Key

sys: AppKeySys

System metadata

Methods

  • Deletes this object on the server.

    Returns

    Promise for the deletion. It contains no data, but the Promise error case should be handled.

    Example

    const contentful = require('contentful-management')

    const client = contentful.createClient({
    accessToken: '<content_management_api_key>'
    })
    client.getOrganization('<organization_id>')
    .then((organization) => organization.getAppKey(<api-key-id>))
    .then((signingSecret) => signingSecret.delete())
    .then(() => console.log('signingSecret deleted'))
    .catch(console.error)

    Returns Promise<void>