Skip to content

Hyphen in shortCode breaks PATCH via API #1765

Discussion options

You must be logged in to vote

I see you are explicitly providing a domain during the short URL creation (POST), and since the response includes it in the domain field instead of null, it means that is not the default domain (the one provided during shlink-installer install or via DEFAULT_DOMAIN env var.

That is the reason of the 404 during the PATCH request. You need to provide the domain as query param there as well.

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@mitchellkellett
Comment options

@acelaya
Comment options

@mitchellkellett
Comment options

@acelaya
Comment options

Answer selected by mitchellkellett
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #1764 on April 30, 2023 07:57.