Tickets Attachments API (v1)
Managing attachments for Control panel tickets
Get meta-info for file by file_uuid parameter
Authorizations:
X-Token
path Parameters
file_uuid required | string <uuid> |
Responses
Response samples
- 200
- 422
- default
Content type
application/json
{- "actor_uuid": "de359bf5-b5d6-4a92-8c70-836bc947b83a",
- "antivirus_checks": {
- "log": "string",
- "gdrive_id": "string",
- "state": null,
- "file_id": 0,
- "deleted_from_gdrive": true
}, - "file_hash": "string",
- "url": "string",
- "original_filename": "string",
- "user_id": 0,
- "employee_id": 0,
- "id": 0,
- "file_uuid": "f8e009a6-6911-41da-98d0-fee9e838b64d",
- "state": null,
- "size": 0,
- "uniq_part": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "visibility": null,
- "updated_at": "2019-08-24T14:15:22Z",
- "content_type": "string"
}
Get list meta-info by array of file_uuids
Authorizations:
X-Token
query Parameters
file_uuid required | Array of strings <uuid> [ items <uuid > ] |
Responses
Response samples
- 200
- 422
- default
Content type
application/json
[- {
- "actor_uuid": "de359bf5-b5d6-4a92-8c70-836bc947b83a",
- "antivirus_checks": {
- "log": "string",
- "gdrive_id": "string",
- "state": null,
- "file_id": 0,
- "deleted_from_gdrive": true
}, - "file_hash": "string",
- "url": "string",
- "original_filename": "string",
- "user_id": 0,
- "employee_id": 0,
- "id": 0,
- "file_uuid": "f8e009a6-6911-41da-98d0-fee9e838b64d",
- "state": null,
- "size": 0,
- "uniq_part": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "visibility": null,
- "updated_at": "2019-08-24T14:15:22Z",
- "content_type": "string"
}
]
Receive file in multipart from data
Authorizations:
X-Token
query Parameters
actor_uuid | string <uuid> Default: "00000000-0000-0000-0000-000000000000" |
Request Body schema: multipart/form-datarequired
data | string <binary> |
Responses
Response samples
- 201
- 422
- default
Content type
application/json
{- "actor_uuid": "de359bf5-b5d6-4a92-8c70-836bc947b83a",
- "employee_id": 0,
- "original_filename": "string",
- "object_key": "string",
- "uniq_part": "string",
- "file_hash": "string",
- "file_uuid": "f8e009a6-6911-41da-98d0-fee9e838b64d",
- "private_presigned_link": "string",
- "public_download_external_url": "string",
- "unauth_download_url": "string",
- "visibility": "public",
- "width": 0,
- "private_download_external_url": "string",
- "dynamic_image_url": "string",
- "unauth_publish": true,
- "content_type": "string",
- "unauth_download_external_url": "string",
- "height": 0,
- "public_download_url": "string",
- "user_id": 0,
- "private_download_url": "string",
- "size": 0
}
Get list of all files with filters and pagination
Authorizations:
X-Token
query Parameters
actor_uuid | string <uuid> |
employee_id | integer <int32> |
file_hash | string |
external_id | Array of strings |
file_uuid | string <uuid> |
user_id | Array of integers <int32> [ items <int32 > ] |
state | any |
visibility | any |
page | integer <int32> >= 1 Default: 1 |
page_size | integer <int32> [ 1 .. 100 ] Default: 10 |
Responses
Response samples
- 200
- 422
- default
Content type
application/json
[- {
- "actor_uuid": "de359bf5-b5d6-4a92-8c70-836bc947b83a",
- "antivirus_checks": {
- "log": "string",
- "gdrive_id": "string",
- "state": null,
- "file_id": 0,
- "deleted_from_gdrive": true
}, - "file_hash": "string",
- "url": "string",
- "original_filename": "string",
- "user_id": 0,
- "employee_id": 0,
- "id": 0,
- "file_uuid": "f8e009a6-6911-41da-98d0-fee9e838b64d",
- "state": null,
- "size": 0,
- "uniq_part": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "visibility": null,
- "updated_at": "2019-08-24T14:15:22Z",
- "content_type": "string"
}
]