adobe / adobe/experience-platform-postman-samples

Query Service API - Create a query is missing the authorization header

Open
#59 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
No language data
Stars
100
Forks
146
PR merge metrics
No merged PRs in 30d

Description

### Expected Behaviour

The **Create a query** in QueryService API is supposed to allow to create and execute a new query by just importing the postman json files and sending the API request (where no additional headers need to be added).

### Actual Behaviour

Even with all the required params and request body, the API fails with an authentication error.

QueryServiceAPI_NoAuthHeader

The other requests in this collection work fine, this particular request is **missing the Authorization header**.

### Reproduce Scenario

Download and import the postman file for the [Query Service API](https://github.com/adobe/experience-platform-postman-samples/blob/master/apis/experience-platform/Query%20Service%20API.postman_collection.json). When you try to send the request for Create a query API, it fails with the above mentioned error.

### Fix

Adding the Authorization header to this request solves the issue.

QueryService API_WithAuthHeader

Contributor guide

Open the contributing guide

Research direction

Open Query Service API.postman_collection.json and inspect the Create a query request alongside the other requests in the collection. Add the missing Authorization header, then import the collection into Postman and send the request with the required parameters and body; done means it authenticates and creates and executes the query successfully.

Written by the indexing model from the issue text.

Assessment

Tech stack
postman
Domain
api
Issue type
Bug
Difficulty
1/5
Estimated time
Under an hour
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.