POST /katello/api/repositories/:repository_id/content_uploads
Create an upload request

Params

Param name Description
repository_id
required

repository id

Validations:

  • Must be a number.

size
required

Size of file to upload

Validations:

  • Must be a number.

checksum
optional

Checksum of file to upload

Validations:

  • String

content_type
optional

content type (‘deb’, ‘docker_manifest’, ‘file’, ‘ostree’, ‘puppet_module’, ‘rpm’, ‘srpm’)

Validations:

  • Must be one of: deb, file, docker_manifest, puppet_module, ostree, rpm, srpm.


PUT /katello/api/repositories/:repository_id/content_uploads/:id
Upload a chunk of the file's content

Params

Param name Description
repository_id
required

Repository id

Validations:

  • Must be a number.

id
required

Upload request id

Validations:

  • String

size
required

Size of file to upload

Validations:

  • Must be a number.

offset
required

The offset in the file where the content starts

Validations:

  • Must be a number.

content
required

The actual file contents

Validations:

  • File


DELETE /katello/api/repositories/:repository_id/content_uploads/:id
Delete an upload request

Params

Param name Description
repository_id
required

Repository id

Validations:

  • Must be a number.

id
required

Upload request id

Validations:

  • String