Skip to main content
POST
/
io.pocketenv.file.addFile
cURL
curl --request POST \
  --url https://api.pocketenv.io/xrpc/io.pocketenv.file.addFile \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "file": {
    "path": "<string>",
    "content": "<string>",
    "sandboxId": "<string>"
  }
}
'
{
  "error": "<string>",
  "message": "<string>"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
file
object
required

Response

OK