Replace work skill conditions

put

/rest/ofscMetadata/v1/workSkillConditions

This operation updates all the work skill conditions.

Note: The conditions that are not provided in the request are removed from the system.

Request

Body ()
The collection of work skill conditions.
Root Schema : PutWorkSkillConditions
Type: object
The collection of work skill conditions.
Show Source
Nested Schema : items
Type: array
Show Source
Nested Schema : Work Skill Condition
Type: object
Title: Work Skill Condition
Show Source
  • Conditions
    Title: Conditions
    The array of condition objects.
  • Dependencies
    Title: Dependencies
    The array of dependency objects.
  • 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.
  • Title: Label
    Minimum Length: 1
    Maximum Length: 40
    The label of a work skill. This field is required for all conditions.
  • Title: Preferable Level
    Minimum Value: 1
    Maximum Value: 100
    The preference level of the work skill. This field is required for all conditions.
  • Title: Required Level
    Minimum Value: 0
    Maximum Value: 100
    The required level of the work skill. This field is required for all conditions.
Nested Schema : Conditions
Type: array
Title: Conditions
The array of condition objects.
Show Source
Nested Schema : Dependencies
Type: array
Title: Dependencies
The array of dependency objects.
Show Source
Nested Schema : items
Type: object
Show Source
  • Allowed Values: [ "in", "notIn", "contains", "dContain", "isNull", "isNotNull", ">", "<", ">=", "<=", "startsWith", "dStartWith" ]
    The function used by the condition to test a property.
  • Minimum Length: 1
    Maximum Length: 40
    The label of the condition object.
  • 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
    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.

Nested Schema : valueList
Type: array
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.

Show Source
Nested Schema : items
Type: object
Show Source
Nested Schema : dependency
Type: array
The array of objects containing the internal ID fields.
Show Source
Nested Schema : items
Type: object
Show Source
  • Minimum Value: 1
    Minimum Length: 1
    Maximum Length: 10
    The internal ID of the work skill condition item within the request.
Back to Top

Response

Supported Media Types

200 Response

This section describes the 200 status response for this operation.
Body ()
Root Schema : WorkSkillConditions
Type: object
The collection of work skill conditions.
Show Source
Nested Schema : items
Type: array
Show Source
Nested Schema : Work Skill Condition
Type: object
Title: Work Skill Condition
Show Source
  • Conditions
    Title: Conditions
    The array of condition objects.
  • Dependencies
    Title: Dependencies
    The array of dependency objects.
  • 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.
  • Title: Label
    Minimum Length: 1
    Maximum Length: 40
    The label of a work skill. This field is required for all conditions.
  • Title: Preferable Level
    Minimum Value: 1
    Maximum Value: 100
    The preference level of the work skill. This field is required for all conditions.
  • Title: Required Level
    Minimum Value: 0
    Maximum Value: 100
    The required level of the work skill. This field is required for all conditions.
Nested Schema : Conditions
Type: array
Title: Conditions
The array of condition objects.
Show Source
Nested Schema : Dependencies
Type: array
Title: Dependencies
The array of dependency objects.
Show Source
Nested Schema : items
Type: object
Show Source
  • Allowed Values: [ "in", "notIn", "contains", "dContain", "isNull", "isNotNull", ">", "<", ">=", "<=", "startsWith", "dStartWith" ]
    The function used by the condition to test a property.
  • Minimum Length: 1
    Maximum Length: 40
    The label of the condition object.
  • 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
    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.

Nested Schema : valueList
Type: array
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.

Show Source
Nested Schema : items
Type: object
Show Source
Nested Schema : dependency
Type: array
The array of objects containing the internal ID fields.
Show Source
Nested Schema : items
Type: object
Show Source
  • Minimum Value: 1
    Minimum Length: 1
    Maximum Length: 10
    The internal ID of the work skill condition item within the request.

Default Response

This section describes the default error response for this operation.
Body ()
Root Schema : Error
Type: object
Show Source
Back to Top

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
            }
          ]
        }
      ]
    }
    { ... },
...
    ]
}
Back to Top