Examples

POST /katello/api/repositories/841753487/upload_content
Content-Type: multipart/form-data; boundary=APIPIE_RECORDER_EXAMPLE_BOUNDARY

--APIPIE_RECORDER_EXAMPLE_BOUNDARY
Content-Disposition: form-data; name="content[]"

#<ActionDispatch::Http::UploadedFile:0x00005564056fb490>
--APIPIE_RECORDER_EXAMPLE_BOUNDARY--
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