mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
fix: document files API needs ustar format (#14152)
Signed-off-by: Spike Curtis <spike@coder.com>
This commit is contained in:
Generated
+5
-5
@@ -22,11 +22,11 @@ file: string
|
||||
|
||||
### Parameters
|
||||
|
||||
| Name | In | Type | Required | Description |
|
||||
| -------------- | ------ | ------ | -------- | ------------------------------------------------------------- |
|
||||
| `Content-Type` | header | string | true | Content-Type must be `application/x-tar` or `application/zip` |
|
||||
| `body` | body | object | true | |
|
||||
| `» file` | body | binary | true | File to be uploaded |
|
||||
| Name | In | Type | Required | Description |
|
||||
| -------------- | ------ | ------ | -------- | ---------------------------------------------------------------------------------------------- |
|
||||
| `Content-Type` | header | string | true | Content-Type must be `application/x-tar` or `application/zip` |
|
||||
| `body` | body | object | true | |
|
||||
| `» file` | body | binary | true | File to be uploaded. If using tar format, file must conform to ustar (pax may cause problems). |
|
||||
|
||||
### Example responses
|
||||
|
||||
|
||||
Reference in New Issue
Block a user