Skip to main content
PATCH
/
api
/
circom-files
/
{id}
Update Circom file
curl --request PATCH \
  --url https://platform.usewarp.net/api/circom-files/{id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "content": "<string>",
  "name": "<string>"
}
'
{
  "file": {
    "id": "<string>",
    "project_id": "<string>",
    "name": "<string>",
    "content": "<string>",
    "file_type": "circuit",
    "created_at": "2023-11-07T05:31:56Z",
    "updated_at": "2023-11-07T05:31:56Z"
  }
}

Authorizations

Authorization
string
header
required

JWT Bearer token authentication

Path Parameters

id
string
required

File ID

Body

application/json
content
string

Updated file content

name
string

Updated file name

Response

Circom file updated successfully

file
object