Get Public Link

get

/documents/api/1.2/publiclinks/{linkId}

Return information about a specific public link.

Request

Supported Media Types
Path Parameters
Back to Top

Response

Supported Media Types

200 Response

The request was fulfilled.

Body ()
Root Schema : PublicLinkGetResponse
Type: object
The response body includes information about the public link.
Show Source
Match All
Show Source
Nested Schema : PublicLinkDefinition
Type: object
Public link information.
Show Source
Nested Schema : User
Type: object
User information
Show Source
Example Response (application/json)
{
    "linkID":"LF906748A021ACD714CABC82T0000000000100000001",
    "linkName":"MyLinkOne",
    "assignedUsers":"@everybody",
    "role":"contributor",
    "type":"publiclink",
    "createdTime":"2015-06-10T16:01:44Z",
    "expirationTime":"2016-01-01T00:00:01Z",
    "lastModifiedTime":"2015-06-10T16:01:44Z",
    "ownedBy":{
        "id":"U0EAA20910FAF3052ACB79E4T00000000001",
        "displayName":"User AA",
        "type":"user"
    },
    "errorCode":"0"
}

400 Response

Request parameters are not formatted correctly.

403 Response

Forbidden if the user does not have read permission.

404 Response

Link ID is not found.

Back to Top

Examples

The following example returns information about the specified public link.

GET .../publiclinks/LF906748A021ACD714CABC82T0000000000100000001

Request Header

None.

Request Body

None.

HTTP Status Code

HTTP_STATUS = 200

JSON Response

{
    "assignedUsers": "@everybody",
    "createdTime": "2015-06-10T16:01:44Z",
    "errorCode": "0",
    "expirationTime": "2016-01-01T00:00:01Z",
    "lastModifiedTime": "2015-06-10T16:01:44Z",
    "linkID": "LF906748A021ACD714CABC82T0000000000100000001",
    "linkName": "MyLinkOne",
    "ownedBy": {
	      "displayName": "User AA",
	      "loginName": "userAALoginName",
	      "id": "U0EAA20910FAF3052ACB79E4T00000000001",
	      "type": "user"
    },
    "role": "contributor",
    "type": "publiclink"
}

Example 2

The following example returns an error because the link ID is invalid.

GET .../publiclinks/LFE36701FF7D3371DCD7F9E245B3E9DD64907CA0D19F

Request Header

None.

Request Body

None.

HTTP Status Code

HTTP_STATUS = 404

JSON Response

{
    "errorCode": "-16",
    "errorKey": "!csUnableToRetrieveSharedLinkInfo!csUnableToFindLink",
    "errorMessage": "Failed to retrieve shared link information. Unable to find the specified shared link.",
    "errorType": "publiclink",
    "linkID": "LFE36701FF7D3371DCD7F9E245B3E9DD64907CA0D19F",
    "title": "Failed to retrieve shared link information. Unable to find the specified shared link.",
    "type": "https://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
}
Back to Top