Upload a user import artifact.
PUT
/api/admin/jobs/users/import/upload/{upload_id}
Code sample: Shell / cURL
curl --request PUT \ --url 'https://auth.example.com/api/admin/jobs/users/import/upload/example?filename=example' \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: text/csv' \ --data 'email,name[email protected],Alice Example'Stores a CSV import payload in IMPORT_ARTIFACTS under the tenant-scoped upload key, validates content type and size, and returns checksum and upload receipt metadata.
Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ” upload_id
required
string
Query Parameters
Section titled “Query Parameters ” filename
required
string
Sanitized filename originally returned by the upload-url endpoint.
Request Body required
Section titled “Request Body required ” Media type text/csv
string format: binary
Example
email,name[email protected],Alice ExampleResponses
Section titled “ Responses ”User import upload receipt response.
Media type application/json
object
upload_id
required
string
file_key
required
string
r2_key
required
string
uploaded_bytes
required
integer
checksum_sha256
required
string
content_type
required
string
key
additional properties
Example
{ "content_type": "text/csv"}Error response.
Media type application/json
object
error
string
message
string
error_description
string
key
additional properties
Example generated
{ "error": "example", "message": "example", "error_description": "example"}Error response.
Media type application/json
object
error
string
message
string
error_description
string
key
additional properties
Example generated
{ "error": "example", "message": "example", "error_description": "example"}Error response.
Media type application/json
object
error
string
message
string
error_description
string
key
additional properties
Example generated
{ "error": "example", "message": "example", "error_description": "example"}Error response.
Media type application/json
object
error
string
message
string
error_description
string
key
additional properties
Example generated
{ "error": "example", "message": "example", "error_description": "example"}