{"components":{"callbacks":{},"examples":{},"headers":{},"links":{},"parameters":{"AccountIdHeaderOptional":{"description":"The identifier of an Amazon Ads Advertiser Account.","in":"header","name":"Amazon-Ads-AccountId","schema":{"type":"string"}},"ClientIdHeader":{"description":"The identifier of a client associated with a \u0027Login with Amazon\u0027 account.","in":"header","name":"Amazon-Ads-ClientId","required":true,"schema":{"type":"string"}},"ManagerAccountIdHeaderOptional":{"description":"The identifier of an Amazon Ads Manager Account.","in":"header","name":"Amazon-Ads-Manager-AccountId","schema":{"type":"string"}},"MaxResultsQuery":{"in":"query","name":"maxResults","schema":{"default":100,"format":"int32","maximum":100,"minimum":1,"type":"integer"}},"NextTokenQuery":{"in":"query","name":"nextToken","schema":{"type":"string"}}},"requestBodies":{},"responses":{},"schemas":{"BadGatewayResponseContent":{"properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"],"type":"object"},"BadRequestResponseContent":{"properties":{"code":{"$ref":"#/components/schemas/ErrorCode"},"message":{"type":"string"}},"required":["code","message"],"type":"object"},"ConstituentIndexValue":{"description":"Values for a location index where the indexValue is calculated from the constituents.","properties":{"brandSales":{"description":"The brand sales value for the postal code.","format":"double","type":"number"},"categorySales":{"description":"The category sales value for the postal code.","format":"double","type":"number"},"postalCode":{"description":"The postal code for the location index prefixed by country code (i.e. US-10118).","type":"string"}},"required":["brandSales","categorySales","postalCode"],"type":"object"},"ConstituentIndexValues":{"properties":{"values":{"description":"List of brand and category sales values.","items":{"$ref":"#/components/schemas/ConstituentIndexValue"},"maxItems":1000000,"minItems":1,"type":"array"}},"required":["values"],"type":"object"},"ContentTooLargeResponseContent":{"properties":{"code":{"$ref":"#/components/schemas/ErrorCode"},"message":{"type":"string"}},"required":["code","message"],"type":"object"},"CountryCode":{"enum":["AU","BE","BR","CA","DE","ES","FR","GB","IE","IN","IT","JP","MX","NL","SE","TR","US"],"type":"string"},"CreateConstituentIndexValue":{"description":"Values for a location index where the indexValue is calculated from the constituents.","properties":{"brandSales":{"description":"The brand sales value for the postal code.","format":"double","type":"number"},"categorySales":{"description":"The category sales value for the postal code.","format":"double","type":"number"},"postalCode":{"description":"The postal code for the location index prefixed by country code (i.e. US-10118).","type":"string"}},"required":["brandSales","categorySales","postalCode"],"type":"object"},"CreateConstituentIndexValues":{"properties":{"values":{"description":"List of brand and category sales values.","items":{"$ref":"#/components/schemas/CreateConstituentIndexValue"},"maxItems":1000000,"minItems":1,"type":"array"}},"required":["values"],"type":"object"},"CreateDirectIndexValue":{"description":"Values for a location index where the indexValue is the pre-calculated index.","properties":{"indexValue":{"description":"The pre-calculated index value.","format":"double","type":"number"},"postalCode":{"description":"The postal code for the location index prefixed by country code (i.e. US-10118).","type":"string"}},"required":["indexValue","postalCode"],"type":"object"},"CreateDirectIndexValues":{"properties":{"values":{"description":"List of direct index values.","items":{"$ref":"#/components/schemas/CreateDirectIndexValue"},"maxItems":1000000,"minItems":1,"type":"array"}},"required":["values"],"type":"object"},"CreateIndexValues":{"oneOf":[{"properties":{"directIndexValues":{"$ref":"#/components/schemas/CreateDirectIndexValues"}},"required":["directIndexValues"],"title":"directIndexValues","type":"object"},{"properties":{"constituentIndexValues":{"$ref":"#/components/schemas/CreateConstituentIndexValues"}},"required":["constituentIndexValues"],"title":"constituentIndexValues","type":"object"}]},"CreateLocationIndexRequest":{"properties":{"locationIndexes":{"items":{"$ref":"#/components/schemas/LocationIndexCreate"},"maxItems":10,"minItems":1,"type":"array"}},"required":["locationIndexes"],"type":"object"},"DirectIndexValue":{"description":"Values for a location index where the indexValue is the pre-calculated index.","properties":{"indexValue":{"description":"The pre-calculated index value.","format":"double","type":"number"},"postalCode":{"description":"The postal code for the location index prefixed by country code (i.e. US-10118).","type":"string"}},"required":["indexValue","postalCode"],"type":"object"},"DirectIndexValues":{"properties":{"values":{"description":"List of direct index values.","items":{"$ref":"#/components/schemas/DirectIndexValue"},"maxItems":1000000,"minItems":1,"type":"array"}},"required":["values"],"type":"object"},"Error":{"properties":{"code":{"$ref":"#/components/schemas/ErrorCode"},"fieldLocation":{"type":"string"},"message":{"type":"string"}},"required":["code","message"],"type":"object"},"ErrorCode":{"description":"**ErrorCode Enum:**\n\n| ErrorCode | Description |\n|------|------|\n| `BAD_REQUEST` | The request is not valid considering the documented schema. |\n| `FEATURE_NOT_AVAILABLE` | The requested feature is not available. |\n| `FIELD_VALUE_IS_EMPTY` | Update the request with the required information for this resource. |\n| `FIELD_VALUE_IS_NULL` | Update the request with the required information for this resource. |\n| `FIELD_VALUE_IS_OUT_OF_RANGE` | Update the value to be within the required range. |\n| `FORBIDDEN` | The caller is not authorized to make the given request. |\n| `INTERNAL_ERROR` | The server encountered an unexpected condition that prevented it from fulfilling the request. |\n| `NOT_FOUND` | The requested resource does not exist. |\n| `UNAUTHORIZED` | The request lacks the necessary credentials. |\n","enum":["BAD_REQUEST","FEATURE_NOT_AVAILABLE","FIELD_VALUE_IS_EMPTY","FIELD_VALUE_IS_NULL","FIELD_VALUE_IS_OUT_OF_RANGE","FORBIDDEN","INTERNAL_ERROR","NOT_FOUND","UNAUTHORIZED"],"type":"string"},"ErrorsIndex":{"properties":{"errors":{"items":{"$ref":"#/components/schemas/Error"},"maxItems":20,"minItems":1,"type":"array"},"index":{"format":"int32","maximum":99,"minimum":0,"type":"integer"}},"required":["errors","index"],"type":"object"},"ForbiddenResponseContent":{"properties":{"code":{"$ref":"#/components/schemas/ErrorCode"},"message":{"type":"string"}},"required":["code","message"],"type":"object"},"GatewayTimeoutResponseContent":{"properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"],"type":"object"},"IndexStatus":{"description":"**IndexStatus Enum:**\n\n| IndexStatus | Description |\n|------|------|\n| `ENABLED` | The location index is active and can be used in smart locations. |\n| `FAILED` | The location index creation failed and cannot be used in smart locations. |\n| `PENDING` | The location index is being created and cannot be used in smart locations yet. |\n| `UPDATE_FAILED` | The location index update has failed, but the old version can still be used. |\n","enum":["ENABLED","FAILED","PENDING","UPDATE_FAILED"],"type":"string"},"IndexValues":{"oneOf":[{"properties":{"constituentIndexValues":{"$ref":"#/components/schemas/ConstituentIndexValues"}},"required":["constituentIndexValues"],"title":"constituentIndexValues","type":"object"},{"properties":{"directIndexValues":{"$ref":"#/components/schemas/DirectIndexValues"}},"required":["directIndexValues"],"title":"directIndexValues","type":"object"}]},"InternalServerErrorResponseContent":{"properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"],"type":"object"},"LocationIndex":{"properties":{"campaignId":{"description":"The campaign associated with the location index. Used to filter location indexes that were auto-created based on campaign data.","type":"string"},"countryCode":{"$ref":"#/components/schemas/CountryCode"},"creationDateTime":{"description":"The date time the location index was created.","format":"date-time","type":"string"},"indexData":{"$ref":"#/components/schemas/IndexValues"},"indexId":{"description":"The identifier of the location index.","type":"string"},"indexName":{"description":"The name of the location index.","type":"string"},"lastUpdatedDateTime":{"description":"The date time the location index was last updated successfully.","format":"date-time","type":"string"},"status":{"$ref":"#/components/schemas/IndexStatus"}},"required":["creationDateTime","indexData","indexId","indexName","lastUpdatedDateTime","status"],"type":"object"},"LocationIndexCreate":{"properties":{"campaignId":{"description":"The campaign associated with the location index. Used to filter location indexes that were auto-created based on campaign data.","type":"string"},"countryCode":{"$ref":"#/components/schemas/CountryCode"},"indexData":{"$ref":"#/components/schemas/CreateIndexValues"},"indexName":{"description":"The name of the location index.","type":"string"}},"required":["indexData","indexName"],"type":"object"},"LocationIndexMultiStatusResponse":{"properties":{"error":{"items":{"$ref":"#/components/schemas/ErrorsIndex"},"maxItems":10,"minItems":0,"type":"array"},"success":{"items":{"$ref":"#/components/schemas/LocationIndexMultiStatusSuccess"},"maxItems":10,"minItems":0,"type":"array"}},"type":"object"},"LocationIndexMultiStatusSuccess":{"properties":{"index":{"format":"int32","maximum":9,"minimum":0,"type":"integer"},"locationIndex":{"$ref":"#/components/schemas/LocationIndex"}},"required":["index","locationIndex"],"type":"object"},"LocationIndexSuccessResponse":{"properties":{"locationIndexes":{"items":{"$ref":"#/components/schemas/LocationIndex"},"maxItems":100,"minItems":0,"type":"array"},"nextToken":{"type":"string"}},"type":"object"},"LocationIndexUpdate":{"properties":{"indexData":{"$ref":"#/components/schemas/UpdateIndexValues"},"indexId":{"description":"The identifier of the location index.","type":"string"}},"required":["indexId"],"type":"object"},"NotFoundResponseContent":{"properties":{"code":{"$ref":"#/components/schemas/ErrorCode"},"message":{"type":"string"}},"required":["code","message"],"type":"object"},"RetrieveLocationIndexRequest":{"properties":{"indexIds":{"items":{"type":"string"},"maxItems":10,"minItems":1,"type":"array"}},"required":["indexIds"],"type":"object"},"ServiceUnavailableErrorResponseContent":{"properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"],"type":"object"},"TooManyRequestsResponseContent":{"properties":{"code":{"$ref":"#/components/schemas/ErrorCode"},"message":{"type":"string"}},"required":["code","message"],"type":"object"},"UnauthorizedResponseContent":{"properties":{"code":{"$ref":"#/components/schemas/ErrorCode"},"message":{"type":"string"}},"required":["code","message"],"type":"object"},"UpdateConstituentIndexValues":{"properties":{"values":{"description":"List of brand and category sales values.","items":{"$ref":"#/components/schemas/CreateConstituentIndexValue"},"maxItems":1000000,"minItems":1,"type":"array"}},"type":"object"},"UpdateDirectIndexValues":{"properties":{"values":{"description":"List of direct index values.","items":{"$ref":"#/components/schemas/CreateDirectIndexValue"},"maxItems":1000000,"minItems":1,"type":"array"}},"type":"object"},"UpdateIndexValues":{"oneOf":[{"properties":{"directIndexValues":{"$ref":"#/components/schemas/UpdateDirectIndexValues"}},"required":["directIndexValues"],"title":"directIndexValues","type":"object"},{"properties":{"constituentIndexValues":{"$ref":"#/components/schemas/UpdateConstituentIndexValues"}},"required":["constituentIndexValues"],"title":"constituentIndexValues","type":"object"}]},"UpdateLocationIndexRequest":{"properties":{"locationIndexes":{"items":{"$ref":"#/components/schemas/LocationIndexUpdate"},"maxItems":10,"minItems":1,"type":"array"}},"required":["locationIndexes"],"type":"object"}},"securitySchemes":{"OAuth2":{"flows":{"authorizationCode":{"authorizationUrl":"https://www.amazon.com/ap/oa","scopes":{"advertising::audiences":"Grants access to data provider APIs","advertising::campaign_management":"Grants write access to campaign management.","advertising::test:create_account":"Grants write access to create test accounts functionality","cpc_advertising:campaign_management":"Grants write access to campaign management. Legacy name (no difference from advertising::campaign_management)"},"tokenUrl":"https://api.amazon.com/auth/o2/token"}},"type":"oauth2"}}},"info":{"description":"Amazon Ads API v1 is a reimagined approach to our Ads API, built to provide a seamless experience across all Amazon advertising products through a common model. [Learn more about Ads API v1.](https://advertising.amazon.com/API/docs/en-us/reference/amazon-ads/overview) To learn about prerequisites and header values, see [Getting started with Amazon Ads API v1](https://advertising.amazon.com/API/docs/en-us/reference/amazon-ads/getting-started).\n\n**Download Amazon Ads API V1 OpenAPI Spec** ([All Products](https://d1y2lf8k3vrkfu.cloudfront.net/openapi/en-us/dest/AmazonAdsAPIALLMerged_prod_3p.json) | [SP](https://d1y2lf8k3vrkfu.cloudfront.net/openapi/en-us/dest/AmazonAdsAPISPMerged_prod_3p.json) | [SP Global](https://d1y2lf8k3vrkfu.cloudfront.net/openapi/en-us/dest/AmazonAdsAPISPGLOBALMerged_prod_3p.json) | [SB](https://d1y2lf8k3vrkfu.cloudfront.net/openapi/en-us/dest/AmazonAdsAPISBMerged_prod_3p.json) | [DSP](https://d1y2lf8k3vrkfu.cloudfront.net/openapi/en-us/dest/AmazonAdsAPIDSPMerged_prod_3p.json) | [ST](https://d1y2lf8k3vrkfu.cloudfront.net/openapi/en-us/dest/AmazonAdsAPISTMerged_prod_3p.json) | [SD](https://d1y2lf8k3vrkfu.cloudfront.net/openapi/en-us/dest/AmazonAdsAPISDMerged_prod_3p.json))","title":"LocationIndexes API","version":"3.0"},"openapi":"3.0.1","paths":{"/adsApi/v1/create/locationIndexes":{"post":{"description":"Create a Smart Location Index. A Smart Location Index is a named dataset that maps postal codes to index values representing relative audience quality or sales potential for a given advertiser. Index data is processed asynchronously; the index status will transition from PENDING to ENABLED once processing is complete.\n\n**Requires one of these permissions**:\n[\"advertiser_campaign_edit\", \"campaign_edit\", \"dsp_campaign_edit\", \n\"MasterAccount_Manager\"]","operationId":"CreateLocationIndex","parameters":[{"$ref":"#/components/parameters/AccountIdHeaderOptional"},{"$ref":"#/components/parameters/ClientIdHeader"},{"$ref":"#/components/parameters/ManagerAccountIdHeaderOptional"}],"requestBody":{"content":{"application/json":{"examples":{"LocationIndexCreateRequestExample":{"summary":"Create Location Index Request Example","value":{"locationIndexes":[{"campaignId":"542408212710317781","countryCode":"US","indexData":{"constituentIndexValues":{"values":[{"brandSales":4200,"categorySales":10000,"postalCode":"80202"},{"brandSales":7200,"categorySales":12000,"postalCode":"80301"},{"brandSales":1300,"categorySales":9000,"postalCode":"80424"}]}},"indexName":"test index name"}]}}},"schema":{"$ref":"#/components/schemas/CreateLocationIndexRequest"}}},"required":true},"responses":{"207":{"content":{"application/json":{"examples":{"LocationIndexCreateResponseExample":{"summary":"Create Location Index Response Example","value":{"error":[],"success":[{"index":0,"locationIndex":{"campaignId":"542408212710317781","countryCode":"US","creationDateTime":"2025-09-22T22:24:46.229162573Z","indexId":"518f53e3-1739-4644-8f9a-a0211a6188d0","indexName":"test index name","lastUpdatedDateTime":"2025-09-22T22:24:46.229162573Z","status":"PENDING"}}]}}},"schema":{"$ref":"#/components/schemas/LocationIndexMultiStatusResponse"}}},"description":"CreateLocationIndex 207 response"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BadRequestResponseContent"}}},"description":"BadRequest 400 response"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedResponseContent"}}},"description":"Unauthorized 401 response"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenResponseContent"}}},"description":"Forbidden 403 response"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundResponseContent"}}},"description":"NotFound 404 response"},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContentTooLargeResponseContent"}}},"description":"ContentTooLarge 413 response"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TooManyRequestsResponseContent"}}},"description":"TooManyRequests 429 response"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InternalServerErrorResponseContent"}}},"description":"InternalServerError 500 response"},"502":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BadGatewayResponseContent"}}},"description":"BadGateway 502 response"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ServiceUnavailableErrorResponseContent"}}},"description":"ServiceUnavailableError 503 response"},"504":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GatewayTimeoutResponseContent"}}},"description":"GatewayTimeout 504 response"}},"security":[{"OAuth2":["advertising::campaign_management"]}],"tags":["LocationIndexes"]}},"/adsApi/v1/locationIndexes":{"get":{"description":"List all Smart Location Indexes for the authenticated advertiser. Returns a paginated collection of indexes including their current processing status. Use the nextToken from the response to retrieve subsequent pages.\n\n**Requires one of these permissions**:\n[\"advertiser_campaign_edit\", \"MasterAccount_Viewer\", \"dsp_campaign_view\", \n\"campaign_view\", \"advertiser_campaign_view\", \"campaign_edit\", \n\"dsp_campaign_edit\", \"MasterAccount_Manager\"]","operationId":"ListLocationIndex","parameters":[{"$ref":"#/components/parameters/NextTokenQuery"},{"$ref":"#/components/parameters/MaxResultsQuery"},{"$ref":"#/components/parameters/AccountIdHeaderOptional"},{"$ref":"#/components/parameters/ClientIdHeader"},{"$ref":"#/components/parameters/ManagerAccountIdHeaderOptional"}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LocationIndexSuccessResponse"}}},"description":"ListLocationIndex 200 response"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BadRequestResponseContent"}}},"description":"BadRequest 400 response"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedResponseContent"}}},"description":"Unauthorized 401 response"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenResponseContent"}}},"description":"Forbidden 403 response"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundResponseContent"}}},"description":"NotFound 404 response"},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContentTooLargeResponseContent"}}},"description":"ContentTooLarge 413 response"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TooManyRequestsResponseContent"}}},"description":"TooManyRequests 429 response"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InternalServerErrorResponseContent"}}},"description":"InternalServerError 500 response"},"502":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BadGatewayResponseContent"}}},"description":"BadGateway 502 response"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ServiceUnavailableErrorResponseContent"}}},"description":"ServiceUnavailableError 503 response"},"504":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GatewayTimeoutResponseContent"}}},"description":"GatewayTimeout 504 response"}},"security":[{"OAuth2":["advertising::campaign_management"]}],"tags":["LocationIndexes"]}},"/adsApi/v1/retrieve/locationIndexes":{"post":{"description":"Retrieve one or more Smart Location Indexes by ID. Returns the current metadata and processing status for each requested index. An index with status PENDING is still being processed and is not yet available for use in smart location targeting.\n\n**Requires one of these permissions**:\n[\"advertiser_campaign_edit\", \"MasterAccount_Viewer\", \"dsp_campaign_view\", \n\"campaign_view\", \"advertiser_campaign_view\", \"campaign_edit\", \n\"dsp_campaign_edit\", \"MasterAccount_Manager\"]","operationId":"RetrieveLocationIndex","parameters":[{"$ref":"#/components/parameters/AccountIdHeaderOptional"},{"$ref":"#/components/parameters/ClientIdHeader"},{"$ref":"#/components/parameters/ManagerAccountIdHeaderOptional"}],"requestBody":{"content":{"application/json":{"examples":{"LocationIndexRetrieveRequestExample":{"summary":"Retrieve Location Index Example","value":{"indexIds":["518f53e3-1739-4644-8f9a-a0211a6188d0"]}}},"schema":{"$ref":"#/components/schemas/RetrieveLocationIndexRequest"}}},"required":true},"responses":{"207":{"content":{"application/json":{"examples":{"LocationIndexRetrieveResponseExample":{"summary":"Retrieve Location Index Response Example","value":{"error":[],"success":[{"index":0,"locationIndex":{"campaignId":"542408212710317781","countryCode":"US","creationDateTime":"2025-09-22T22:24:46.229162573Z","indexId":"518f53e3-1739-4644-8f9a-a0211a6188d0","indexName":"test index name","lastUpdatedDateTime":"2025-09-22T22:24:46.229162573Z","status":"ENABLED"}}]}}},"schema":{"$ref":"#/components/schemas/LocationIndexMultiStatusResponse"}}},"description":"RetrieveLocationIndex 207 response"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BadRequestResponseContent"}}},"description":"BadRequest 400 response"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedResponseContent"}}},"description":"Unauthorized 401 response"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenResponseContent"}}},"description":"Forbidden 403 response"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundResponseContent"}}},"description":"NotFound 404 response"},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContentTooLargeResponseContent"}}},"description":"ContentTooLarge 413 response"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TooManyRequestsResponseContent"}}},"description":"TooManyRequests 429 response"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InternalServerErrorResponseContent"}}},"description":"InternalServerError 500 response"},"502":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BadGatewayResponseContent"}}},"description":"BadGateway 502 response"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ServiceUnavailableErrorResponseContent"}}},"description":"ServiceUnavailableError 503 response"},"504":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GatewayTimeoutResponseContent"}}},"description":"GatewayTimeout 504 response"}},"security":[{"OAuth2":["advertising::campaign_management"]}],"tags":["LocationIndexes"]}},"/adsApi/v1/update/locationIndexes":{"post":{"description":"Update the data for an existing Smart Location Index. Replaces the index\u0027s postal code values with the provided dataset. The update is processed asynchronously; the index status will return to PENDING until the new data has been fully processed.\n\n**Requires one of these permissions**:\n[\"advertiser_campaign_edit\", \"campaign_edit\", \"dsp_campaign_edit\", \n\"MasterAccount_Manager\"]","operationId":"UpdateLocationIndex","parameters":[{"$ref":"#/components/parameters/AccountIdHeaderOptional"},{"$ref":"#/components/parameters/ClientIdHeader"},{"$ref":"#/components/parameters/ManagerAccountIdHeaderOptional"}],"requestBody":{"content":{"application/json":{"examples":{"LocationIndexUpdateRequestExample":{"summary":"Update Location Index Request Example","value":{"locationIndexes":[{"indexData":{"constituentIndexValues":{"values":[{"brandSales":5500,"categorySales":10000,"postalCode":"80202"},{"brandSales":8000,"categorySales":12000,"postalCode":"80301"},{"brandSales":2000,"categorySales":9000,"postalCode":"80424"}]}},"indexId":"518f53e3-1739-4644-8f9a-a0211a6188d0"}]}}},"schema":{"$ref":"#/components/schemas/UpdateLocationIndexRequest"}}},"required":true},"responses":{"207":{"content":{"application/json":{"examples":{"LocationIndexUpdateResponseExample":{"summary":"Update Location Index Response Example","value":{"error":[],"success":[{"index":0,"locationIndex":{"campaignId":"542408212710317781","countryCode":"US","creationDateTime":"2025-09-22T22:24:46.229162573Z","indexId":"518f53e3-1739-4644-8f9a-a0211a6188d0","indexName":"test index name","lastUpdatedDateTime":"2025-09-23T10:00:00.000000000Z","status":"PENDING"}}]}}},"schema":{"$ref":"#/components/schemas/LocationIndexMultiStatusResponse"}}},"description":"UpdateLocationIndex 207 response"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BadRequestResponseContent"}}},"description":"BadRequest 400 response"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedResponseContent"}}},"description":"Unauthorized 401 response"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenResponseContent"}}},"description":"Forbidden 403 response"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundResponseContent"}}},"description":"NotFound 404 response"},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContentTooLargeResponseContent"}}},"description":"ContentTooLarge 413 response"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TooManyRequestsResponseContent"}}},"description":"TooManyRequests 429 response"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InternalServerErrorResponseContent"}}},"description":"InternalServerError 500 response"},"502":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BadGatewayResponseContent"}}},"description":"BadGateway 502 response"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ServiceUnavailableErrorResponseContent"}}},"description":"ServiceUnavailableError 503 response"},"504":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GatewayTimeoutResponseContent"}}},"description":"GatewayTimeout 504 response"}},"security":[{"OAuth2":["advertising::campaign_management"]}],"tags":["LocationIndexes"]}}},"servers":[{"description":"Production server for NA","url":"https://advertising-api.amazon.com"},{"description":"Production server for EU","url":"https://advertising-api-eu.amazon.com"},{"description":"Production server for FE","url":"https://advertising-api-fe.amazon.com"}]}