PUT /blobs/{blob_id}/presigned-urls/{action} Create Report Download URL
createPresignedUrl
Create Report Download URL creates a presigned URL in Staircase. It expires one hour after creation.
If partner provides a report in the documents, you can generate a download url with using staircase blob ID.
Response
Presigned URL created successfully.
{
"upload": {
"url": "https://dev-data-manager-blobs-bucket.s3.amazonaws.com/01EZY9J8SEFM2JKDJ1Q3YX65HS"
}
} Presigned URL created successfully.
{
"download": {
"url": "https://dev-data-manager-blobs-bucket.s3.amazonaws.com/01EZY9J8SEFM2JKDJ1Q3YX65HS"
}
} 403 invalid error
{
"message": "Please check the key you used to call this service",
"url": "https://api.staircase.co/docs/api-reference/customer-account-manager-service.yml/paths/~1products~1refresh/post"
} Parameters
3
| Parameter | Type | Example | Description |
|---|---|---|---|
x-api-key required | string header | xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx | Environment API Key. |
blob_id required | string path | 01EZY9J8SEFM2JKDJ1Q3YX65HS | Blob identifier |
action required | string path | upload | Action, one of one of ['upload', 'download'] |
Response 200application/json
2 fields
200application/jsonPresigned URL created successfully.
| Field | Type | Description |
|---|---|---|
upload | object | Action |
url | string | Presigned_url |
download | object | Action |
url | string | Presigned_url |
Response 403application/json
2 fields
403application/json403 invalid error
| Field | Type | Description |
|---|---|---|
message | string | Error message. |
url | string | Error additional URL. |
Other responses
400404