Skip to main content
 print this page

Get job script upload URL

POST 

/jobs/:id/script

Returns a SigV4 presigned PUT URL in Message to upload or replace the job script. Caller must send a valid role_id (AUTH-1001 if missing) and have at least editor access on the job. Read-only users are rejected with AUTH-1010 ("Read only users for the job cannot perform this action."). Unknown JobId returns IPV-1002. Upload is allowed only when the resolved script bucket is the Amorphic ETL bucket (IPV-1002 otherwise). That includes AWSConsole jobs whose ScriptLocation is outside that bucket. Object key is {jobId}/script/{JobName}. On success the job LastModified and LastModifiedBy are updated (DB-1002 if DynamoDB update fails). No request body.

Request

Responses

Presigned PUT URL returned in Message.

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