Hi,
I need to add new properties / fields to a workspace via the REST API.
I know I can get some information about the properties via following URL:
https://{{tenant}}.autodeskplm360.net/api/rest/v1/workspaces/{{workspaceId}}/metafields
I have tried to make a POST there without any success, also in the documentation I do not find anything about this.
It is possible to create new fields via the API?
If not, what possibilities do I have to reduce my effort when creating a workspace with new fields? I have the information somewhere else and I want to write some code which reads that information and automatically creates the fields in the appropriate workspace.
Maybe it is possible to manage this by using the scripting on FusionLifeCycle?
Another question about the information I get for the "metafields" with the requested URI mentioned above:
How do I know if a field is required or not? I can find really less documentation about this stuff, I get in the web client more information than I get from a response via the API. Here is an example response:
{ "list": { "meta": [ { "sortDescending": false, "fieldID": "NUMBER", "fieldName": "Number", "fieldType": 9, "htmlDisplay": 7, "editable": "N", "displayOrder": 1, "matrix": false, "newLine": false, "matrixEnd": false, "sectionID": 160, "sectionURI": "https://<tenant>.autodeskplm360.net/api/rest/v1/workspaces/56/sections/160" }, { "sortDescending": false, "fieldID": "TITLE", "fieldName": "Title", "fieldType": 4, "fieldLength": 12, "htmlDisplay": 1, "displayLength": 12, "editable": "Y", "displayOrder": 2, "matrix": false, "newLine": false, "matrixEnd": false, "sectionID": 160, "sectionURI": "https://<tenant>.autodeskplm360.net/api/rest/v1/workspaces/56/sections/160" } ] } }