Replace work skill conditions
/rest/ofscMetadata/v1/workSkillConditions
Note: The conditions that are not provided in the request are removed from the system.
Request
objectarray-
Array of:
object Work Skill Condition
Title:
Work Skill Condition
objectWork Skill Condition-
conditions:
array Conditions
Title:
ConditionsThe array of condition objects. -
dependencies:
array Dependencies
Title:
DependenciesThe array of dependency objects. -
internalId(required):
integer
Title:
Internal IDMinimum Value:1Minimum Length:1Maximum Length:10The unique identifier of a work skill condition item within the request. This value may be used for reference in the 'dependencies' array of another condition. The values of Id sent to Oracle Field Service does not necessarily match the obtained values in the GET operation. -
label(required):
string
Title:
LabelMinimum Length:1Maximum Length:40The label of a work skill. This field is required for all conditions. -
preferableLevel(required):
integer
Title:
Preferable LevelMinimum Value:1Maximum Value:100The preference level of the work skill. This field is required for all conditions. -
requiredLevel(required):
integer
Title:
Required LevelMinimum Value:0Maximum Value:100The required level of the work skill. This field is required for all conditions.
arrayConditionsarrayDependenciesobject-
function(required):
string
Allowed Values:
[ "in", "notIn", "contains", "dContain", "isNull", "isNotNull", ">", "<", ">=", "<=", "startsWith", "dStartWith" ]The function used by the condition to test a property. -
label(required):
string
Minimum Length:
1Maximum Length:40The label of the condition object. -
value:
string
The value used by the condition to test a function. This value is ignored for 'isNull' and 'isNotNull' functions, as they do not require parameters. It is also ignored for 'in' and 'notIn' functions, as they require list of parameters.
-
valueList:
array valueList
The array of values used by the condition to test a function. This field is used for testing 'in' and 'notIn' functions.
A list of strings can be used to test string fields. A list of enumeration labels can be used to test enumeration fields.
arrayA list of strings can be used to test string fields. A list of enumeration labels can be used to test enumeration fields.
object-
dependency(required):
array dependency
The array of objects containing the internal ID fields.
-
type(required):
string
Allowed Values:
[ "selected", "notSelected" ]The type of the dependency.
arrayobject-
internalId(required):
integer
Minimum Value:
1Minimum Length:1Maximum Length:10The internal ID of the work skill condition item within the request.
Response
- application/schema+json
- application/json
200 Response
object-
items:
array items
-
totalResults:
integer
The total number of work skill conditions returned.
array-
Array of:
object Work Skill Condition
Title:
Work Skill Condition
objectWork Skill Condition-
conditions:
array Conditions
Title:
ConditionsThe array of condition objects. -
dependencies:
array Dependencies
Title:
DependenciesThe array of dependency objects. -
internalId(required):
integer
Title:
Internal IDMinimum Value:1Minimum Length:1Maximum Length:10The unique identifier of a work skill condition item within the request. This value may be used for reference in the 'dependencies' array of another condition. The values of Id sent to Oracle Field Service does not necessarily match the obtained values in the GET operation. -
label(required):
string
Title:
LabelMinimum Length:1Maximum Length:40The label of a work skill. This field is required for all conditions. -
preferableLevel(required):
integer
Title:
Preferable LevelMinimum Value:1Maximum Value:100The preference level of the work skill. This field is required for all conditions. -
requiredLevel(required):
integer
Title:
Required LevelMinimum Value:0Maximum Value:100The required level of the work skill. This field is required for all conditions.
arrayConditionsarrayDependenciesobject-
function(required):
string
Allowed Values:
[ "in", "notIn", "contains", "dContain", "isNull", "isNotNull", ">", "<", ">=", "<=", "startsWith", "dStartWith" ]The function used by the condition to test a property. -
label(required):
string
Minimum Length:
1Maximum Length:40The label of the condition object. -
value:
string
The value used by the condition to test a function. This value is ignored for 'isNull' and 'isNotNull' functions, as they do not require parameters. It is also ignored for 'in' and 'notIn' functions, as they require list of parameters.
-
valueList:
array valueList
The array of values used by the condition to test a function. This field is used for testing 'in' and 'notIn' functions.
A list of strings can be used to test string fields. A list of enumeration labels can be used to test enumeration fields.
arrayA list of strings can be used to test string fields. A list of enumeration labels can be used to test enumeration fields.
object-
dependency(required):
array dependency
The array of objects containing the internal ID fields.
-
type(required):
string
Allowed Values:
[ "selected", "notSelected" ]The type of the dependency.
arrayobject-
internalId(required):
integer
Minimum Value:
1Minimum Length:1Maximum Length:10The internal ID of the work skill condition item within the request.
Default Response
object-
detail:
string
The detailed description of this error.
-
status:
string
The HTTP status code of this error.
-
title(required):
string
The brief description of this error.
-
type(required):
string
The URL of the web page containing more details about this error.
Examples
The following example shows how to replace all work skill conditions by submitting a PUT request on the REST resource.
Example of Request Header
The following shows an example of the request header.
PUT /rest/ofscMetadata/v1/workSkillConditions HTTP/1.1 Host: <instance_name>.fs.ocs.oraclecloud.com Authorization: Basic c29hcEBwZXRyb2xpYXNoZXZ5Y2gucmVzdDox Accept: */*
Example of Response Body
The following example shows the contents of the response body in JSON format.
{
"items":[
{
"internalId": 154,
"label": "test2",
"requiredLevel": 1,
"preferableLevel": 3,
"conditions": [
{
"label": "WO_TYPE",
"function": "in",
"value": "3,4"
}
],
"dependencies": [
{
"type": "selected",
"dependency": [
{
"internalId": 151
},
{
"internalId": 153
}
]
}
]
}
{ ... },
...
]
}