Agrega un archivo a un registro específico.
Detalle de la petición:
- URI: /api/asms/case/{id}/file
- Tipo: POST
- Encabezados requeridos:
- UrlAsms {host}
- Content-Type: multipart/form-data;
- Content-Disposition: form-data;
- TokenAsms: Bearer {token}
Parámetros de identificador URI
https://{host}/api/asms/case/{id}/file
| Identificador | Tipo | Obligatorio | Descripción |
|---|---|---|---|
| host | string | SI | Representa el dominio del ambiente en el que se encuentra la API |
| id | integer | SI | Representa el identificador del caso |
Cuerpo de la petición:
{
"fileName": "file name",
"file": "",
"contentType": ""
}
Donde:
| Nombre | Identificador | Tipo | Requerido | Descripción |
|---|---|---|---|---|
| Nombre del archivo | fileName | string | SI | Nombre del archivo |
| Content | file | Base64 | SI | Contenido en Base 64 |
| Content Type | contentType | string | SI | Content Type |
Respuesta:
El servicio retornará un Json con la siguiente estructura:
{
"name": "file name",
"caseId": 0
}