파일 삭제
Request
DELETE https://api.solapi.com/storage/v1/files/:fileId
파일을 삭제합니다.
Authorization 인증 필요 [?]
계정 권한
회원 권한
계정 상태
회원 상태
계정 인증
storage:write
ACTIVE
ACTIVE
Path Parameters
Name
Description
:fileId
파일 고유 아이디
Samples
deleteFile.spec.js
Sample Request
{}
Sample Response
{
"kakao": {
"daou": null,
"biztalk": null
},
"type": "DOCUMENT",
"originalName": "DmlKo.png",
"link": null,
"width": null,
"height": null,
"fileSize": null,
"fileId": "ST01FE190131163307869k130jGVVa01",
"accountId": "50192038501729",
"name": "DmlKo.png",
"url": "https://coolsms-storage-test.s3.ap-northeast-2.amazonaws.com/50192038501729/ST01FE190131163307869k130jGVVa01",
"references": [],
"dateCreated": "2020-09-23T03:27:42.557Z",
"dateUpdated": "2020-09-23T03:27:42.557Z"
}
Sample Code
var request = require('request');
var options = {
headers: {
Authorization:
'HMAC-SHA256 apiKey=NCSAYU7YDBXYORXC, date=2019-07-01T00:41:48Z, salt=jqsba2jxjnrjor, signature=1779eac71a24cbeeadfa7263cb84b7ea0af1714f5c0270aa30ffd34600e363b4'
},
method: 'DELETE',
json: true,
url: 'http://api.solapi.com/storage/v1/files/ST01FE190131163307869k130jGVVa01'
};
request(options, function(error, response, body) {
if (error) throw error;
console.log('result :', body);
});
문서 생성일 : 2020-09-23
Last updated
Was this helpful?