PUT Edit Process File API

Edit Process File API is used to update existing process file in the process file library.

Method URI

PUT

cdwebconsole/svc/processlibrary

Table 1. Input Parameters
Parameter Name Required/Optional Description Valid values

processFileName

Required

Specifies the fully qualified name of process file

 
processFileData Required Specifies the data of process file  
The following example shows the Command:
curl -X 'PUT' \
             'https://172.20.183.89:9443/cdwebconsole/svc/processlibrary' \
             -H 'Authorization: eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJhZG1pbmlzdHJhdG9yOjE3Mi4yMC4xODYuMjAzOjEzNjM6MDYzMzg3ZDQtMjBlZi00YTJiLWJmZDQtYTU2YTFmMDBiZTllIiwiZXhwIjoxNzE1MTUzNzA2fQ.5vDtMeAuKbn_uaSEmGb5ZKGQx5KuFwtg3SXJCaEgMX3P7zkENlKF4YZv1hrwQaTSIWWVabkN4ZTujDqxJk6GzA' \
             -H 'Content-Type: application/json' \
             -H 'X-XSRF-TOKEN: 681d28d4-b7e5-4270-818e-f7a012cdbe33' \
             -d '{"processFileName":"test.cdp","processFileData":"/*BEGIN_REQUESTER_COMMENTS \n    $PNODE$=\"CD2151W\" $PNODE_OS$=\"Windows\" \n    $SNODE$=\"CD2151W\" $SNODE_OS$=\"Windows\" \n    $OPTIONS$=\"\" \n  END_REQUESTER_COMMENTS*/\n\nSAMPLE PROCESS\n    SNODE=CD2151W\n\nSTEP1 COPY \n\tFROM (\n\t\tFILE=\"C:\\Users\\Administrator\\Desktop\\FA Test\\Source\\*\"\n\t)\n\tTO (\n\t\tFILE=\"C:\\Users\\Administrator\\Desktop\\FA Test\\Destination\\\"\n\t\tDISP=RPL\n\t)\n\nPEND"}'     
The following example shows the Sample HTTP User Request:
{
  "processFileName": "test.cdp",
  "processFileData": "/*BEGIN_REQUESTER_COMMENTS \n    $PNODE$=\"CD2151W\" $PNODE_OS$=\"Windows\" \n    $SNODE$=\"CD2151W\" $SNODE_OS$=\"Windows\" \n    $OPTIONS$=\"\" \n  END_REQUESTER_COMMENTS*/\n\nSAMPLE PROCESS\n    SNODE=CD2151W\n\nSTEP1 COPY \n\tFROM (\n\t\tFILE=\"C:\\Users\\Administrator\\Desktop\\FA Test\\Source\\*\"\n\t)\n\tTO (\n\t\tFILE=\"C:\\Users\\Administrator\\Desktop\\FA Test\\Destination\\\"\n\t\tDISP=RPL\n\t)\n\nPEND"
}
The following example shows the Sample Response:
[
  {
    "messageCode": 200,
    "message": "Process File has been updated successfully"
  }
]