This function is only available for users with custom API keys.
Please contact us if you are interested in this feature.


Edit User

This function edits user details via API.
It is only accessible by users having a valid seokey.

An example script to edit a user via api is displayed below:
https://api.keyworddiscovery.com/edit_user.php?seokey=yes&username=apitest1&ne=apitest@trellian.com

If your seokey is cA34kdfd, the example query will be:
https://api.keyworddiscovery.com/edit_user.php?cA34kdfd=yes&username=apitest1&ne=apitest@trellian.com

Parameters:

Username (required)
Parameter name: username
Aliases: u, un, uname
Description: This option specifies the username to edit details for.

Example parameter highlighted in bold.
https://api.keyworddiscovery.com/edit_user.php?seokey=yes&username=apitest1&ne=apitest@trellian.com

New Password
Parameter name: new_password
Aliases: np, new_pass
Description: This option specifies the new password for the seat user. The password is case sensitive.

Example parameter highlighted in bold.
Following queries return the same results.

https://api.keyworddiscovery.com/edit_user.php?seokey=yes&username=apitest1&new_pass=newpassword

New Email
Parameter name: new_email
Aliases: ne
Description: The option specifies the new email for the seat user.

Example parameter highlighted in bold.
Following queries return the same results.

https://api.keyworddiscovery.com/edit_user.php?seokey=yes&username=apitest1&new_email=apiseatuser@test.com

Referral id
Parameter name: referral_id
Aliases: ref
Description: This option specifies the referral id to be set for the seat user.

Example parameter highlighted in bold.
https://api.keyworddiscovery.com/edit_user.php?seokey=yes&username=apitest1&ref=1000

Unique id
Parameter name: unique_id
Aliases: ui, un_id
Description: Allows modification of the unique id parameter for the specified seat account.

Example parameter highlighted in bold.
https://api.keyworddiscovery.com/edit_user.php?seokey=yes&username=apitest1&un_id=user1

Renew
Parameter name: renew
Aliases: r
Description: This option specifies the renew parameter to be set for paid seat user.
Values: 't' or 'f'

Example parameter highlighted in bold.
https://api.keyworddiscovery.com/edit_user.php?seokey=yes&username=apipaidacct&renew=f

Delete
Parameter name: delete
Aliases: del
Description: This option specifies the delete parameter to be set for the seat user. The seat account will be deleted on expiry.
Values: 't' or 'f'

Example parameter highlighted in bold.
https://api.keyworddiscovery.com/edit_user.php?seokey=yes&username=apipaidacct&delete=f

Domain (required for seat accounts with paid CI and Full access)
Parameter name: domain
Aliases: dom
Description: This option is required when setting the delete, renew and new_domain paramters for accounts with paid CI access and full api access(KD and CI)

Example parameter highlighted in bold.
https://api.keyworddiscovery.com/edit_user.php?seokey=yes&username=apipaidacct&domain=apitest.com

New Domain (Available only for seat accounts with paid CI and Full access)
Parameter name: newdomain
Aliases: new_dom
Description: This option is used to set new_domain for accounts with paid CI access and full api access(KD and CI). The new domain will be set on expiry of the current domain.

Example parameter highlighted in bold.
https://api.keyworddiscovery.com/edit_user.php?seokey=yes&username=apipaidacct&new_dom=apitest2.com

New Status
Parameter name: new_status
Aliases: ns
Description: This option allows the master account to change the status of the seat account.

The new_status parameter accepts the following values.

Api_free
Value name: api_free
Aliases: f, af, free
Description: Change status to api free account

Example parameter highlighted in bold.
https://api.keyworddiscovery.com/edit_user.php?seokey=yes&username=apitestpaidacc&new_status=free

Api_kd
Value name: api_paid_kd
Aliases: api_kd
Description: Change status to API Seat account with full KD only access. The Master account pays for the access.

Example parameter highlighted in bold.
https://api.keyworddiscovery.com/edit_user.php?seokey=yes&username=apitestfreeacc&new_status=api_kd




View User | How to access the CI API