Planfix API: projectGroup.move: Difference between revisions
From Planfix
								
												
				| No edit summary |  (→Go To) | ||
| Line 69: | Line 69: | ||
| == Go To == | == Go To == | ||
| *[[Planfix API:Project groups|Project groups]] | *[[Planfix API:Project groups|Project groups]] | ||
| *[[Error codes]] | *[[Error codes XML API v1|Error codes]] | ||
| *[[List of functions]] | *[[List of functions]] | ||
Latest revision as of 09:36, 6 March 2024
This function moves a project group in a list:
<?xml version="1.0" encoding="UTF-8"?>
<request method="projectGroup.move">
  <account></account>
  <sid></sid>
  <move>
    <projectGroup>
      <id></id>    
    </projectGroup>
  </move>
  <after>
    <projectGroup>
      <id></id>    
    </projectGroup>
  </after>
  <signature></signature>
</request>| Name | Type | Value | Notes | 
|---|---|---|---|
| sid | string(32) | session key | created as a result of passing authentication | 
| move | Project group being moved | ||
| move.projectGroup.id | int | Identifier of the project group being moved | |
| after | Group where the project group should be located after execution | ||
| after.projectGroup.id | int | Project group identifier | 
Response when project group move is successful:
<?xml version="1.0" encoding="UTF-8"?>
<response status="ok">
  <projectGroup>
    <id></id>
  </projectGroup>
</response>| Name | Type | Value | Notes | 
|---|---|---|---|
| projectGroup.id | int | identifier of the project group moved | 
Otherwise, an error response will be returned:
<?xml version="1.0" encoding="UTF-8"?>
<response status="error">
  <code></code>
</response>