POST /v2/projects/:project_id/attachments
Create an attachment for the given Project
live_help Notes
assignment
This action requires one of theses roles:
Advanced tutor
group_work
Requires following application scopes:
projects
settings Params
| Param name | Description |
|---|---|
| project_id |
required
. Must be String
The project id or slug |
| attachment | optional , nil allowed . Must be a Hash |
| attachment[kind] |
required
. Must be one of: code, pdf, link, document, video.
The kind of the attachment |
| attachment[language_id] |
optional
, nil allowed
. Must be Fixnum
The attachment language |
| attachment[untranslatable] |
optional
, nil allowed
. Must be one of: true, false.
Is this attachment untranslatable |
| attachment[attachable_attributes] |
required
. Must be an Array of nested elements
The attachment file |
| attachment[attachable_attributes][name] |
required
. Must be String
The name of the attachment |
| attachment[attachable_attributes][attachable_type] |
required
. Must be one of: code, pdf, link, document, video.
The type of the attachment, need the file linked with the same param (see below) |
| attachment[attachable_attributes][pdf] |
optional
, nil allowed
. Must be File
The attached pdf file |
| attachment[attachable_attributes][video] |
optional
, nil allowed
. Must be File
The attached video file |