Account configuration update
Update the Google Search Console siteUrl for the authenticated account.
application/json
Request Body required
site_url string
Possible values: Value must match regular expression ^(https?://|sc-domain:)\S+
Responses
- 200
- 401
- 412
- 422
Google Search Console configuration updated on the account
*/*
Schema
Example (from schema)
Schema
account int32
siteUrl string
{
"account": 0,
"siteUrl": "string"
}
Unauthorized
*/*
Schema
Example (from schema)
Schema
account int32
siteUrl string
{
"account": 0,
"siteUrl": "string"
}
GSC api denied or missing
*/*
Schema
Example (from schema)
Schema
account int32
siteUrl string
{
"account": 0,
"siteUrl": "string"
}
Validation error
*/*
Schema
Example (from schema)
Schema
account int32
siteUrl string
{
"account": 0,
"siteUrl": "string"
}
PATCH /accounts/me/google-search-console
Authorization
name: Authorizationtype: apiKeydescription: `Key {your key}`in: header
Request
Request
curl / cURL
curl -L -X PATCH 'https://api.wordlift.io/accounts/me/google-search-console' \
-H 'Content-Type: application/json' \
-H 'Accept: */*' \
-H 'Authorization: <API_KEY_VALUE>' \
--data-raw '{
"site_url": "string"
}'
python / requests
curl -L -X PATCH 'https://api.wordlift.io/accounts/me/google-search-console' \
-H 'Content-Type: application/json' \
-H 'Accept: */*' \
-H 'Authorization: <API_KEY_VALUE>' \
--data-raw '{
"site_url": "string"
}'
nodejs / axios
curl -L -X PATCH 'https://api.wordlift.io/accounts/me/google-search-console' \
-H 'Content-Type: application/json' \
-H 'Accept: */*' \
-H 'Authorization: <API_KEY_VALUE>' \
--data-raw '{
"site_url": "string"
}'
php / cURL
curl -L -X PATCH 'https://api.wordlift.io/accounts/me/google-search-console' \
-H 'Content-Type: application/json' \
-H 'Accept: */*' \
-H 'Authorization: <API_KEY_VALUE>' \
--data-raw '{
"site_url": "string"
}'