projects.php¶
Project management module for organizing servers into logical groups and assigning them to specific projects.
API Methods¶
| Method | Action | Description |
|---|---|---|
add | add project | Creates a new project with a specified name. |
assign | assign server to project | Assigns a specific server to a project. |
delete | delete project | Deletes one or more projects. |
edit | edit project | Updates an existing project's details. |
list | get projects list | Returns a list of all projects belonging to the user. |
list_for_server | get projects for server | Returns a list of projects associated with a specific server. |
view | get project details | Retrieves detailed information for a specific project. |
projects/add¶
Creates a new project with a specified name.
HTTP method: POST
Parameters:
| Parameter | Required | Type | Description |
|---|---|---|---|
| action | ✅ | string | Method identifier: add |
| token | ✅ | string | Authentication token. |
| params[name] | ✅ | string | Name of the project to be created. |
Request example
Success response example
projects/assign¶
Assigns a specific server to a project.
HTTP method: POST
Parameters:
| Parameter | Required | Type | Description |
|---|---|---|---|
| action | ✅ | string | Method identifier: assign |
| token | ✅ | string | Authentication token. |
| params[id] | ❌ | integer | ID of the project. |
| params[server_id] | ❌ | integer | ID of the server to assign. |
| params[assign] | ❌ | integer | Assignment mode or flag. |
Request example
Success response example
projects/delete¶
Deletes one or more projects.
HTTP method: POST
Parameters:
| Parameter | Required | Type | Description |
|---|---|---|---|
| action | ✅ | string | Method identifier: delete |
| token | ✅ | string | Authentication token. |
| params[id] | ❌ | integer | ID of the project to delete. |
| params[server_ids][] | ❌ | array<integer> | Accepts multiple values: server_ids[]=1&server_ids[]=2 |
Request example
projects/edit¶
Updates an existing project's details.
HTTP method: POST
Parameters:
| Parameter | Required | Type | Description |
|---|---|---|---|
| action | ✅ | string | Method identifier: edit |
| token | ✅ | string | Authentication token. |
| params[id] | ❌ | integer | ID of the project to edit. |
| params[name] | ❌ | string | New name for the project. |
Request example
Success response example
projects/list¶
Returns a list of all projects belonging to the user.
HTTP method: POST
Parameters:
| Parameter | Required | Type | Description |
|---|---|---|---|
| action | ✅ | string | Method identifier: list |
| token | ✅ | string | Authentication token. |
Request example
Success response example
projects/list_for_server¶
Returns a list of projects associated with a specific server.
HTTP method: POST
Parameters:
| Parameter | Required | Type | Description |
|---|---|---|---|
| action | ✅ | string | Method identifier: list_for_server |
| token | ✅ | string | Authentication token. |
| params[server_id] | ❌ | integer | ID of the server to filter projects by. |
Request example
Success response example
projects/view¶
Retrieves detailed information for a specific project.
HTTP method: POST
Parameters:
| Parameter | Required | Type | Description |
|---|---|---|---|
| action | ✅ | string | Method identifier: view |
| token | ✅ | string | Authentication token. |
| params[id] | ❌ | integer | ID of the project to view. |
Request example