Renews temporary credentials to access the AWS S3 bucket for the specified bulk import job.
Base Request
POST /api/import/job/[jobId]/refresh-credentials
where [jobId] is the alphanumeric ID for the bulk import job.
Headers
| Header Name | Description | Required | Values |
|---|---|---|---|
| Authorization | The access token | Required |
Bearer [access_token]
where [access_token] is a string generated when you complete authentication (see Getting Started) |
| User-Agent | Identity of the client making the request to the server | Required |
[product]/[version]
where [product] is the name of the software you are using to make the request and [version] is the numbered version of the software (for example, MyCompanyProduct/1.0). For information on other types of values commonly included in user-agent request headers, see the User-Agent HTTP header reference section on the Mozilla developer documentation website. |
| Accept | The format of the data to be returned | Optional | application/vnd.hxcs.v1+json |
Sample Request
POST /api/import/job/[jobId]/refresh-credentials Authorization: Bearer [access_token] User-Agent: MyCompanyProduct/1.0 Accept: application/vnd.hxcs.v1+json
Response Body
See Bulk Import for response body details.
Sample Response
{
"awsAccessKeyId": "string",
"awsSecretAccessKey": "string",
"awsSessionToken": "string",
"jobId": "string"
}
Status Codes and Errors
The following table lists the returned status codes.
| Code | Description | Notes |
|---|---|---|
| 201 | Created | Returns the renewed credentials. |
| 400 | Bad Request | The server could not process the request due to invalid details for the bulk import job. |
| 401 | Not Authorized | Authentication has failed or was not provided. |
| 403 | Not Allowed | Access permissions are invalid or missing. |
| 412 | Precondition Failed | The server did not allow credentials to be renewed because the bulk import job did not have a status of CREATED. |