Booklinker.API

<back to all web services

PutLinkUpdateRequest

Requires Authentication
The following routes are available for this service:
PUT/v1/links

// @DataContract
export class PutLinkUpdateResponse
{
    // @DataMember(Name="success")
    public success: boolean;

    // @DataMember(Name="responseStatus")
    public responseStatus: ResponseStatus;

    public constructor(init?: Partial<PutLinkUpdateResponse>) { (Object as any).assign(this, init); }
}

export class PutLinkUpdateRequest
{
    // @DataMember(Name="baseCode")
    public baseCode: string;

    // @DataMember(Name="domain")
    public domain: string;

    // @DataMember(Name="code")
    public code: string;

    // @DataMember(Name="url")
    public url: string;

    public constructor(init?: Partial<PutLinkUpdateRequest>) { (Object as any).assign(this, init); }
}

TypeScript PutLinkUpdateRequest DTOs

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

HTTP + CSV

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

PUT /v1/links HTTP/1.1 
Host: api.booklinker.com 
Accept: text/csv
Content-Type: text/csv
Content-Length: length

{"baseCode":"String","domain":"String","code":"String","url":"String"}
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length

{"success":false,"responseStatus":{"errorCode":"String","message":"String","stackTrace":"String","errors":[{"errorCode":"String","fieldName":"String","message":"String","meta":{"String":"String"}}],"meta":{"String":"String"}}}