Skip to main content
 print this page

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

Pre-signed URL generated. Message is "Successfully generated PreSignedUrl". Body also includes PreSignedUrl and UploadPath (generate_payload/{user}/{resource_type}/{epoch}_{filename}).

Response Headers
    Access-Control-Allow-Origin
    Access-Control-Allow-Methods
    Access-Control-Allow-Headers