Skip to content

Update the add-on purchase for the namespace

Deprecated
PUT
/api/v4/namespaces/{id}/subscription_add_on_purchase/{add_on_name}

Deprecated in GitLab 17.7

id
required
One of:
string

The ID or URL-encoded path of the namespace

add_on_name
required
string

The name of the add-on

Media type application/json
object
started_on
required

The date when purchase takes effect

string format: date
nullable
expires_on
required

The date when purchase expires on

string format: date
nullable
quantity

The quantity of the purchase

integer
nullable
purchase_xid

The purchase identifier (example: the subscription name)

string
nullable
trial

Whether the add-on is a trial

boolean
nullable
Example generated
{
"started_on": "2026-04-15",
"expires_on": "2026-04-15",
"quantity": 1,
"purchase_xid": "example",
"trial": true
}

OK

Media type application/json
object
namespace_id
integer format: int64
namespace_name
string
add_on
string
quantity
integer
started_on
string format: date
expires_on
string format: date
purchase_xid
string
trial
boolean
Example
{
"namespace_id": 123,
"namespace_name": "GitLab",
"add_on": "Code Suggestions",
"quantity": 10,
"started_on": "2023-05-30",
"expires_on": "2023-05-30",
"purchase_xid": "A-S00000001",
"trial": false
}

Bad request

Unauthorized

Not found