Skip to content

Create or update a Terraform state

POST
/api/v4/projects/{id}/terraform/state/{name}

Creates or updates a Terraform state for a specified project.

id
required
One of:
string

The ID or URL-encoded path of the project

name
required
string

The name of a Terraform state

Media typemultipart/form-data
object
file
required

The package file to be published (generated by Multipart middleware)

string format: binary
nullable

OK

No data provided

Bad Request

Forbidden

Not Found

Request Entity Too Large

Validation failure