Create a data retention policy

POST

Add a new data retention policy to the space

Headers

X-Disable-Hooks"true"Required

Request

This endpoint expects an object.
type"lastActivity" or "sinceCreated"Required
Allowed values: lastActivitysinceCreated

The type of data retention policy on an environment

periodintegerRequired
environmentIdstringRequired

Environment ID

Response

This endpoint returns an object.
dataobject

A data retention policy belonging to an environment

Errors