Managing CTERA Portal Users > Setting the Plan of a Portal User
Setting the Plan of a Portal User
Set the plan for a CTERA Portal user.
API
admin/api/users
Or, for an Active Directory user:
admin/api/domains/domain_name/adUsers
URI
{BASE_URL}/users/user_ID
Or, for an Active Directory user:
{BASE_URL}/domains/domain_name/adUsers/user_ID
HTTP Method
POST
Request Content-Type
application/xml
Request Body
<val>Plan_ID</val>
Expected Response status
200 OK
Object Method
subscribe
Java Example
To set the plan of the user jsmith to 10GB, use the following:
invokeMethod(httpClient, baseUrl+ "/users/jsmith", "subscribe", "<val>10GB</val>")