mirror of
https://github.com/GNS3/gns3-server.git
synced 2024-12-23 22:52:25 +00:00
3.9 KiB
3.9 KiB
/v2/projects/{project_id}/drawings/{drawing_id}
PUT /v2/projects/{project_id}/drawings/{drawing_id}
Create a new drawing instance
Parameters
- drawing_id: Drawing UUID
- project_id: Project UUID
Response status codes
- 400: Invalid request
- 201: Drawing updated
Input
Name | Mandatory | Type | Description |
---|---|---|---|
drawing_id | string | Drawing UUID | |
project_id | string | Project UUID | |
rotation | integer | Rotation of the element | |
svg | string | SVG content of the drawing | |
x | integer | X property | |
y | integer | Y property | |
z | integer | Z property |
Output
Name | Mandatory | Type | Description |
---|---|---|---|
drawing_id | string | Drawing UUID | |
project_id | string | Project UUID | |
rotation | integer | Rotation of the element | |
svg | string | SVG content of the drawing | |
x | integer | X property | |
y | integer | Y property | |
z | integer | Z property |
Sample session
../../../examples/controller_put_projectsprojectiddrawingsdrawingid.txt
DELETE /v2/projects/{project_id}/drawings/{drawing_id}
Delete a drawing instance
Parameters
- drawing_id: Drawing UUID
- project_id: Project UUID
Response status codes
- 400: Invalid request
- 204: Drawing deleted
Sample session
../../../examples/controller_delete_projectsprojectiddrawingsdrawingid.txt