Resource
Get Resource JSON Format
GET
http://localhost/api_v1/targets/:target_name:/resources/:resource_id:.json/
This endpoint allows you to get the details of a resource with a given resource_id in JSON format
Path Parameters
Name | Type | Description |
---|---|---|
target_name | string | Name of the Target |
resource_id | string | ID of the Resource |
Headers
Name | Type | Description |
---|---|---|
presqt-source-token | string | User's Target Token |
Get Resource Zip Format
GET
http://localhost/api_v1/targets/:target_name:/resources/:resource_id:.zip/
This endpoint allows you to get the resource with the given resource_if as a ZIP file.
Path Parameters
Name | Type | Description |
---|---|---|
target_name | string | Name of the Target |
resource_id | string | ID of the Resource |
Headers
Name | Type | Description |
---|---|---|
presqt-source-token | string | User's Target Token |
Upload Resource To Container
POST
http://localhost/api_v1/targets/:target_name:/resources/:resource_id:/
This endpoint allows you to upload resources to an existing container
Path Parameters
Name | Type | Description |
---|---|---|
target_name | string | Name of the Target |
resource_id | string | ID of the Resource |
Headers
Name | Type | Description |
---|---|---|
duplicate-file-action | string | Flag for handling file duplication. Must be either 'ignore' or 'update'. |
presqt-detination-token | string | User's token for the destination target |
Request Body
Name | Type | Description |
---|---|---|
presqt-file | object | Zip of the resources to upload |
Last updated