> For the complete documentation index, see [llms.txt](https://developer.harness.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://developer.harness.io/infrastructure-as-code-management/iacm-api-reference/workspaces/create-data.md).

# Create data

Store binary data generated by the provisioner, such as plans and state files.

```json
{"openapi":"3.0.3","info":{"title":"Infrastructure as Code Management","version":"0.1.0"},"tags":[{"name":"workspaces","description":"Workspaces Service handles the API for managing workspaces\nand triggering workflows against them."}],"servers":[{"url":"http://localhost:80"}],"paths":{"/api/orgs/{org}/projects/{project}/workspaces/{workspace}/data":{"post":{"tags":["workspaces"],"summary":"Create data","description":"Store binary data generated by the provisioner, such as plans and state files.","operationId":"workspaces#create-data","parameters":[{"name":"pipeline_id","in":"query","description":"The unique identifier for the associated pipeline","allowEmptyValue":true,"required":true,"schema":{"type":"string","description":"The unique identifier for the associated pipeline"}},{"name":"stage_id","in":"query","description":"The unique identifier for a stage","allowEmptyValue":true,"required":true,"schema":{"type":"string","description":"The unique identifier for a stage"}},{"name":"pipeline_execution_id","in":"query","description":"The unique identifier for the associated pipeline execution","allowEmptyValue":true,"required":true,"schema":{"type":"string","description":"The unique identifier for the associated pipeline execution"}},{"name":"pipeline_stage_id","in":"query","description":"The unique identifier for the associated pipeline execution stage","allowEmptyValue":true,"required":true,"schema":{"type":"string","description":"The unique identifier for the associated pipeline execution stage"}},{"name":"provisioner_type","in":"query","description":"Type of provisioner that created the data","allowEmptyValue":true,"required":true,"schema":{"type":"string","description":"Type of provisioner that created the data","enum":["tf","awscdk"]}},{"name":"data_type","in":"query","description":"Type of data stored","allowEmptyValue":true,"required":true,"schema":{"type":"string","description":"Type of data stored","enum":["plan_human","state_raw","state_human","cost_breakdown","cost_diff","modules","providers","cdk_template","cdk_manifest","cdk_tree","cdk_assets","cdk_diff","cdk_drift"]}},{"name":"policy_action","in":"query","description":"Policy action used during OPA evaluation","allowEmptyValue":true,"schema":{"type":"string","description":"Policy action used during OPA evaluation"}},{"name":"opa_sdk_supported","in":"query","description":"Indicates the plugin supports OPA SDK-based evaluation","allowEmptyValue":true,"schema":{"type":"boolean","description":"Indicates the plugin supports OPA SDK-based evaluation"}},{"name":"stack_path","in":"query","description":"Optional path to the stack module","allowEmptyValue":true,"schema":{"type":"string","description":"Optional path to the stack module"}},{"name":"org","in":"path","description":"Org is the organisation identifier.","required":true,"schema":{"type":"string","description":"Org is the organisation identifier.","minLength":1,"maxLength":128}},{"name":"project","in":"path","description":"Project is the project identifier.","required":true,"schema":{"type":"string","description":"Project is the project identifier.","minLength":1,"maxLength":128}},{"name":"workspace","in":"path","description":"Workspace identifier","required":true,"schema":{"type":"string","description":"Workspace identifier"}},{"name":"Harness-Account","in":"header","description":"Account is the internal customer account ID.","allowEmptyValue":true,"required":true,"schema":{"type":"string","description":"Account is the internal customer account ID.","minLength":1,"maxLength":128}},{"name":"Content-Length","in":"header","description":"Size in bytes of the data.","allowEmptyValue":true,"schema":{"type":"integer","description":"Size in bytes of the data.","format":"int64"}}],"responses":{"200":{"description":"OK response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateDataResponse"}}}},"400":{"description":"BadRequestError: Bad Request response.","content":{"application/vnd.goa.error":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"UnauthorizedError: Unauthorized response.","content":{"application/vnd.goa.error":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"ForbiddenError: Forbidden response.","content":{"application/vnd.goa.error":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"NotFoundError: Not Found response.","content":{"application/vnd.goa.error":{"schema":{"$ref":"#/components/schemas/Error"}}}},"408":{"description":"TimeoutError: Request Timeout response.","content":{"application/vnd.goa.error":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"ConflictError: Conflict response.","content":{"application/vnd.goa.error":{"schema":{"$ref":"#/components/schemas/Error"}}}},"423":{"description":"LockedError: Locked response.","content":{"application/vnd.goa.error":{"schema":{"$ref":"#/components/schemas/Error"}}}},"499":{"description":"ContextCancelledError:  response.","content":{"application/vnd.goa.error":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"InternalServerError: Internal Server Error response.","content":{"application/vnd.goa.error":{"schema":{"$ref":"#/components/schemas/Error"}}}},"502":{"description":"BadGatewayError: Bad Gateway response.","content":{"application/vnd.goa.error":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}}},"components":{"schemas":{"CreateDataResponse":{"type":"object","properties":{"id":{"type":"string","description":"The unique identifier for the data"},"policy_evaluation":{"type":"array","items":{"$ref":"#/components/schemas/WorkspaceDataPolicyEvaluation"},"description":"Individual policy evaluation details"},"policy_evaluation_message":{"type":"string","description":"Pre-rendered message included when policy evaluation did not pass"},"policy_evaluation_status":{"type":"string","description":"The overall status of policy evaluation (if it occurred) indicating whether it passed","enum":["error","warning","pass"]}},"required":["id"]},"WorkspaceDataPolicyEvaluation":{"type":"object","properties":{"message":{"type":"string"},"policy_id":{"type":"string"},"policy_name":{"type":"string"},"policy_set_id":{"type":"string"},"policy_set_name":{"type":"string"},"policy_status":{"type":"string"}},"required":["policy_set_id","policy_set_name","policy_id","policy_name","policy_status","message"]},"Error":{"type":"object","properties":{"fault":{"type":"boolean","description":"Is the error a server-side fault?"},"id":{"type":"string","description":"ID is a unique identifier for this particular occurrence of the problem."},"message":{"type":"string","description":"Message is a human-readable explanation specific to this occurrence of the problem."},"name":{"type":"string","description":"Name is the name of this class of errors."},"temporary":{"type":"boolean","description":"Is the error temporary?"},"timeout":{"type":"boolean","description":"Is the error a timeout?"}},"required":["name","id","message","temporary","timeout","fault"]}}}}
```
