We’ve migrated our documentation to a new site, which means some URLs have changed.
Audience

/persisted/execute

Deprecated This API method has been deprecated and should not be used. When executing a persisted request, use the path of the method in the request combined with the persisted query parameter. See /persisted/create or the example at the bottom of this page.

Execute a persisted request. See API authentication for more information about persisted requests.

The user does not need to be authenticated. The request is executed using the credentials of the creator.

Request

Only GET requests are supported, using the following parameters

Parameter

Required

Description

persisted

Yes

Identifier for the persisted request.

json

No

A url-encoded JSON object that will be merged with the persisted request for mutable request fields.

Response

The response is the response given by the persisted request.

Examples

Bash
$ python cx.py /persisted/create '{"path":"/site","request":{"siteId":"9222300742735526873"},"description":"Example persisted"}'
{
 "id": "58e5154490191e5ca6b941ee56f6e7349b9d2fe1"
}
$ curl https://api.cxense.com/site?persisted=58e5154490191e5ca6b941ee56f6e7349b9d2fe1
{
 "sites": [
 {
 "id": "9222300742735526873",
 "name": "Example site",
 "url": "https://www.example.com"
 "country": "US",
 "timeZone": "America/Los_Angeles",
 }
 ]
}

Last updated: