Upload a file
This endpoint allows you to upload logos for user profiles and teams.
description: "This endpoint allows you to upload logos for user profiles and teams."
Upload a file
This endpoint allows you to upload logos for user profiles and teams.
Specifies the unique identifier of the team to which the user belongs to.
The unique identifier for a retailer-managed team. As a retailer, you can upload logos for user profiles and teams for the supplier team by specifying the managerTeamId. Ensure that API requests are authenticated with the retailer's bearer token.
Specifies the type of file to be uploaded. The file must be in one of the following formats: jpeg, jpg, or png. Valid upload file types include:
- FILE_TYPE_USER_LOGO: Logo for user profile.
- FILE_TYPE_TEAM_LOGO: Logo for team profile.
The file to upload, which must be in jpeg, jpg, or png format.
The logo file has been uploaded successfully.
The unique identifier of the uploaded file.
1ceee624-7c87-4e98-9995-042da2a32525The URL to access the file uploaded.
https://storage.googleapis.com/user_logo/.../path-to-imageThere was a problem with input.
Invalid token error.
Invalid token error.
An unexpected error response.
POST /v2/file-upload?teamId=text&fileType=FILE_TYPE_USER_LOGO HTTP/1.1
Host: auth.<env>.citrusad.com
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: multipart/form-data
Accept: */*
Content-Length: 23
{
"fileUpload": "binary"
}{
"fileId": "1ceee624-7c87-4e98-9995-042da2a32525",
"fileUrl": "https://storage.googleapis.com/user_logo/.../path-to-image"
}
