Skip to content
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

use public vanity API #29

Closed
aronatkins opened this issue Jun 6, 2024 · 0 comments · Fixed by #31
Closed

use public vanity API #29

aronatkins opened this issue Jun 6, 2024 · 0 comments · Fixed by #31
Assignees

Comments

@aronatkins
Copy link
Contributor

public async updateAppVanityURL (appID: number, vanityURL: string): Promise<VanityRecordResponse> {
return await this.client.post(
`applications/${appID}/vanities`,
{ app_id: appID, path_prefix: vanityURL }
).then((resp: AxiosResponse) => keysToCamel(resp.data))
}

The public PUT /__api__/v1/content/{guid}/vanity API has been available since Connect 1.8.6 (released in late 2020), which means that all supported versions of Connect have this API.

Update the API client to use the public vanity API.

Connect plans to remove this API in an upcoming release.

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

Successfully merging a pull request may close this issue.

1 participant