Creating Multiple Skills
You can create single or multiple skills using the CreateSkills action. The following example shows how to create multiple skills. Use the following POST request with the request body:
URI
POST /Windchill/servlet/odata/MfgProcMgmt/CreateSkills HTTP/1.1
Request Headers
Content-Type: application/json
CSRF_NONCE: <Use the value from Fetch NONCE example>
Request Body
{
"Skills": [
{
"Name": "SkillsTest001",
"Category": {
"Value": "Machinist"
},
"Description": "Description field test",
"View": "Service",
"Folder@odata.bind": "Folders('OR:wt.folder.SubFolder:201389')",
"DefaultUnit": {
"Value": "ea"
},
"Usage": {
"Value": "AllUsage"
}
},
{
"Name": "SkillsTest002",
"Category": {
"Value": "Machinist"
},
"Description": "Description field test",
"View": "Service",
"Folder@odata.bind": "Folders('OR:wt.folder.SubFolder:201389')",
"DefaultUnit": {
"Value": "ea"
},
"Usage": {
"Value": "AllUsage"
}
}
]
}
You can also assign single-valued or multi-valued Security Labels for single or multiple Skills.
Example: Assigning Single-valued Security Label for Multiple Skills
This example shows you how to create two Skills with single-valued security labels. Use the following POST URI with the request body.
URI
POST /Windchill/servlet/odata/MfgProcMgmt/CreateSkills
Request Header
Content-Type: application/json
CSRF_NONCE: <Use the value from Fetch NONCE example>
Request Body
{
"Skills": [
{
"Name": "Skill 1.3.1",
"DefaultUnit": {
"Value": "ea"
},
"Category": {
"Value": "Assembler"
},
"Context@odata.bind": "Containers('OR:wt.pdmlink.PDMLinkProduct:113009')",
"EXPORTCONTROL": "CUSTOM"
},
{
"Name": "Skill 1.3.2",
"DefaultUnit": {
"Value": "ea"
},
"Category": {
"Value": "Assembler"
},
"Context@odata.bind": "Containers('OR:wt.pdmlink.PDMLinkProduct:113009')",
"EXPORTCONTROL": "LNC"
}
]
}
Example: Assigning Multi-valued Security Label for Multiple Skills
This example shows you how to create two Skills with multi-valued security labels. Use the following POST URI with the request body.
URI
POST /Windchill/servlet/odata/MfgProcMgmt/CreateSkills
Request Header
Content-Type: application/json
CSRF_NONCE: <Use the value from Fetch NONCE example>
Request Body
{
"Skills": [
{
"Name": "Skill 1.4.1",
"DefaultUnit": {
"Value": "ea"
},
"Category": {
"Value": "Assembler"
},
"Context@odata.bind": "Containers('OR:wt.pdmlink.PDMLinkProduct:113009')",
"EXPORTCONTROL": "LNC,CUSTOM"
},
{
"Name": "Skill 1.4.2",
"DefaultUnit": {
"Value": "ea"
},
"Category": {
"Value": "Assembler"
},
"Context@odata.bind": "Containers('OR:wt.pdmlink.PDMLinkProduct:113009')",
"EXPORTCONTROL": "LNC,CUSTOM"
}
]
}
Was this helpful?