Edit Public Link

put

/documents/api/1.1/publiclinks/{linkId}

Edit the available public link parameters.

Request

Supported Media Types
  • application/json
  • application/xml
Path Parameters
linkId
Type: string
Required: true
Globally unique identifier (GUID) for the public link.
Body Parameter
The request body defines details of the edit public link request. There are no required attributes.
Root Schema : PublicLinkEditBody
The request body defines details of the edit public link request. There are no required attributes.
Example application/json

{
    "assignedUsers":"@everybody",
    "expirationTime":"2016-02-15T01:02:03",
    "password":"password2",
    "role":"viewer"
}

Response

Supported Media Types
  • application/json
  • application/xml
200 Response

The request was fulfilled.

Body
The response body includes information about the public link.
Root Schema : PublicLinkGetResponse
Type: object
The response body includes information about the public link.
Nested Schema : PublicLinkDefinition
Public link information.
Nested Schema : User
User information
Example application/json

{
    "linkID":"LFCE8A35C88A6A96FD39B621T0000000000100000001",
    "linkName":"pub-test-158",
    "assignedUsers":"@everybody",
    "role":"viewer",
    "type":"publiclink",
    "createdTime":"2015-06-05T21:04:56Z",
    "expirationTime":"2016-02-15T01:02:03Z",
    "lastModifiedTime":"2015-06-10T22:01:08Z",
    "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.

Examples

Request Header

The following example assigns values for all of the available parameters of the specified public link.

PUT .../publiclinks/LFCE8A35C88A6A96FD39B621T0000000000100000001

None.

Request Body

{
	"assignedUsers": "@everybody",
	"expirationTime": "2016-02-15T01:02:03",
	"password": "password2",
	"role": "viewer"
}

HTTP Status Code

HTTP_STATUS = 200

JSON Response

{
    "assignedUsers": "@everybody",
    "createdTime": "2015-06-05T21:04:56Z",
    "errorCode": "0",
    "expirationTime": "2016-02-15T01:02:03Z",
    "lastModifiedTime": "2015-06-10T22:01:08Z",
    "linkID": "LFCE8A35C88A6A96FD39B621T0000000000100000001",
    "linkName": "pub-test-158",
    "ownedBy": {
        "displayName": "User AA",
        "id": "U0EAA20910FAF3052ACB79E4T00000000001",
        "type": "user"
    },
    "role": "viewer",
    "type": "publiclink"
}