interface ApiKey {
    accessToken: string;
    description?: string;
    environments: {
        sys: MetaLinkProps;
    }[];
    name: string;
    policies?: {
        action: string;
        effect: string;
    }[];
    preview_api_key: {
        sys: MetaLinkProps;
    };
    sys: MetaSysProps;
    delete(): Promise<void>;
    toPlainObject(): ApiKeyProps;
    update(): Promise<ApiKey>;
}

Hierarchy (view full)

Properties

accessToken: string
description?: string
environments: {
    sys: MetaLinkProps;
}[]
name: string
policies?: {
    action: string;
    effect: string;
}[]
preview_api_key: {
    sys: MetaLinkProps;
}

Methods

  • Deletes this object on the server.

    Returns Promise<void>

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

  • Sends an update to the server with any changes made to the object's properties

    Returns Promise<ApiKey>

    Object returned from the server with updated changes.