/codes/{codeId}

Changed on

Use this endpoint to update the editable properties of an existing Code. For example, you could use this to change the name of a Code, to change a Code’s parent, or to add or remove the Entities this Code supports.

When constructing your request, note that all editable properties must be specified otherwise it is assumed they should be removed or set to null. For example, if the supportedEntities property is set to null or [] (an empty array) in the request, all supported Entities are removed from the Code.

Not all properties can be updated using this endpoint. If you need to update all metadata or are unable to populate all existing properties as described above, consider using the PATCH endpoint.

put/codes/{codeId}

Request

  • Base URL
    https://api.securevan.com/v4
  • URL
    https://api.securevan.com/v4/codes/{codeId}
  • Auth
    HTTP basic

Path parameters

codeIdinteger required

Required; Unique identifier for an editable Code

Request body

codeIdinteger required
parentCodeIdinteger
namestring required
codeType'SourceCode' | 'Tag'

This property cannot change

Response

204

Changes