Community Tip - Learn all about the Community Ranking System, a fun gamification element of the PTC Community. X

Translate the entire conversation x

POST /ProblemReports folder location

Dobi
16-Pearl

POST /ProblemReports folder location

Version: Windchill 13.0

 

Use Case: Creating a problem with REST API but can't adjust the folder location in the API body.


Description:

Not sure how to use the syntax perhaps but I tried everything that comes to mind and I'm not getting the expected result. 

 

Here:

Context@odata.bind is the Context (wt.pdmlink.PDMLinkProduct:xxx)

Folder@odata.bind is ... what? I tried putting in versions of "Folders('OR:wt.folder.SubFolder:xxx')"

 

{
  "Name": "",
  "IssuePriority": {
    "Value": ""
  },
  "Requester": "",
  "State": {
    "Value": ""
  },
  "TypeIcon": {
    "Path": ""
  },
  "NeedDate": "2025-03-12T17:51:19.836Z",
  "@odata.type": "",
  "Context@odata.bind": "",
  "Folder@odata.bind": "",
  "Attachments@odata.bind": [
    ""
  ],
  "CIAffectLinks@odata.bind": [
    ""
  ],
  "AffectedObjects@odata.bind": [
    ""
  ]
}

 

 There are also:

"FolderLocation" and "FolderName"... both seem to do nothing to set the location. 

 

If I want the created problem report to go to a specific folder, what is the correct syntax in the body of the API? 

0 REPLIES 0
Announcements


Top Tags