JOC API

Version 2.2.0

Download RAML
JOC API
/inventory/replace
POST

Searches/replaces names of inventory objects


Parameters in the POST body schema

Name Type Description Example Default
objects required, array[object] Each item of this array specifies an inventory object with
Either id or the tupel (path and objectType). id beats a specified path/objectType tuple
id integer ID of the inventory item
path string Path of the inventory item
objectType string Object type of the inventory item. Possible value are
  • "WORKFLOW"
  • "JOBRESOURCE"
  • "LOCK"
  • "NOTICEBOARD"
  • "FILEORDERSOURCE"
  • "WORKINGDAYSCALENDAR"
  • "NONWORKINGDAYSCALENDAR"
  • "SCHEDULE"
  • "INCLUDESCRIPT"
search required, string Pattern (regular expression) that will be replaced by replace.
Example to remove a "copy" suffix: "-copy[0-9]*$"
replace required, string This string replace all matches from the search.
Up to nine groups can be addressed with $1, ..., $9
auditLog optional, object Object that contains comment, timeSpent and ticketLink. {
"comment":"Operational requirement!",
"timeSpent":2
}
comment optional, string Field in auditLog to comment this action, e.g. the reason.
timeSpent optional, integer Field in auditLog to enter the time spent in minutes. 5
ticketLink optional, string Field in auditLog to enter a link to a corresponding ticket.