Create or update a config file

View as Markdown
Create or update a configuration file. If the content has not changed, the existing version is returned without creating a new one.

Path parameters

device_uuidstringRequiredformat: "uuid"
filenamestringRequired

Request

This endpoint expects an object.
authorstringRequired
Author email
commit_messagestringRequired
Commit message describing the change
contentstringRequired
Configuration file content
created_atdatetime or nullOptional

Optional timestamp for the version (defaults to current time)

file_typeenumOptional

Config file type (intended or backup)

Response

Successful Response
authorstring
Author email
commit_messagestring
Commit message
contentstring
Configuration file content
content_hashstring
SHA256 hash of content
created_atdatetime
Timestamp when version was created
device_uuidstringformat: "uuid"
Device UUID
file_typeenum

Config file type (intended or backup)

filenamestring
File name
idstringformat: "uuid"
Config file ID
versioninteger
Version number
deviceobject or null
Device metadata from Nautobot

Errors

422
Unprocessable Entity Error