Allowlist

Add, remove, or replace location IDs on the allowlist, depending on the request's operation type

Add, remove, or replace location IDs on the allowlist, depending on the request's operation type.

<p> Requests that change the same allowlist at the same time may be rejected with 409; retry them.
post/allowlist

Request

  • Base URL
    https://terra.tripadvisor.com/api
  • URL
    https://terra.tripadvisor.com/api/allowlist
  • Auth
    API key in header X-API-Key

Request body

allowlistinteger[] required

Location IDs to add, remove, or use as the full replacement allowlist, depending on <code>operationType</code>.

operation_type'APPEND' | 'DELETE' | 'OVERWRITE' required

How the <code>allowlist</code> location IDs in an upload request should be applied to a partner config's existing allowlist.

Response

counts of location IDs added, deleted, or left unchanged as a result of the request

addedinteger

Number of submitted location IDs that were not already on the allowlist and have been added.

deletedinteger

Number of location IDs removed from the allowlist. For <code>OVERWRITE</code> this counts existing allowlist IDs absent from the request, not submitted IDs.

no_changeinteger

Number of submitted location IDs that already matched the desired allowlist state and required no change.

Changes

No recorded changes to this operation across all 1 revision of this API.