Project Files

Create File

Создать файл в проекте

post/api/projects/{project_id}/files

Request

  • Base URL: https://api.agentstack.tech (the document declares no server; this is the origin it was published from)
  • URL: https://api.agentstack.tech/api/projects/{project_id}/files
  • Auth: one of:
    • API key in header X-API-Key
    • HTTP bearer

Path parameters

project_idinteger required

Project ID

Headers

Idempotency-Keystring

Client-generated key to make mutating requests idempotent.

Request body

file_pathstring required

File path (e.g., src/components/Navbar.jsx)

contentstring required

File content

file_typestring nullable

File type: component, util, hook, service, main

Response

Successful Response

unknown required

Changes

No recorded changes to this operation across all 1 revision of this API.