Skip to main content
POST
/
api
/
v1
/
licenses
/
customers
/
{customer_id}
/
assign
Assign License To Customer
curl --request POST \
  --url http://localhost:8000/api/v1/licenses/customers/{customer_id}/assign \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "global_license_id": 123
}
'
{
  "id": 123,
  "google_ads_customer_id": 123,
  "global_license": {
    "name": "<string>",
    "price": 123,
    "analysis_type": "keyword_pause",
    "analysis_max_once_in_n_days": 123,
    "max_search_terms": 123,
    "id": 123,
    "date_added": "2023-11-07T05:31:56Z",
    "date_updated": "2023-11-07T05:31:56Z"
  },
  "date_added": "2023-11-07T05:31:56Z",
  "date_updated": "2023-11-07T05:31:56Z",
  "expires_at": "2023-11-07T05:31:56Z"
}

Authorizations

Authorization
string
header
required

The access token received from the authorization server in the OAuth 2.0 flow.

Path Parameters

customer_id
integer
required

Body

application/json

Schema for assigning a license to a customer.

global_license_id
integer
required

Response

Successful Response

Schema for reading CustomerLicense.

id
integer
required
google_ads_customer_id
integer
required
global_license
GlobalLicenseSchema · object
required

Schema for reading GlobalLicense.

date_added
string<date-time>
required
date_updated
string<date-time>
required
expires_at
string<date-time> | null