Skip to main content

response

successboolean

Indicates if the request was successful

Example: true
messagestring

Message describing the result

Example: Operation completed successfully
data object[]

The actual payload data

  • Array [
  • idinteger<int64>

    Identifiant unique du média

    Example: 123
    titlestring

    Titre du média

    Example: Document PDF
    descriptionstring

    Description du média

    Example: Ce fichier contient les informations du contrat.
    filestring<binary>
    fileFormatstring

    Format du fichier (ex : pdf, jpeg, etc.)

    Example: pdf
    createdBystring

    Nom du créateur du média

    Example: John Doe
    fileNamestring

    Nom du fichier

    Example: contrat.pdf
    createdOnstring<date-time>

    Date de création du média

    Example: 2025-04-22T12:00:00Z
    fileBytesstring<byte>
    fileTypestring

    Type MIME du fichier (ex : application/pdf, image/jpeg)

    Example: application/jpeg
    fileSizeinteger<int64>

    Taille du fichier en octets

    Example: 102400
    dateDebutstring<date-time>

    Date de début de validité du média

    Example: 2025-05-01T00:00:00Z
    dateFinstring<date-time>

    Date de fin de validité du média

    Example: 2025-06-01T00:00:00Z
    imageWidthinteger<int32>

    Largeur de l'image (si applicable)

    Example: 1920
    imageHeightinteger<int32>

    Hauteur de l'image (si applicable)

    Example: 1080
    codeProfilstring

    Code de profil associé au média

    Example: profile_001
    linkstring

    Lien associé au média

    Example: https://example.com/contrat
    typestring

    Type de média (ex : image, document, vidéo)

    Example: document
    canalstring[]

    List of distribution channels for which the media is intended. A media can be targeted to multiple platforms.

    Possible values: [Web, Mobile]

    Default value: ["Web"]
    Example: ["Web","Mobile"]
    updatedOnstring<date-time>

    Date de dernière mise à jour du média

    Example: 2025-04-22T15:00:00Z
  • ]
  • response
    {
    "success": true,
    "message": "Operation completed successfully",
    "data": [
    {
    "id": 123,
    "title": "Document PDF",
    "description": "Ce fichier contient les informations du contrat.",
    "file": "string",
    "fileFormat": "pdf",
    "createdBy": "John Doe",
    "fileName": "contrat.pdf",
    "createdOn": "2025-04-22T12:00:00Z",
    "fileBytes": "string",
    "fileType": "application/jpeg",
    "fileSize": 102400,
    "dateDebut": "2025-05-01T00:00:00Z",
    "dateFin": "2025-06-01T00:00:00Z",
    "imageWidth": 1920,
    "imageHeight": 1080,
    "codeProfil": "profile_001",
    "link": "https://example.com/contrat",
    "type": "document",
    "canal": [
    "Web",
    "Mobile"
    ],
    "updatedOn": "2025-04-22T15:00:00Z"
    }
    ]
    }