Headers
Authorization: Bearer JWT_TOKENContent-Type: application/jsonAccept: application/jsonENDPOINT : api/media/-uuid-
SECURITY : authenticated
Description : Gets a media instance.
Headers
Authorization: Bearer JWT_TOKENContent-Type: application/jsonAccept: application/jsonURL Parameters
| name | type | description | example |
|---|---|---|---|
| uuid | string | Pas de description | 8d1bcaea-4667-377f-8e55-27ff887bc491 |
curl --request GET--get "https://---API_SERVER---/api/formats?paginate=1"--header "Content-Type: application/json"--header "Accept: application/json"const url = new URL( "https://---API_SERVER---/api/environments");const headers = { "Authorization": "Bearer {JWT_TOKEN}", "Content-Type": "application/json", "Accept": "application/json",};fetch(url, { method: "GET", headers,}).then(response => response.json());200ENDPOINT : 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
Authorization: Bearer JWT_TOKENContent-Type: multipart/form-dataAccept: application/jsonBody Parameters
namedatafilefilesmedia_type_idlibrary_uuidcurl --request POST--get "https://---API_SERVER---/api/formats?paginate=1"--header "Content-Type: multipart/form-data"--header "Accept: application/json"const url = new URL( "https://---API_SERVER---/api/environments");const headers = { "Authorization": "Bearer {JWT_TOKEN}", "Content-Type": "multipart/form-data", "Accept": "application/json",};fetch(url, { method: "POST", headers,}).then(response => response.json());200200ENDPOINT : 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 :
** /!\ 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.
| Header | Description |
|---|---|
| FN | Nom formaté (prénom + nom) |
| TITLE | Fonction de la personne |
| FIRSTNAME | Prénom |
| LASTNAME | Nom de famille |
| NICKNAME | Surnom |
| ROLE | Position hiérarchique |
| CATEGORIES | Catégories applicables à la vCard (séparées par des virgules) |
| ORG | Nom de l’organisation ou de l’entreprise |
| BU | Business Unit |
| KIND | Type d’objet représenté par la vCard (ex. individual, org, location, application). |
| EMAIL1 | Adresse électronique de l’objet. (type=internet) |
| EMAIL2 | Adresse électronique de l’objet. (type=internet) |
| EMAIL3 | Adresse électronique de l’objet. (type=internet) |
| EMAIL4 | Adresse électronique de l’objet. (type=internet) |
| TEL1 | Téléphone 1 (type=voice) |
| TEL2 | Téléphone 2 (type=cell) |
| TEL3 | Téléphone 3 (type=work) |
| TEL4 | Téléphone 4 (type=voice) |
| ADDR1_LINE1 | Adresse 1 (type=work) Ligne 1 |
| ADDR1_LINE2 | Adresse 1 (type=work) Ligne 2 |
| ADDR1_LINE3 | Adresse 1 (type=work) Ligne 3 |
| ADDR1_ZIPCODE | Adresse 1 (type=work) Code postal |
| ADDR1_CITY | Adresse 1 (type=work) Ville |
| ADDR1_COUNTRY | Adresse 1 (type=work) Pays |
| ADDR2_LINE1 | Adresse 2 (type=home) Ligne 1 |
| ADDR2_LINE2 | Adresse 2 (type=home) Ligne 2 |
| ADDR2_LINE3 | Adresse 2 (type=home) Ligne 3 |
| ADDR2_ZIPCODE | Adresse 2 (type=home) Code postal |
| ADDR2_CITY | Adresse 2 (type=home) Ville |
| ADDR2_COUNTRY | Adresse 2 (type=home) Pays |
| ADDR3_LINE1 | Adresse 3 (type=intl) Ligne 1 |
| ADDR3_LINE2 | Adresse 3 (type=intl) Ligne 2 |
| ADDR3_LINE3 | Adresse 3 (type=intl) Ligne 3 |
| ADDR3_ZIPCODE | Adresse 3 (type=intl) Code postal |
| ADDR3_CITY | Adresse 3 (type=intl) Ville |
| ADDR3_COUNTRY | Adresse 3 (type=intl) Pays |
| URL | Site internet |
| GEO | Latitude et Longitude |
| GENDER | Genre de l’individu (”,‘M’,‘F’,‘O’,‘N’,‘U’) |
| BDAY | Date de naissance au format AAAAMMJJ |
| LOGO | Url vers le logo de l’entreprise |
| PHOTO | Url vers la photo de l’individu |
| CUSTOM1 | Champ libre |
| CUSTOM2 | Champ libre |
| CUSTOM3 | Champ libre |
| CUSTOM4 | Champ libre |
| CUSTOM5 | Champ libre |
| CUSTOM6 | Champ libre |
| CUSTOM7 | Champ libre |
| CUSTOM8 | Champ libre |
| CUSTOM9 | Champ libre |
| CUSTOM10 | Champ libre |
| CUSTOM11 | Champ libre |
| CUSTOM12 | Champ libre |
| CUSTOM13 | Champ libre |
| CUSTOM14 | Champ libre |
| CUSTOM15 | Champ libre |
| CALURI | Url vers le calendrier de l’individu |
| REV | Date de la version de la personnalisation |
| LANG | Langue de l’individu |
| KEY | Clé publique de chiffrement |
| TZ | Fuseau horaire courant de l’individu |
| UID | Identifiant unique |
Headers
Authorization: Bearer JWT_TOKENContent-Type: multipart/form-dataAccept: application/jsonBody Parameters
filelibrary_uuidmedia_type_idcurl --request POST--get "https://---API_SERVER---/api/formats?paginate=1"--header "Content-Type: multipart/form-data"--header "Accept: application/json"const url = new URL( "https://---API_SERVER---/api/environments");const headers = { "Authorization": "Bearer {JWT_TOKEN}", "Content-Type": "multipart/form-data", "Accept": "application/json",};fetch(url, { method: "POST", headers,}).then(response => response.json());200ENDPOINT : api/media/-uuid-
SECURITY : authenticated
Description : Pas de description
Headers
Authorization: Bearer JWT_TOKENContent-Type: application/jsonAccept: application/jsonURL Parameters
| name | type | description | example |
|---|---|---|---|
| uuid | string | Pas de description | 4fd36fd9-7ab1-3531-8909-e490f0307b06 |
Body Parameters
namedatacurl --request POST--get "https://---API_SERVER---/api/formats?paginate=1"--header "Content-Type: application/json"--header "Accept: application/json"const url = new URL( "https://---API_SERVER---/api/environments");const headers = { "Authorization": "Bearer {JWT_TOKEN}", "Content-Type": "application/json", "Accept": "application/json",};fetch(url, { method: "POST", headers,}).then(response => response.json());200ENDPOINT : 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
Authorization: Bearer JWT_TOKENContent-Type: application/jsonAccept: application/jsonBody Parameters
keyscurl --request DELETE--get "https://---API_SERVER---/api/formats?paginate=1"--header "Content-Type: application/json"--header "Accept: application/json"const url = new URL( "https://---API_SERVER---/api/environments");const headers = { "Authorization": "Bearer {JWT_TOKEN}", "Content-Type": "application/json", "Accept": "application/json",};fetch(url, { method: "DELETE", headers,}).then(response => response.json());200ENDPOINT : 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
Authorization: Bearer JWT_TOKENContent-Type: application/jsonAccept: application/jsonURL Parameters
| name | type | description | example |
|---|---|---|---|
| uuid | string | Pas de description | ff1e7f6d-0255-3736-85ab-75e2e30dba44 |
Body Parameters
namedatacurl --request PATCH--get "https://---API_SERVER---/api/formats?paginate=1"--header "Content-Type: application/json"--header "Accept: application/json"const url = new URL( "https://---API_SERVER---/api/environments");const headers = { "Authorization": "Bearer {JWT_TOKEN}", "Content-Type": "application/json", "Accept": "application/json",};fetch(url, { method: "PATCH", headers,}).then(response => response.json());200ENDPOINT : api/media/-uuid-
SECURITY : authenticated
Description : Deletes a media.
Headers
Authorization: Bearer JWT_TOKENContent-Type: application/jsonAccept: application/jsonURL Parameters
| name | type | description | example |
|---|---|---|---|
| uuid | string | Pas de description | 7838dbf3-f737-3c67-ba2d-6dc0ecf308ef |
curl --request DELETE--get "https://---API_SERVER---/api/formats?paginate=1"--header "Content-Type: application/json"--header "Accept: application/json"const url = new URL( "https://---API_SERVER---/api/environments");const headers = { "Authorization": "Bearer {JWT_TOKEN}", "Content-Type": "application/json", "Accept": "application/json",};fetch(url, { method: "DELETE", headers,}).then(response => response.json());200