I'm trying to use the Tooling REST API to create a new CustomField and then add it to certain
PermissionSet metadata with read/edit access appropriate to those profiles / permissionsets. Creating the field itself is straightforward, but I haven't been able to successfully retrieve or manipulate the field-level access for my newly created fields.
I can accomplish this same task using the Metadata API by accessing
PermissionSetFieldPermissions respectively, but I'm wondering if it's possible to do the same thing using the Tooling API (which is presumably faster).
I can retrieve
MyPermissionSet using this SOQL query on the
/query endpoint, but it doesn't include field level permissions:
Similar SOQL queries over the Tooling API to fetch
ProfileFieldLevelSecurity return with an error saying those objects are not supported.
Is it possible to update field-level security over the Tooling API? If so, what would an example request look like? Thanks.