mailpit unofficial
PUT/api/v1/chaos

Set Chaos triggers

Set the Chaos triggers configuration and return the updated values. This API route will return an error if Chaos is not enabled at runtime.

If any triggers are omitted from the request, then those are reset to their default values with a 0% probability (ie: disabled). Setting a blank {} will reset all triggers to their default values.

3 body fields
Authenticationobjectoptional
Trigger for Chaos
Recipientobjectoptional
Trigger for Chaos
Senderobjectoptional
Trigger for Chaos

2 status codes
200Response for the Chaos triggers configuration
Authenticationobjectoptional
Trigger for Chaos
Recipientobjectoptional
Trigger for Chaos
Senderobjectoptional
Trigger for Chaos
400Server error will return with a 400 status code with the error message in the body

Error handling

A 400 is returned: Server error will return with a 400 status code with the error message in the body.