Skip to main content

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
Sectionpacket-constructor
AuthenticationCookieAuth
Consumesapplication/json
Producesapplication/json

Parameters

2 parameters

Name
Location
Required
Type
Description
idpathyesintegerTemplate ID
requestbodyyesobjectNew name, description, and packet template
  • {
      "description": "<string>",
      "name": "<string>",
      "template": {}
    }

Responses

6 responses

Status
Description
Type
200
Template updatedno body
400
Invalid ID, request body, metadata, or template; template errors are listed in data.issues[]{path, message}object
401
Unauthorizedobject
404
Template not foundobject
413
Request body exceeds 8 MiBobject
500
Internal server errorobject
  • {
      "data": {},
      "error": "<string>"
    }
  • {
      "data": {},
      "error": "<string>"
    }
  • {
      "data": {},
      "error": "<string>"
    }
  • {
      "data": {},
      "error": "<string>"
    }
  • {
      "data": {},
      "error": "<string>"
    }