Custom Fields in Apps/Pipeline Scripts- Can they be created if they dont exist?

I was wondering the following:

If I have custom apps/scripts that require custom fields on, for example, a version to exist.
These fields have been created in our Shotgun environement, but I wondered if they can be created from the API if they don’t exist?

For instance if I would release a tool on github that requires these fields, could the tool check for them and creates these if they dont exist?

1 Like

You may check out schema_field_create method in the API to achieve this.


Thanks that was what I was looking for! :slight_smile: