_Published on _
## Takeaways
---
## API Route Title
```plaintext
POST projects/:id/packages/rubygems/api/v1/gems
```
| Attribute | Type | Required | Description |
| --------- | ------ | -------- | ----------------------------------- |
| `id` | string | yes | The ID or full path of the project. |
```shell
curl --request POST \
--upload-file path/to/my_gem_file.gem \
--header "Authorization:<personal_access_token>" \
--url "https://gitlab.example.com/api/v4/projects/1/packages/rubygems/api/v1/gems"
```