UserClouds logo
Userstore/Config/Columns/Id/Liveretentiondurations

Update Live ColumnRetentionDurations for Column

This endpoint updates all specified Live column purpose ColumnRetentionDurations for a tenant column. For each retention duration, if id is nil and use_default is false, the retention duration will be created; if id is non-nil and use_default is false, the associated retention duration will be updated; or if id is non-nil and use_default is true, the associated retention duration will be deleted. Each column purpose retention duration that has been deleted will fall back to the associated purpose retention duration.

POST
/userstore/config/columns/{id}/liveretentiondurations

Path Parameters

idstring
Formatuuid
retention_durations?array<object>

Response Body

curl -X POST "https://your-tenant-name.tenant.userclouds.com/userstore/config/columns/248df4b7-aa70-47b8-a036-33ac447e668d/liveretentiondurations" \
  -H "Content-Type: application/json" \
  -d '{}'
const body = JSON.stringify({})

fetch("https://your-tenant-name.tenant.userclouds.com/userstore/config/columns/248df4b7-aa70-47b8-a036-33ac447e668d/liveretentiondurations", {
  body
})
package main

import (
  "fmt"
  "net/http"
  "io/ioutil"
  "strings"
)

func main() {
  url := "https://your-tenant-name.tenant.userclouds.com/userstore/config/columns/248df4b7-aa70-47b8-a036-33ac447e668d/liveretentiondurations"
  body := strings.NewReader(`{}`)
  req, _ := http.NewRequest("POST", url, body)
  req.Header.Add("Content-Type", "application/json")
  res, _ := http.DefaultClient.Do(req)
  defer res.Body.Close()
  body, _ := ioutil.ReadAll(res.Body)

  fmt.Println(res)
  fmt.Println(string(body))
}
import requests

url = "https://your-tenant-name.tenant.userclouds.com/userstore/config/columns/248df4b7-aa70-47b8-a036-33ac447e668d/liveretentiondurations"
body = {}
response = requests.request("POST", url, json = body, headers = {
  "Content-Type": "application/json"
})

print(response.text)
{
  "max_duration": {
    "duration": 0,
    "unit": "day"
  },
  "retention_durations": [
    {
      "column_id": "248df4b7-aa70-47b8-a036-33ac447e668d",
      "default_duration": {
        "duration": 0,
        "unit": "day"
      },
      "duration": {
        "duration": 0,
        "unit": "day"
      },
      "duration_type": "",
      "id": "248df4b7-aa70-47b8-a036-33ac447e668d",
      "purpose_id": "248df4b7-aa70-47b8-a036-33ac447e668d",
      "purpose_name": "string",
      "use_default": true,
      "version": 0
    }
  ]
}
Empty
Empty
Empty
Empty