Examples

POST /katello/api/repositories/841753487/upload_content
{
  "content": [
    "#<ActionDispatch::Http::UploadedFile:0x00005654cb04ce48>"
  ]
}
200
{
  "status": "success",
  "filenames": [
    "puppet_module.tar.gz"
  ]
}

Params

Param name Description
id
required

repository ID

Validations:

  • Must be a number.

content
required

Content files to upload. Can be a single file or array of files.

Validations:

  • File

content_type
optional

The type of content to upload (srpm, file, etc.). Check uploadable types here: /katello/api/repositories/repository_types

Validations:

  • String