Planfix API: projectGroup.add: Difference between revisions
From Planfix
No edit summary |
No edit summary |
||
| Line 28: | Line 28: | ||
|- | |- | ||
|} | |} | ||
Response when project group creation is successful: | Response when project group creation is successful: | ||
| Line 44: | Line 45: | ||
|- | |- | ||
|} | |} | ||
Otherwise, an error response will be returned: | Otherwise, an error response will be returned: | ||
Revision as of 11:42, 2 August 2023
This function is a request to create a project group. Only users with admin rights can execute this function.
The function looks as follows:
<?xml version="1.0" encoding="UTF-8"?>
<request method="projectGroup.add">
<account></account>
<sid></sid>
<projectGroup>
<name></name>
</projectGroup>
<signature></signature>
</request>| Name | Type | Value | Notes |
|---|---|---|---|
| sid | string(32) | session key | created as a result of passing authentication |
| name | string | Project group name |
Response when project group creation 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 created |
Otherwise, an error response will be returned:
<?xml version="1.0" encoding="UTF-8"?>
<response status="error">
<code></code>
</response>