Links Shared Files to Wiki.

Role

Administrator 
Normal User 

Method

POST 

URL

/api/v2/wikis/:wikiId/sharedFiles 

URL parameters

Parameter Name Type Description
wikiId Number Wiki page’s ID

Form parameters

Content-Type:application/x-www-form-urlencoded 
Parameter Name Type Description
fileId[] (Required) Number Shared File Id

Response example

Status Line / Response Header

HTTP/1.1 200 OK 
Content-Type:application/json;charset=utf-8 

Response Body

{ 
    "id": 4056, 
    "type": "file", 
    "dir": "/design/", 
    "name": "site.png", 
    "size": 2735, 
    "createdUser": { 
        "id": 5686, 
        "userId": "takada", 
        "name": "takada", 
        "roleType":2, 
        "lang":"ja", 
        "mailAddress":"takada@nulab.example" 
    }, 
    "created": "2009-02-27T03:26:15Z", 
    "updatedUser": { 
        "id": 5686, 
        "userId": "takada", 
        "name": "takada", 
        "roleType": 2, 
        "lang": "ja", 
        "mailAddress": "takada@nulab.example" 
    }, 
    "updated":"2010-05-02T17:37:10Z" 
}