Skip to main content
PATCH
/
api
/
v1
/
automations
/
{id}
/
examples
/
{exampleId}
/
expected
/
{path}
Rename expected file
curl --request PATCH \
  --url https://studio.eigenpal.com/api/v1/automations/{id}/examples/{exampleId}/expected/{path} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "newFilename": "<string>"
}
'
{
  "ok": true,
  "filename": "<string>",
  "path": "<string>"
}

Authorizations

Authorization
string
header
required

API key issued from Settings → API Keys. Pass as Authorization: Bearer <key>.

Path Parameters

id
string
required

Automation id or typed alias.

exampleId
string
required

Dataset example id.

path
string
required

Path under the example expected folder.

Body

application/json
newFilename
string
required

New basename for the file. The parent folder is preserved.

Response

Renamed expected file.

ok
boolean
required
filename
string
required
path
string
required

Updated expected file path.