Attach File to Wiki

Attaches file to Wiki

Role

Administrator 
Normal User 

Method

POST 

URL

/api/v2/wikis/:wikiId/attachments 

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
attachmentId[]
(複数指定可)
Number ID returned by send attachment API

Response example

Status Line / Response Header

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

Response Body

[ 
    { 
        "id": 2, 
        "name": "Duke.png", 
        "size": 196186, 
        "createdUser": { 
            "id": 1, 
            "userId": "admin", 
            "name": "admin", 
            "roleType": 1, 
            "lang": null, 
            "mailAddress": "eguchi@nulab.example",
            "lastLoginTime": "2022-09-01T06:35:39Z"
        }, 
        "created": "2014-07-11T06:26:05Z" 
    }, 
    ... 
]