Get S3 pre-signed URL to upload a file for payload generation
GET/generate-payload/:resource_type
Returns an S3 pre-signed PUT URL and UploadPath for uploading a sample file used to generate Amorphic resource creation payloads. Only resource_type=datasets is supported (else GE-1106). Requires query params filename and action=getpresignupurl (else IPV-1001 / IPV-1041). Success Message is "Successfully generated PreSignedUrl". Safe to retry (read-only URL mint).
Request
Responses
- 200
- 400
- 500
Pre-signed URL generated. Message is "Successfully generated PreSignedUrl". Body also includes PreSignedUrl and UploadPath (generate_payload/{user}/{resource_type}/{epoch}_{filename}).
Response Headers
Validation or authorization failure. Body is {"Message": " -
Response Headers
Backend/generic failure. Body is {"Message": " -