Aller au contenu

Media

ENDPOINT : api/media/-uuid-

SECURITY : authenticated

Description : Gets a media instance.

Headers

Fenêtre de terminal
Authorization: Bearer JWT_TOKEN
Content-Type: application/json
Accept: application/json

URL Parameters

nametypedescriptionexample
uuidstringPas de description8d1bcaea-4667-377f-8e55-27ff887bc491
curl --request GET
--get "https://---API_SERVER---/api/formats?paginate=1"
--header "Content-Type: application/json"
--header "Accept: application/json"
  • Status : 200

ENDPOINT : api/media

SECURITY : authenticated

Description : Creates a media while uploading a file. Library must be specified in library_uuid body parameter. For a single file upload, use file body parameter. For a multi-file upload, use files (if you use Postman, you should name the field “files[]”).

** /!\ When using files**, the response for each file is wrapped either in an accepted or in a rejected superior layer.

Headers

Fenêtre de terminal
Authorization: Bearer JWT_TOKEN
Content-Type: multipart/form-data
Accept: application/json

Body Parameters

curl --request POST
--get "https://---API_SERVER---/api/formats?paginate=1"
--header "Content-Type: multipart/form-data"
--header "Accept: application/json"
  • Status : 200
  • Status : 200

ENDPOINT : api/media/upload

SECURITY : authenticated

Description : Creates a batch of objects from a CSV file. The CSV must have the same headers as object data. Environment ID can be guessed from the uploader’s access environment, specified inside the request’s body, or specified in the uploaded file as “environment_id”.

The endpoint behavior changes according to HTTP method :

  • POST : Create if resource key specified, do nothing if existing resource found.

** /!\ Only Media without files can be created through this endpoint !** Use create endpoint with files payload option in order to upload multiple media with files.

** /!\ Only MediaType #7 CUSTOMIZATION is currently supported **

** /!\ media_type_id body parameter is optional only when the library type is unambiguous (customizations, fonts, colors). ** Otherwise, it must be supplied in the body or into the uploaded file as its own separate field. Since customizations is the only type currently supported, you may safely consider this field as optional.

Click to expand
HeaderDescription
FNNom formaté (prénom + nom)
TITLEFonction de la personne
FIRSTNAMEPrénom
LASTNAMENom de famille
NICKNAMESurnom
ROLEPosition hiérarchique
CATEGORIESCatégories applicables à la vCard (séparées par des virgules)
ORGNom de l’organisation ou de l’entreprise
BUBusiness Unit
KINDType d’objet représenté par la vCard (ex. individual, org, location, application).
EMAIL1Adresse électronique de l’objet. (type=internet)
EMAIL2Adresse électronique de l’objet. (type=internet)
EMAIL3Adresse électronique de l’objet. (type=internet)
EMAIL4Adresse électronique de l’objet. (type=internet)
TEL1Téléphone 1 (type=voice)
TEL2Téléphone 2 (type=cell)
TEL3Téléphone 3 (type=work)
TEL4Téléphone 4 (type=voice)
ADDR1_LINE1Adresse 1 (type=work) Ligne 1
ADDR1_LINE2Adresse 1 (type=work) Ligne 2
ADDR1_LINE3Adresse 1 (type=work) Ligne 3
ADDR1_ZIPCODEAdresse 1 (type=work) Code postal
ADDR1_CITYAdresse 1 (type=work) Ville
ADDR1_COUNTRYAdresse 1 (type=work) Pays
ADDR2_LINE1Adresse 2 (type=home) Ligne 1
ADDR2_LINE2Adresse 2 (type=home) Ligne 2
ADDR2_LINE3Adresse 2 (type=home) Ligne 3
ADDR2_ZIPCODEAdresse 2 (type=home) Code postal
ADDR2_CITYAdresse 2 (type=home) Ville
ADDR2_COUNTRYAdresse 2 (type=home) Pays
ADDR3_LINE1Adresse 3 (type=intl) Ligne 1
ADDR3_LINE2Adresse 3 (type=intl) Ligne 2
ADDR3_LINE3Adresse 3 (type=intl) Ligne 3
ADDR3_ZIPCODEAdresse 3 (type=intl) Code postal
ADDR3_CITYAdresse 3 (type=intl) Ville
ADDR3_COUNTRYAdresse 3 (type=intl) Pays
URLSite internet
GEOLatitude et Longitude
GENDERGenre de l’individu (”,‘M’,‘F’,‘O’,‘N’,‘U’)
BDAYDate de naissance au format AAAAMMJJ
LOGOUrl vers le logo de l’entreprise
PHOTOUrl vers la photo de l’individu
CUSTOM1Champ libre
CUSTOM2Champ libre
CUSTOM3Champ libre
CUSTOM4Champ libre
CUSTOM5Champ libre
CUSTOM6Champ libre
CUSTOM7Champ libre
CUSTOM8Champ libre
CUSTOM9Champ libre
CUSTOM10Champ libre
CUSTOM11Champ libre
CUSTOM12Champ libre
CUSTOM13Champ libre
CUSTOM14Champ libre
CUSTOM15Champ libre
CALURIUrl vers le calendrier de l’individu
REVDate de la version de la personnalisation
LANGLangue de l’individu
KEYClé publique de chiffrement
TZFuseau horaire courant de l’individu
UIDIdentifiant unique

