In case the api_url was updated. $self->server($self->api_url); $self->type(q|application/json|); my $endpoint = q||; $endpoint .= qq|/$resource|; $endpoint .= qq|/$id_or_name| if