Skip to content
Navigation

Write a skill file

Add a file to one of your skills, or replace the file at that path. The request body is the file's bytes. Each write is a version in its history.

PUT
https://truememory-api.mvstg.com/skills/{skill_id}/files/{file_path}
View as Markdown

Authorization

  • HTTPBearerHTTPrequired

Path parameters

  • skill_idstringrequired
    format: uuid
  • file_pathstringrequired

    Path in the skill folder, e.g. references/method.md.

Header parameters

  • X-On-Behalf-Ofoptional

    One of the following:

    • string
    • null
  • X-External-User-Idoptional

    One of the following:

    • string
    • null
  • X-App-Idoptional

    One of the following:

    • string
    • null

Request bodyOCTET-STREAMrequired

Returns

200

Successful Response

JSON
  • pathstringrequired

    Path in the skill folder, e.g. references/method.md.

  • sha256stringrequired

    Hex SHA-256 of the file's bytes.

  • sizeintegerrequired

    Size in bytes.

  • content_typestringrequired
  • created_atstringrequired
    format: date-time
  • updated_atstringrequired

    When this path last got different bytes.

    format: date-time

422

Validation Error
JSON
  • detailoptionalarray ofobject
    • locarray ofrequired

      One of the following:

      • string
      • integer
    • msgstringrequired
    • typestringrequired
    • inputoptionalunknown
    • ctxoptionalobject

Type to search…

↑↓ navigate↵ selectEsc close