/api/artifacts/{path}
Download PDFREST API endpoint: /api/artifacts/{path}
/api/artifacts/{path}
GET
Summary: Describe an artifact directory or read an artifact file
The first path segment is the root (sec, forwarder or scripts). A directory answers with its entries, a file with its content and sha256.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| path | string | Yes | |
| pattern | string | No | fnmatch glob applied to entry names |
Responses
200
404
PUT
Summary: Create or overwrite an artifact file
Validates the content for the root (forwarder YAML, script shebang), then replaces the file atomically; a refused write leaves the previous file untouched. Scripts are written mode 0700, other files 0600. No reload is triggered.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| path | string | Yes |
Request Body
json{
"example": "request body"
}
Responses
200
201
413
DELETE
Summary: Delete an artifact file or a SEC instance directory
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| path | string | Yes |
Responses
204
No response body