Petition Details
- Base URL: {host}/ASMSAPI/
- Uri: /api/v9/item/{id}/files?itemType={itemType}&uploadType={uploadType}&additionalFieldI d={additionalFieldId}
- Type: GET
-
Required headings:
- content-type: application/json
- X-Authorization: Bearer {token}
URL Description
- {host}: It represents the domain of the environment in which the API is located.
- ASMSAPI/: Fixed API prefix.
- URI: Specific endpoint for the request.
⚐ EXAMPLE URL:
https://{host}/ASMSAPI/api/v9/item/{id}/files?itemType={itemType}&uploadType={uploadType}&additionalFieldI d={additionalFieldId}
Parameters
Name | Data type | Obligatory | Description |
---|---|---|---|
Id | Int | Yes | Case ID |
ItemType | String | Yes | Case Type |
uploadType | String | Yes | Identifies whether the file is from the case or an additional field - Case = 0, - AdditionalField - 1 |
additionalFieldId | Int | No | It is only mandatory when the file type is from additional fields |
*Body of the petition N/A
Answer
{
"content": [
{
"date": 1632261914867,
"description": "Archivo postman estandar",
"id": 18325,
"isPublic": true,
"name": "ESTANDAR\_DE\_BASE\_DE\_DATOS\_V1.2.doc", "size": 476160,
"url": null,
"userId": 4832,
"userName": "Especialista 1"
}
],
"totalItems": 1
}
Response Parameters
Name | Data type | Description |
---|---|---|
content | List | List of objects found in the search. |
Date | Date | Date the file was attached |
Description | Text | File description |
Id | Number | File ID |
isPublic | They boan | Indicates whether the file is public or not |
Name | Text | File Name |
size | Number | File size |
totalItems | Number | Total number of objects found |
Error messages
Code | HTTP status | Error Message |
---|---|---|
400 | BadRequest | \r\nParameter Name: Id |
400 | BadRequest | \r\nParameter Name: Itemtype |
400 | BadRequest | \r\nParameter Name: Uploadtype |
400 | BadRequest | InvalidAdditionalFieldId |
400 | BadRequest | InvalidGetFiles |
400 | BadRequest | InvalidItemType |
400 | BadRequest | InvalidUploadType |
400 | BadRequest | RequestNeedsSomeArguments |
403 | Forbidden | DoNotHavePermissionForThisAction |
500 | InternalServerError | FailureGetFiles |