ShortlinksAPI

<back to all web services

PutUserLinkRequest

Requires Authentication
The following routes are available for this service:
PUT/v4/links
PUT/v4/links/{Id}
Imports System
Imports System.IO
Imports System.Collections
Imports System.Collections.Generic
Imports System.Runtime.Serialization
Imports ServiceStack
Imports ServiceStack.DataAnnotations
Imports ShortlinksAPI.ServiceModel.V4.Requests
Imports Geniuslink.Shortlinks.Constants
Imports ShortlinksAPI.ServiceModel.V4.Responses

Namespace Global

    Namespace Geniuslink.Shortlinks.Constants

        Public Enum LinkType
            None
            Simple
            Split
            Interstitial
            Advanced
            Collection
        End Enum
    End Namespace

    Namespace ShortlinksAPI.ServiceModel.V4.Requests

        <DataContract>
        Public Partial Class PutUserLinkRequest
            Inherits V4BaseRequest
            Implements IPutUserLinkRequest
            <DataMember(Name:="id")>
            Public Overridable Property Id As String Implements IPutUserLinkRequest.Id

            <DataMember(Name:="linkType")>
            Public Overridable Property LinkType As LinkType Implements IPutUserLinkRequest.LinkType

            <DataMember(Name:="typeDefinitionPublicId")>
            Public Overridable Property TypeDefinitionPublicId As String Implements IPutUserLinkRequest.TypeDefinitionPublicId
        End Class

        <DataContract>
        Public Partial Class V4BaseRequest
        End Class
    End Namespace

    Namespace ShortlinksAPI.ServiceModel.V4.Responses

        <DataContract>
        Public Partial Class PutUserLinkResponse
            Inherits V4BaseResponse
        End Class

        <DataContract>
        Public Partial Class V4BaseResponse
            <DataMember(Name:="status")>
            Public Overridable Property ResponseStatus As ResponseStatus
        End Class
    End Namespace
End Namespace

VB.NET PutUserLinkRequest DTOs

To override the Content-type in your clients, use the HTTP Accept Header, append the .other suffix or ?format=other

HTTP + OTHER

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

PUT /v4/links HTTP/1.1 
Host: shortlinks-api.qa.platform.georiot.com 
Accept: text/jsonl
Content-Type: text/jsonl
Content-Length: length

{"id":"String","linkType":"None","typeDefinitionPublicId":"String"}
HTTP/1.1 200 OK
Content-Type: text/jsonl
Content-Length: length

{"status":{"errorCode":"String","message":"String","stackTrace":"String","errors":[{"errorCode":"String","fieldName":"String","message":"String","meta":{"String":"String"}}],"meta":{"String":"String"}}}