Update the subscription for the namespace
Deprecated
PUT
/api/v4/namespaces/{id}/gitlab_subscription
Deprecated in GitLab 17.7
Authorizations
Section titled “ Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “ Path Parameters ”Request Body
Section titled “ Request Body ” Media type application/json
object
start_date
Start date of subscription
string format: date
end_date
End date of subscription
string format: date
plan_code
Subscription tier code
string
seats
Number of seats in subscription
integer
max_seats_used
Highest number of active users in the last month
integer
auto_renew
Whether subscription will auto renew on end date
boolean
trial
Whether the subscription is a trial
boolean
trial_ends_on
End date of trial
string format: date
trial_starts_on
Start date of trial
string format: date
trial_extension_type
Whether the trial was extended or reactivated
integer
Example generated
{ "start_date": "2026-04-15", "end_date": "2026-04-15", "plan_code": "example", "seats": 1, "max_seats_used": 1, "auto_renew": true, "trial": true, "trial_ends_on": "2026-04-15", "trial_starts_on": "2026-04-15", "trial_extension_type": 1}Responses
Section titled “ Responses ”OK
Media type application/json
object
plan
object
usage
object
billing
object
Example generated
{ "plan": {}, "usage": {}, "billing": {}}Bad Request
Not Found