Skip to the content

Delete a saved search

DELETE /v1/saved_searches/{scope}/{name}

Request

Path

The scope the saved search lives in: account for your own, organization for one shared in your organization (see Saved searches and scopes).

The saved search's name: 1 to 64 letters, digits, _ and -, in any script, so sector1 and 半导体 are both valid. Names are case-sensitive, and are compared after Unicode NFC normalization. As a URL path segment, non-ASCII characters are percent-encoded, as any HTTP client does for you.

Example: sector1prod_sector1半导体

Responses

204 · Success

Deleted.

No body.

Errors

Every error is a problem document with the fields below. Its type names the problem, and is the address of the problem's page.

400invalid-request

The request is not valid (invalid-request): a path that cannot be read, a body that is not JSON or does not match the schema, an unknown field, a from or to that is not a valid instant expression (an unknown time zone, or a time of day the zone skips, included), a from that is not earlier than to, a term that does not parse or is longer than your organization's agreement allows, an unknown issuer, a scope in the body that does not exist, or a saved search's name that breaks the naming rule. errors names each offending part: a pointer into the body (for the run of a saved search, into parameters as it ran), or the parameter of the path (see problem types).

401unauthenticated

No access token, or one that is invalid or has expired (unauthenticated). Refresh the access token and try again.

403no-organizationmultiple-organizationsorganization-not-registerednot-entitledaccess-endedtier-served-elsewherescope-not-entitledsuspended

The account may not do this. type says why: a refusal every operation can meet (no-organization, multiple-organizations, organization-not-registered, not-entitled, access-ended, tier-served-elsewhere or suspended, see Problem types), or the organization's agreement, or this server, does not include the scope (scope-not-entitled).

404saved-search-not-foundscope-not-found

There is no saved search of that name in that scope (saved-search-not-found), or the scope in the path is not one you can use (scope-not-found).

429rate-limited

Too many requests, or too many at the same time (rate-limited), from your account, your organization, or your network address. Wait for Retry-After seconds, then send the same request again.

  • Header Retry-After

    How many seconds to wait before sending the same request again.

431headers-too-large

The request's headers are too large (headers-too-large). An access token is far below the limit, so look for a header your client adds.

503unavailable

The API is temporarily unavailable (unavailable), because our servers are under pressure or briefly out of service. Wait for Retry-After seconds, then send the same request again.

  • Header Retry-After

    How many seconds to wait before sending the same request again.

Any otherinternal

Any other error, as a problem document. Includes internal (500), a failure on our side.

A problem document's fields

  • typestring

    Identifies the problem; branch on this. One of the problem types under https://api.reconnectchina.org/docs/v1/problems/, named in each response's description and its x-problem-types, and listed in Problem types, for example https://api.reconnectchina.org/docs/v1/problems/continuation-expired. The URL is also the type's documentation.

  • titlestring

    A short, human-readable summary of the problem type.

  • statusinteger

    The HTTP status code.

  • detailstringmay be absent

    A human-readable explanation of this occurrence.

  • errorslist of objectsmay be absent

    For invalid-request, each part of the request that is not valid, and for range-not-entitled, each end of the range that reaches too far. Each names the part in exactly one way: pointer for a part of the body, parameter for a part of the path. A part with several mistakes in it, such as a term, has an entry for each, and span says where in it each one is.

  • parameterstringmay be absent

    The name of the path parameter, as this document names it, for example name in /v1/saved_searches/{scope}/{name}.

  • pointerstringmay be absent

    A JSON Pointer (RFC 6901  on another website) into the request body, for example /levelIn/0. Empty for the body as a whole. For the run of a saved search, it points into the search as it ran, as if the body had been {"parameters": …} with the saved parameters and your overrides: /parameters/from whether from was saved or sent.

  • spanobjectmay be absent

    Where in a string a problem is: the characters from start up to, not including, end, counting from 0. Characters are Unicode code points, as maxLength counts them, so 低空经济 is four; a program that marks text in another unit converts, such as a browser, whose strings count a character outside the Basic Multilingual Plane as two. Equal start and end mark the place where something is missing, such as the end of a term that stops after &&.

  • startinteger, at least 0
  • endinteger, at least 0
  • detailstring
  • earliestFromstring, up to 128 charactersmay be absent

    For range-not-entitled, the earliest from your organization may use, as an instant expression such as now-1y or 1900-01-01.

  • latestTostring, up to 128 charactersmay be absent

    For range-not-entitled, the latest to your organization may use, as an instant expression such as 3000-01-01.

  • serverstringmay be absent

    For tier-served-elsewhere, the server of this API that your account may use, one of servers, such as https://sandbox.api.reconnectchina.org.

Language
client.delete_saved_search("{scope}", "{name}")
curl -X DELETE 'https://api.reconnectchina.org/v1/saved_searches/{scope}/{name}' \
  -H "Authorization: Bearer $TOKEN"
await client.deleteSavedSearch("{scope}", "{name}");

client is logged in as on Logging in, or made from a saved token.

  • scope is not filled in.
  • name is not filled in.
to api.reconnectchina.org

A successful answer has no body.