summaryrefslogtreecommitdiff
path: root/doc/development/internal_api.md
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2021-08-19 09:08:42 +0000
committerGitLab Bot <gitlab-bot@gitlab.com>2021-08-19 09:08:42 +0000
commitb76ae638462ab0f673e5915986070518dd3f9ad3 (patch)
treebdab0533383b52873be0ec0eb4d3c66598ff8b91 /doc/development/internal_api.md
parent434373eabe7b4be9593d18a585fb763f1e5f1a6f (diff)
downloadgitlab-ce-b76ae638462ab0f673e5915986070518dd3f9ad3.tar.gz
Add latest changes from gitlab-org/gitlab@14-2-stable-eev14.2.0-rc42
Diffstat (limited to 'doc/development/internal_api.md')
-rw-r--r--doc/development/internal_api.md34
1 files changed, 21 insertions, 13 deletions
diff --git a/doc/development/internal_api.md b/doc/development/internal_api.md
index 4614db96263..c7fc4bed38c 100644
--- a/doc/development/internal_api.md
+++ b/doc/development/internal_api.md
@@ -658,7 +658,7 @@ to apply additional packs of CI minutes, for personal namespaces or top-level gr
### Creating an additional pack
-Use a POST to create an additional pack.
+Use a POST to create additional packs.
```plaintext
POST /namespaces/:id/minutes
@@ -666,9 +666,10 @@ POST /namespaces/:id/minutes
| Attribute | Type | Required | Description |
|:------------|:--------|:---------|:------------|
-| `expires_at` | date | yes | Expiry date of the purchased pack|
-| `number_of_minutes` | integer | yes | Number of additional minutes |
-| `purchase_xid` | string | yes | The unique ID of the purchase |
+| `packs` | array | yes | An array of purchased minutes packs |
+| `packs[expires_at]` | date | yes | Expiry date of the purchased pack|
+| `packs[number_of_minutes]` | integer | yes | Number of additional minutes |
+| `packs[purchase_xid]` | string | yes | The unique ID of the purchase |
Example request:
@@ -678,20 +679,27 @@ curl --request POST \
--header 'Content-Type: application/json' \
--header 'PRIVATE-TOKEN: <admin access token>' \
--data '{
- "number_of_minutes": 10000,
- "expires_at": "2022-01-01",
- "purchase_xid": "46952fe69bebc1a4de10b2b4ff439d0c" }'
+ "packs": [
+ {
+ "number_of_minutes": 10000,
+ "expires_at": "2022-01-01",
+ "purchase_xid": "46952fe69bebc1a4de10b2b4ff439d0c"
+ }
+ ]
+ }'
```
Example response:
```json
-{
- "namespace_id": 123,
- "expires_at": "2022-01-01",
- "number_of_minutes": 10000,
- "purchase_xid": "46952fe69bebc1a4de10b2b4ff439d0c"
-}
+[
+ {
+ "namespace_id": 123,
+ "expires_at": "2022-01-01",
+ "number_of_minutes": 10000,
+ "purchase_xid": "46952fe69bebc1a4de10b2b4ff439d0c"
+ }
+]
```
### Moving additional packs