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
- 200
- 400
- 500
Presigned PUT URL returned in Message.
Response Headers
Validation or authorization failure. Body is {"Message": " -
Response Headers
Unhandled backend failure. Body is {"Message": " -