mirror of
https://github.com/GNS3/gns3-server.git
synced 2024-12-30 17:46:59 +00:00
3.5 KiB
3.5 KiB
/v2/projects/{project_id}/shapes/{shape_id}
PUT /v2/projects/{project_id}/shapes/{shape_id}
Create a new shape instance
Parameters
- project_id: Project UUID
- shape_id: Shape UUID
Response status codes
- 400: Invalid request
- 201: Shape updated
Input
Name | Mandatory | Type | Description |
---|---|---|---|
project_id | string | Project UUID | |
shape_id | string | Shape UUID | |
svg | string | SVG content of the shape | |
x | integer | X property | |
y | integer | Y property | |
z | integer | Z property |
Output
Name | Mandatory | Type | Description |
---|---|---|---|
project_id | string | Project UUID | |
shape_id | string | Shape UUID | |
svg | string | SVG content of the shape | |
x | integer | X property | |
y | integer | Y property | |
z | integer | Z property |
Sample session
../../../examples/controller_put_projectsprojectidshapesshapeid.txt
DELETE /v2/projects/{project_id}/shapes/{shape_id}
Delete a shape instance
Parameters
- project_id: Project UUID
- shape_id: Shape UUID
Response status codes
- 400: Invalid request
- 204: Shape deleted
Sample session
../../../examples/controller_delete_projectsprojectidshapesshapeid.txt