Tariscope 4.6.Tariscope API guide
Tariscope API Methods
4. subscriber.update
This is a POST method that allows you to update any subscriber parameters.
Request parameters: none.
The body of the request in JSON format must contain:
- subscriber_id – subscriber identifier.
- field_name – name of the field in the Tariscope database that needs to be updated.
- new_value – new field value.
Example query:
http://localhost/api/subscriber/update/
Request body to update city name for subscriber with ID = 4532
{
“subscriber_id”: 4532,
“field_name”: “city”,
“new_value”: “Kharkiv”
}
The response is transmitted in JSON format:
{
“success”: true
}