Workspaces

Replace a workspace file

Other errors (500, 502, 503) are on Errors.

PUT
/v1/workspaces/{id}/files/{file_id}

Other errors (500, 502, 503) are on Errors.

Authorization

bearerAuth
AuthorizationBearer <token>

Your API key, sent as Authorization: Bearer nace_sk_...

  • Where: the dashboard's API Keys page. It is shown once, when you create it.
  • Format: nace_sk_ followed by 43 URL-safe characters (A-Z, a-z, 0-9, _ and -).
  • Limit: an account can hold at most 3 active keys.
  • Wrong or missing key: returns 401 authentication_error.

In: header

Path Parameters

idstringrequired

The workspace's workspace_id.

file_idstringrequired

The file's file_id.

Request Body

multipart/form-data

filefilerequired
Formatbinary
metadatastring

JSON: labels (replaces them; {} clears).

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

curl -X PUT "https://example.com/v1/workspaces/string/files/string" \  -F file="string"
{  "job_id": "453bd7d7-5355-4d6d-a38e-d9e7eb218c3f",  "kind": "string",  "status": "queued",  "workspace_id": "string",  "result": null}