Skip to main content
PUT
/
api
/
v1
/
licenses
/
global
/
{license_id}
Update Global License
curl --request PUT \
  --url http://localhost:8000/api/v1/licenses/global/{license_id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "<string>",
  "price": 123,
  "analysis_type": "keyword_pause",
  "analysis_max_once_in_n_days": 123,
  "max_search_terms": 123
}
'
{
  "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"
}

Authorizations

Authorization
string
header
required

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

Path Parameters

license_id
integer
required

Body

application/json

Schema for updating GlobalLicense.

name
string | null
price
number | null
analysis_type
enum<string> | null

The types of analyses.

Available options:
keyword_pause,
negative_keyword,
double_check_keywords_to_pause,
headline,
description,
budget_migration,
pause_hours,
pause_locations,
search_terms
analysis_max_once_in_n_days
integer | null
max_search_terms
integer | null

Response

Successful Response

Schema for reading GlobalLicense.

name
string
required
price
number
required
analysis_type
enum<string>
required

The types of analyses.

Available options:
keyword_pause,
negative_keyword,
double_check_keywords_to_pause,
headline,
description,
budget_migration,
pause_hours,
pause_locations,
search_terms
analysis_max_once_in_n_days
integer
required
max_search_terms
integer
required
id
integer
required
date_added
string<date-time>
required
date_updated
string<date-time>
required