SG Ground Truth

PUT /schema/<Type>/fields/<field>

put_schema_type_fields_field

Changes a field's properties. A body changing data_type is a 200 that does nothing, so read the field back rather than trusting the status code.

API

Params

part value
properties a list of {property_name, value}, the same shape the create takes

Sample requests

A rename, which works:

r = c.put("/schema/Version/fields/sg_my_field",
          json={"properties": [{"property_name": "name", "value": "Renamed"}]})

A type change, which does not:

r = c.put("/schema/Version/fields/sg_zzprobe_040_revive", json={"data_type": "number"})
print(r.status_code)
# 200
c.get("/schema/Version/fields/sg_zzprobe_040_revive").json()["data"]["data_type"]["value"]
# 'text', unchanged

Response codes

status when
200 accepted, which is not the same as applied

Edge cases

  • data_type is immutable and the API does not say so. The write answers 200 and the value is unchanged. This is the sharpest case of the general rule that a 200 from this API proves the request parsed, not that it happened.
  • Renaming changes the display name only. The programmatic name is fixed at creation, and a rename does not free the old one for reuse.

Every entry on this site is the output of a probe in probes/. The corpus is generated by running those probes against a live Flow Production Tracking site, not written from memory.

Not affiliated with or endorsed by Autodesk. Flow Production Tracking is their product; this is an independent record of how its REST API answers.