{"componentChunkName":"component---src-templates-api-page-tsx","path":"/api/releases/upload-a-new-project-release-file/","result":{"data":{"openApi":{"id":"43512ff1-58e1-5a60-a31d-182f375e3da8","path":{"description":"Upload a new project release file.","method":"post","operationId":"Upload a New Project Release File","summary":null,"tags":["Releases"],"apiPath":"/api/0/projects/{organization_slug}/{project_slug}/releases/{version}/files/","readableUrl":"/api/releases/upload-a-new-project-release-file/","parameters":[{"schema":{"type":"string","format":null,"enum":null},"name":"organization_slug","in":"path","description":"The slug of the organization.","required":true},{"schema":{"type":"string","format":null,"enum":null},"name":"project_slug","in":"path","description":"The slug of the project.","required":true},{"schema":{"type":"string","format":null,"enum":null},"name":"version","in":"path","description":"The version identifier of the release.","required":true}],"responses":[{"content":{"content_type":"application/json","example":"{\n  \"dateCreated\": \"2018-11-06T21:20:22.894Z\",\n  \"dist\": null,\n  \"headers\": {\n    \"Content-Type\": \"text/plain; encoding=utf-8\"\n  },\n  \"id\": \"3\",\n  \"name\": \"/demo/goodbye.txt\",\n  \"sha1\": \"94d6b21e962a9fc65889617ec1f17a1e2fe11b65\",\n  \"size\": 15\n}","schema":"{\n  \"type\": \"object\",\n  \"required\": [\n    \"sha1\",\n    \"dist\",\n    \"name\",\n    \"dateCreated\",\n    \"headers\",\n    \"id\",\n    \"size\"\n  ],\n  \"properties\": {\n    \"sha1\": {\n      \"type\": \"string\"\n    },\n    \"dist\": {\n      \"type\": \"string\",\n      \"nullable\": true\n    },\n    \"name\": {\n      \"type\": \"string\"\n    },\n    \"dateCreated\": {\n      \"type\": \"string\",\n      \"format\": \"date-time\"\n    },\n    \"headers\": {\n      \"type\": \"object\"\n    },\n    \"id\": {\n      \"type\": \"string\"\n    },\n    \"size\": {\n      \"type\": \"integer\"\n    }\n  }\n}"},"description":"Success","status_code":"201"},{"content":null,"description":"Forbidden","status_code":"403"},{"content":null,"description":"Not Found","status_code":"404"}],"requestBody":{"content":{"content_type":"multipart/form-data","schema":"{\n  \"type\": \"object\",\n  \"required\": [\n    \"file\"\n  ],\n  \"properties\": {\n    \"name\": {\n      \"type\": \"string\",\n      \"description\": \"The name (full path) of the file.\",\n      \"example\": \"/demo/hello.min.js.map\"\n    },\n    \"file\": {\n      \"type\": \"string\",\n      \"format\": \"binary\",\n      \"description\": \"The multipart encoded file.\",\n      \"example\": \"hello.min.js.map\"\n    },\n    \"dist\": {\n      \"type\": \"string\",\n      \"description\": \"The name of the dist.\"\n    },\n    \"header\": {\n      \"type\": \"string\",\n      \"description\": \"This parameter can be supplied multiple times to attach headers to the file. Each header is a string in the format `key:value`. For instance it can be used to define a content type.\"\n    }\n  }\n}"},"required":null},"security":[{"auth_token":["project:releases"]}]}}},"pageContext":{"id":"43512ff1-58e1-5a60-a31d-182f375e3da8","title":"Upload a New Project Release File"}},"staticQueryHashes":["1218203755","1222113826","1222113826","1766336459","2158593473","3990806462","4015007367","4192517163"]}