Aggregate XML feed examples and element descriptions
Aggregate Feed File Upload Process
Create a request to our API to receive the signed S3 bucket URL. A presigned upload URL will be returned.
Copy curl 'https://developers.snagajob.com/api/v1/presigned-s3-bulk-posting-post' \
-X POST
-H 'X-SAJ-Partner: ThePartnerName' \
-H 'X-SAJ-Signature: <base64 encoded signature>' \
-H 'X-SAJ-Date: Mon, 31 Oct 2022 20:23:10 GMT'
Copy {
"fields" : {
"key" : "some_path/to_a_file/PP_8675309_20220413190807.xml",
"policy" : "<policy-value>",
"success_action_status" : "201",
"x-amz-algorithm" : "AWS4-HMAC-SHA256",
"x-amz-credential" : "AKIAIOSFODNN7EXAMPLE/20151229/us-east-1/s3/aws4_request",
"x-amz-date" : "20220420T000000Z",
"x-amz-security-token" : "<security-token>",
"x-amz-signature" : "<signature-value>"
},
"fileUrl" : "https://examplebucket.s3.amazonaws.com/some_path/to_a_file/PP_8675309_20220420190807.xml",
"url" : "https://examplebucket.s3.amazonaws.com"
}
Request to upload your XML job feed
The above response has all the necessary information to upload your XML job feed directly to a Snagajob S3 bucket.
Copy curl 'https://examplebucket.s3.amazonaws.com' \
-F policy=<policy-value> \
-F success_action_status=201 \
-F key=some_path/to_a_file/PP_8675309_20220420190807.xml \
-F x-amz-algorithm=AWS4-HMAC-SHA256 \
-F x-amz-credential=AKIAIOSFODNN7EXAMPLE/20151229/us-east-1/s3/aws4_request \
-F x-amz-signature=<signature-value> \
-F x-amz-security-token=<security-token> \
-F x-amz-date=20220420T000000Z \
-F file=@the_file_you_would_like_to_upload.xml