Create a data retention policy

Add a new data retention policy to the space

Headers

AuthorizationstringRequired

Bearer authentication of the form Bearer <token>, where token is your auth token.

X-Disable-Hooks"true"Required

Request

This endpoint expects an object.
typeenumRequired
The type of data retention policy on an environment
Allowed values:
periodintegerRequired
environmentIdstringRequired
Environment ID

Response

This endpoint returns an object.
dataobject
A data retention policy belonging to an environment

Errors