UserClouds logo
Userstore/Config/Columns/Id

Update Column

This endpoint updates a specified column. Some column characteristics cannot be changed in an Update operation, once the column contains data. A column update may invalidate the accessors defined for it.

PUT
/userstore/config/columns/{id}

Path Parameters

idstring
Formatuuid
column?object

Response Body

curl -X PUT "https://your-tenant-name.tenant.userclouds.com/userstore/config/columns/248df4b7-aa70-47b8-a036-33ac447e668d" \
  -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", {
  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"
  body := strings.NewReader(`{}`)
  req, _ := http.NewRequest("PUT", 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"
body = {}
response = requests.request("PUT", url, json = body, headers = {
  "Content-Type": "application/json"
})

print(response.text)
{
  "access_policy": {
    "id": "248df4b7-aa70-47b8-a036-33ac447e668d",
    "name": "string"
  },
  "constraints": {
    "fields": [
      {
        "camel_case_name": "string",
        "ignore_for_uniqueness": true,
        "name": "string",
        "required": true,
        "struct_name": "string",
        "type": "string"
      }
    ],
    "immutable_required": true,
    "partial_updates": true,
    "unique_id_required": true,
    "unique_required": true
  },
  "data_type": {
    "id": "248df4b7-aa70-47b8-a036-33ac447e668d",
    "name": "string"
  },
  "default_token_access_policy": {
    "id": "248df4b7-aa70-47b8-a036-33ac447e668d",
    "name": "string"
  },
  "default_transformer": {
    "id": "248df4b7-aa70-47b8-a036-33ac447e668d",
    "name": "string"
  },
  "default_value": "string",
  "id": "248df4b7-aa70-47b8-a036-33ac447e668d",
  "index_type": "indexed",
  "is_array": true,
  "is_system": true,
  "name": "string",
  "search_indexed": true,
  "table": "string",
  "type": "string"
}
Empty
Empty
Empty
Empty