Media

Ajoute un media à l'utilisateur connecté ou à l'organisation d'identifiant organization_id si renseigné

post/api/medias

Request

  • Base URL: https://macarte.ign.fr
  • URL: https://macarte.ign.fr/api/medias
  • Auth: HTTP bearer

Response

Attributs du media créé

idinteger

identifiant du media

namestring

nom de l'image originale

fileNamestring

nom du fichier enregistré

ownerstring

username de l'utilisateur qui a chargé le media

organization_idstring

id de l'organisation à qui appartient le media

organizationstring

nom de l'organisation à qui appartient le media

uploaded_atstring date-time

date du chargement de l'image

sizeinteger

Taille de l'image (en octet)

folderstring

Nom du fichier contenant le media

validboolean

Validité de l'image

view_urlstring uri

Url de l'image

thumb_urlstring uri

Url de la vignette de l'image

Changes

    • warning

      removed the optional property from the response with the status

    • info

      api operation id postMedias removed and replaced with postMedia

    • info

      added the optional property to the response with the status

    • info

      api operation id 84f1cf5ebf6e0098692204c5b1535a69 removed and replaced with postMedias

    • info

      the request property default value original_name du fichier was removed