| Name | Type | Reference |
|---|---|---|
| card_idrequired | integer | Card ID |
| Name | Value |
|---|---|
| Content-Type | multipart/form-data |
| Name | Type | Constraints | Description |
|---|---|---|---|
file required | binary |
| Description | Response type | Example |
|---|---|---|
| Success | Object |
| Name | Type | Description |
|---|---|---|
| updated | string | Last update timestamp |
| created | string | Create date |
| card_cover | boolean | Flag indicating that image used as card cover |
| author_id | integer | Author id |
| card_id | integer | Card id |
| comment_id | integer | Comment id |
| deleted | boolean | Deleted flag |
| external | boolean | External flag |
| id | integer | File id |
| name | string | File name |
| size | integer | File size |
| sort_order | number | Position |
| type | enum | 1 - attachment, 2 - googleDrive, 3 - dropBox, 4 - box, 5 -oneDrive, 6 - yandex disc, 7 - comment email, 8 - commentAttachment, 11 - private file (retrieve requires API token) |
| url | string | Uploaded url |
| Description | Response type | Example |
|---|---|---|
| Validation error | Object |
| Name | Type | Description |
|---|---|---|
| message | string | Error message |
| Description | Response type | Example |
|---|---|---|
| Invalid token | String |
A schema has not been defined for this response code.
| Description | Response type | Example |
|---|---|---|
| Forbidden | Response body does not exist |
A schema has not been defined for this response code.
| Description | Response type | Example |
|---|---|---|
| Not found | Response body does not exist |
A schema has not been defined for this response code.
Path Parameters
Upload file
1 curl --request PUT \
2 --url 'https://example.kaiten.ru/api/latest/cards/{card_id}/files' \
3 --header 'Accept: application/json' \
4 --header 'Content-Type: multipart/form-data' \
5
6 Response
ClickTry It!to start a request and see the response here!