Replace work skill conditions
/rest/ofscMetadata/v1/workSkillConditions
Note: The conditions that are not provided in the request are removed from the system.
Request
object
array
-
Array of:
object Work Skill Condition
Title:
Work Skill Condition
object
Work Skill Condition
-
conditions:
array Conditions
Title:
Conditions
The array of condition objects. -
dependencies:
array Dependencies
Title:
Dependencies
The array of dependency objects. -
internalId(required):
integer
Title:
Internal ID
Minimum Value:1
Minimum Length:1
Maximum Length:10
The 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:
Label
Minimum Length:1
Maximum Length:40
The label of a work skill. This field is required for all conditions. -
preferableLevel(required):
integer
Title:
Preferable Level
Minimum Value:1
Maximum Value:100
The preference level of the work skill. This field is required for all conditions. -
requiredLevel(required):
integer
Title:
Required Level
Minimum Value:0
Maximum Value:100
The required level of the work skill. This field is required for all conditions.
array
Conditions
array
Dependencies
object
-
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:
1
Maximum Length:40
The 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.
array
A 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.
array
object
-
internalId(required):
integer
Minimum Value:
1
Minimum Length:1
Maximum Length:10
The 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
object
Work Skill Condition
-
conditions:
array Conditions
Title:
Conditions
The array of condition objects. -
dependencies:
array Dependencies
Title:
Dependencies
The array of dependency objects. -
internalId(required):
integer
Title:
Internal ID
Minimum Value:1
Minimum Length:1
Maximum Length:10
The 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:
Label
Minimum Length:1
Maximum Length:40
The label of a work skill. This field is required for all conditions. -
preferableLevel(required):
integer
Title:
Preferable Level
Minimum Value:1
Maximum Value:100
The preference level of the work skill. This field is required for all conditions. -
requiredLevel(required):
integer
Title:
Required Level
Minimum Value:0
Maximum Value:100
The required level of the work skill. This field is required for all conditions.
array
Conditions
array
Dependencies
object
-
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:
1
Maximum Length:40
The 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.
array
A 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.
array
object
-
internalId(required):
integer
Minimum Value:
1
Minimum Length:1
Maximum Length:10
The 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 } ] } ] } { ... }, ... ] }