sessions

Replace the text content of one file in a session's artifact directory

Changed on
put/api/v1/sessions/{sessionId}/artifact-files

Request

  • Base URL
    http://127.0.0.1:3001
  • URL
    http://127.0.0.1:3001/api/v1/sessions/{sessionId}/artifact-files
  • Auth
    none declared

Path parameters

sessionIdstring required

Session identifier, e.g. project-1.

Request body

contentstring required

The file's new UTF-8 text content.

expectedFileFingerprintstring required

Hex SHA-256 of the file content the edit started from.

pathstring required

Artifact-directory-relative file path, as listed in the session's artifactFiles.

Response

OK

fileFingerprintstring required

Hex SHA-256 of the file's content.

pathstring required
sizeinteger required

Changes

    • info

      removed the agent_switch_saga enum value from the response property for the response status

    • info

      removed the agent_switch_saga enum value from the response property for the response status

    • info

      removed the agent_switch_saga enum value from the response property for the response status

    • info

      removed the agent_switch_saga enum value from the response property for the response status

    • info

      removed the agent_switch_saga enum value from the response property for the response status

    • info

      endpoint added