Headers

Fenêtre de terminal
Authorization: Bearer JWT_TOKEN
Content-Type: multipart/form-data
Accept: application/json
curl --request POST
--get "https://---API_SERVER---/api/formats?paginate=1"
--header "Content-Type: multipart/form-data"
--header "Accept: application/json"
  • Status : 200

ENDPOINT : api/media/-uuid-

SECURITY : authenticated

Description : Pas de description

Headers

Fenêtre de terminal
Authorization: Bearer JWT_TOKEN
Content-Type: application/json
Accept: application/json

URL Parameters

nametypedescriptionexample
uuidstringPas de description4fd36fd9-7ab1-3531-8909-e490f0307b06
curl --request POST
--get "https://---API_SERVER---/api/formats?paginate=1"
--header "Content-Type: application/json"
--header "Accept: application/json"
  • Status : 200

ENDPOINT : api/media/select

SECURITY : authenticated

Description : Returns a list of deleted elements. Accepts a list of keys (IDs, UUIDs) in a keys body parameter, in order to filter the results without resorting to extensive query parameters.

Only deletes media of type Customization.

Headers

Fenêtre de terminal
Authorization: Bearer JWT_TOKEN
Content-Type: application/json
Accept: application/json
curl --request DELETE
--get "https://---API_SERVER---/api/formats?paginate=1"
--header "Content-Type: application/json"
--header "Accept: application/json"
  • Status : 200

ENDPOINT : api/media/-uuid-

SECURITY : authenticated

Description : Updates a media. Can handle “library_uuid” parameer in order to move to another library, provided it has a compatible type.

Headers

Fenêtre de terminal
Authorization: Bearer JWT_TOKEN
Content-Type: application/json
Accept: application/json

URL Parameters

nametypedescriptionexample
uuidstringPas de descriptionff1e7f6d-0255-3736-85ab-75e2e30dba44
curl --request PATCH
--get "https://---API_SERVER---/api/formats?paginate=1"
--header "Content-Type: application/json"
--header "Accept: application/json"
  • Status : 200

ENDPOINT : api/media/-uuid-

SECURITY : authenticated

Description : Deletes a media.

Headers

Fenêtre de terminal
Authorization: Bearer JWT_TOKEN
Content-Type: application/json
Accept: application/json

URL Parameters

nametypedescriptionexample
uuidstringPas de description7838dbf3-f737-3c67-ba2d-6dc0ecf308ef
curl --request DELETE
--get "https://---API_SERVER---/api/formats?paginate=1"
--header "Content-Type: application/json"
--header "Accept: application/json"
  • Status : 200