Skip to main content

Trigger artificial error

post
/api/pvlt/1.0/system/debug/error/trigger

Manually trigger an artificial error for testing purposes.

The role that performs this operation must have the CapErrorWriter capability. See Access control for more information about how capabilities are used to control access to operations.

Request

Request body

required*
Any type

Possible responses

The request is invalid.

object required*
  • context - object required*

    The error context.

    Values of additional properties are strings
    Example
    {
    "objectid": "b56dd6aa-35f0-11ed-a261-0242ac120002"
    }
  • error_code - string required*

    The error code.

  • message - string required*

    The error message.

Example
{
"error_code": "PV1001",
"message": "The access reason is missing.",
"context": {
"reason": null
}
}

Try the API

Authorization

Request body

Navigate to the docs of your local Vault installation to try the API directly from there.

Code examples

Example