Update packet template
PATCH
/packet-constructor/templates/{id}Replaces the name, description, and the packet template itself after validation and compilation. Tasks keep their own copy of the template, so the change does not affect them.
Contract
Parameter | Value |
|---|---|
| Section | packet-constructor |
| Authentication | CookieAuth |
| Consumes | application/json |
| Produces | application/json |
Parameters
2 parameters
Name | Location | Required | Type | Description |
|---|---|---|---|---|
| id | path | yes | integer | Template ID |
| request | body | yes | object | New name, description, and packet template |
{ "description": "<string>", "name": "<string>", "template": {} }
Responses
6 responses
Status | Description | Type |
|---|---|---|
200 | Template updated | no body |
400 | Invalid ID, request body, metadata, or template; template errors are listed in data.issues[]{path, message} | object |
401 | Unauthorized | object |
404 | Template not found | object |
413 | Request body exceeds 8 MiB | object |
500 | Internal server error | object |
{ "data": {}, "error": "<string>" }{ "data": {}, "error": "<string>" }{ "data": {}, "error": "<string>" }{ "data": {}, "error": "<string>" }{ "data": {}, "error": "<string>" }