# Additional API Contract - API CMS (Article Management)
## Post "v1/articles/sections/files"
(Possibly need changes)
__Request__
>This request will insert a link to the database of article, only for videos or photo.
>Allowed to post more than 1 video or image.
>Can post video only / image only / both.
```json
Authorization: Bearer [TOKEN]
Content-Type: application/json
POST v1/articles/sections/files
{
"videos": [{
"duration": "number",
"exif": "string",
"height": "number",
"link": "string",
"size": "number",
"width": "number"
}],
"images": [{
"exif": "string",
"height": "number",
"link": "string",
"size": "number",
"width": "number"
}],
"section_id": "string"
}
```
__Response__ **201**
```json
{
"message": "success"
}
```
## Post "v1/articles/sections/files/link"
__Request__
>This request will generate a new link for videos or photo.
>Link expire after 1 hour.
>Can post video only / image only.
```json
Authorization: Bearer [TOKEN]
Content-Type: application/json
POST v1/articles/sections/files/link
{
"extension": "string",
"height": "number",
"size": "number",
"width": "number"
"section_id": "string"
}
```
__Response__ **200**
```json
{
"link": "string"
}
```
## Delete "v1/articles/sections/files"
__Request__
>This request will delete file with link.
>Allowed to delete more than 1 link at the same time
```json
Authorization: Bearer [TOKEN]
Content-Type: application/json
Delete v1/articles
[
{
"file_id": "string"
}
]
```
__Response__ **200**
```json
{
"message": "Success"
}
```