X4 Produktdokumentation

Operation: Patch Project Parameters

The Patch Project Parameters operation updates one or more project parameters for the specified project ID.

Note:

The changes are updated only at runtime and are stored in a .runtime file. The .param file in the repository is not updated. For more information, see Using Runtime Configurations.


Note:

If the Patch Project Parameters operation fails, no parameters are updated.


Updating Variables and Constants

Project parameters of the Constant type cannot be updated.

If project parameters of the Variable and Constant types are included in the input XML file, no parameters are updated.

Input

The adapter expects an XML document as input.

XML
<?xml version="1.0" encoding="UTF-8"?>
<Parameters xmlns:ns2="http://softproject.de/parameter/1.0"
            id="f96a6444-2331-445d-ad56-83287df56e68"
            projectName="Project_1"
            workspace="1">
   <Variable completeName="assignedExpert">assignedExpert: new value</Variable>
</Parameters>

The following elements must be included in the input:


Element

Attribute

Description

Parameters


Parameter of a project, with ID, project name and workspace


Id

UUID of the project containing a .param file with project parameters


ProjectName

Name of the project in the X4 repository


Workspace

Name of the workspace in which the project is stored

Variable


Type of project parameter

Constant


Type of project parameter


completeName

Name of parameter with parameter group


Output

The operation generates an output with the changed parameters.