Skip to main content

Repair project JSON

POST /api/render/repair/api-key

Free conservative mechanical repairs. Inspect changes and remainingErrors, then run remote validation. No render or credit reservation.

Authentication​

x-api-key: YOUR_API_KEY (header). API key for authentication. Create one in your dashboard.

Create API keys at app.zvid.io/api-keys. Keep credentials on your server.

Parameters​

This operation has no path, query, or additional header parameters.

Request​

The shell examples read credentials from ZVID_API_KEY (or ZVID_ACCESS_TOKEN for Bearer authentication). Set that variable in your environment. Replace sample project, template, job, and asset identifiers with values from your own account.

A request body is required.

application/json​

Unknown properties are rejected. Required properties: payload.

FieldTypeRequiredDescription and constraints
body.payloadobjectYes

Request example: repair​

curl --request POST 'https://api.zvid.io/api/render/repair/api-key' \
--header "x-api-key: $ZVID_API_KEY" \
--header 'Content-Type: application/json' \
--data '{
"payload": {
"name": "Hello Zvid",
"width": "1280",
"height": 720,
"duration": 5,
"visuals": [
{
"type": "TEXT",
"text": "Hello, Zvid!",
"position": "center-center",
"style": {
"fontSize": 64,
"color": "#ffffff"
}
}
],
"backgroundColor": "#14213d"
}
}'

Responses​

HTTP 200​

Successful response

Content type: application/json.

Required properties: repaired, changes, valid, remainingErrors, warnings.

FieldTypeRequiredDescription and constraints
response.schemaVersionstringNo
response.sourceOfTruthstringNo
response.planLimitsobjectNo
response.repairedobjectYes
response.changesarray of objectYes
response.validbooleanYes
response.remainingErrorsarray of objectYes
response.warningsarray of objectYes

Nested field: response.changes

Array item: response.changes[]

Type: object.

Nested field: response.remainingErrors

Array item: response.remainingErrors[]

Type: object.

Nested field: response.warnings

Array item: response.warnings[]

Type: object.

HTTP 400​

Invalid input or semantic validation error

Content type: application/json.

Required properties: error.

FieldTypeRequiredDescription and constraints
response.errorstringYes
response.messagestringNo
response.detailsarray of objectNo
response.planLimitsobjectNoPresent on render validation errors; contains the authenticated user's current render limits.

Nested field: response.details

Array item: response.details[]

Unknown properties are rejected. Required properties: field, message.

FieldTypeRequiredDescription and constraints
response.details[].fieldstringYes
response.details[].messagestringYes

HTTP 401​

Missing or invalid credentials

Content type: application/json.

Unknown properties are rejected. Required properties: error.

FieldTypeRequiredDescription and constraints
response.errorstringYesError type
response.messagestringNoHuman-readable error message

HTTP 404​

Not found for this account

Content type: application/json.

Required properties: error.

FieldTypeRequiredDescription and constraints
response.errorstringYesError type
response.messagestringNoHuman-readable error message

HTTP 500​

Server error

Content type: application/json.

Required properties: error.

FieldTypeRequiredDescription and constraints
response.errorstringYesError type
response.messagestringNoHuman-readable error message

Schema definitions​

The following definitions describe the fields referenced above. Expand a definition to inspect its complete contract.

RepairResponse

Required properties: repaired, changes, valid, remainingErrors, warnings.

FieldTypeRequiredDescription and constraints
RepairResponse.schemaVersionstringNo
RepairResponse.sourceOfTruthstringNo
RepairResponse.planLimitsobjectNo
RepairResponse.repairedobjectYes
RepairResponse.changesarray of objectYes
RepairResponse.validbooleanYes
RepairResponse.remainingErrorsarray of objectYes
RepairResponse.warningsarray of objectYes

Nested field: RepairResponse.changes

Array item: RepairResponse.changes[]

Type: object.

Nested field: RepairResponse.remainingErrors

Array item: RepairResponse.remainingErrors[]

Type: object.

Nested field: RepairResponse.warnings

Array item: RepairResponse.warnings[]

Type: object.

ValidationError

Required properties: error.

FieldTypeRequiredDescription and constraints
ValidationError.errorstringYes
ValidationError.messagestringNo
ValidationError.detailsarray of objectNo
ValidationError.planLimitsobjectNoPresent on render validation errors; contains the authenticated user's current render limits.

Nested field: ValidationError.details

Array item: ValidationError.details[]

Unknown properties are rejected. Required properties: field, message.

FieldTypeRequiredDescription and constraints
ValidationError.details[].fieldstringYes
ValidationError.details[].messagestringYes
AuthenticationError

Unknown properties are rejected. Required properties: error.

FieldTypeRequiredDescription and constraints
AuthenticationError.errorstringYesError type
AuthenticationError.messagestringNoHuman-readable error message
Error

Required properties: error.

FieldTypeRequiredDescription and constraints
Error.errorstringYesError type
Error.messagestringNoHuman-readable error message