multipart/form-data in a part named file; POST and PUT on this path do the same thing.Authorization: Bearer ********************path can return 404 for a moment. The previous avatar is deleted the same way.curl --location --request PUT 'https://awqacore01.crexendocloud.com/ns-api/v2/domains//users//contacts/5f2b7c9e1a4d8e3b6c0f9a2d7e1b4c8a/avatar' \
--header 'Authorization: Bearer <token>' \
--form 'file=@""'{
"filename": "5f0c2d8e9b7a4c1d3e6f8a0b2c4d6e8f.webp",
"user": "1001",
"domain": "example.com",
"path": "/ns-api/v2/avatar/5f0c2d8e9b7a4c1d3e6f8a0b2c4d6e8f.webp",
"filetype": "image/webp",
"filesize-large-bytes": 7852,
"filesize-small-bytes": 1026,
"path-large": "/ns-api/v2/avatar/256/5f0c2d8e9b7a4c1d3e6f8a0b2c4d6e8f.webp",
"path-small": "/ns-api/v2/avatar/48/5f0c2d8e9b7a4c1d3e6f8a0b2c4d6e8f.webp",
"file-modified-for-limits": "no",
"contact_id": "5f2b7c9e1a4d8e3b6c0f9a2d7e1b4c8a"
}