Skip to content

Update format for Get Profile Traits endpoint example #5066

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 26, 2023

Conversation

bobbyatsegment
Copy link
Contributor

Proposed changes

In the Profile API section on getting a Profile’s traits, the first demonstration of this endpoint is:

GET /v1/spaces/<space_id>/collections/users/profiles/<external_id>/traits

However, scrolling down to the examples shows:

GET /v1/spaces/lg8283283/collections/users/profiles/user_id:u1234/traits

The format in the user_id example is users/profiles/<id_type:ext_id>, which is the correct format, whereas the first demo of the URL is just users/profiles/<external_id> - if only the external_id is set in the request URL without the id_type, a 404 Not Found error is returned.

Scrolling further down to the first example for getting a profile’s External IDs also demonstrates the correct format:

GET /v1/spaces/<space_id>/collections/users/profiles/<id_type:ext_id>/external_ids

To better demonstrate the correct format, updated the first example for getting a Profile’s traits to be:

GET /v1/spaces/<space_id>/collections/users/profiles/<id_type:external_id>/traits

Merge timing

Related issues (optional)

@bobbyatsegment bobbyatsegment marked this pull request as ready for review July 26, 2023 17:41
@bobbyatsegment bobbyatsegment requested a review from rchinn1 as a code owner July 26, 2023 17:41
@rchinn1 rchinn1 merged commit 7bb3fe5 into develop Jul 26, 2023
@rchinn1 rchinn1 deleted the bobbyatsegment-patch-1 branch July 26, 2023 19:02
@github-actions
Copy link
Contributor

Thank you for your contribution! Your pull request is merged, but may take a day or two to appear on the site.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants