Skip to content

CreateProfileImageDto

Endpoints · All schemas

FieldRequiredDescription
assetIdNoID of the photo the image was copied from, if any. A Locked photo is refused.
fileYesProfile image file
keepSourceNoThe image is a new crop of the current profile picture: keep the photo it was copied from, if any. Ignored when assetId is set.

Complete definition

required lists fields that must be present. nullable allows a null value; it does not make the field optional. Response enums retain exact wire values for compatibility.

{
  "properties": {
    "assetId": {
      "description": "ID of the photo the image was copied from, if any. A Locked photo is refused.",
      "format": "uuid",
      "type": "string"
    },
    "file": {
      "description": "Profile image file",
      "format": "binary",
      "type": "string"
    },
    "keepSource": {
      "description": "The image is a new crop of the current profile picture: keep the photo it was copied from, if any. Ignored when assetId is set.",
      "type": "boolean"
    }
  },
  "required": [
    "file"
  ],
  "type": "object"
}