Medias.Medias
En bref
30 opérations sur 12 chemins. Préfixe /v2. Authentification JWT (voir Démarrer).
Opérations
| Méthode | Chemin | Rôle |
|---|---|---|
GET |
/v2/medias/analytique/{nAnalytique}/{caNum} |
Appel GET sur medias/analytique |
POST |
/v2/medias/analytique/{nAnalytique}/{caNum} |
Appel POST sur medias/analytique |
GET |
/v2/medias/analytique/{nAnalytique}/{caNum}/{fichier} |
Appel GET sur medias/analytique |
DELETE |
/v2/medias/analytique/{nAnalytique}/{caNum}/{fichier} |
Appel DELETE sur medias/analytique |
PATCH |
/v2/medias/analytique/{nAnalytique}/{caNum}/{fichier} |
Appel PATCH sur medias/analytique |
GET |
/v2/medias/article/{arRef} |
Appel GET sur medias/article |
POST |
/v2/medias/article/{arRef} |
Appel POST sur medias/article |
GET |
/v2/medias/article/{arRef}/{fichier} |
Appel GET sur medias/article |
DELETE |
/v2/medias/article/{arRef}/{fichier} |
Appel DELETE sur medias/article |
PATCH |
/v2/medias/article/{arRef}/{fichier} |
Appel PATCH sur medias/article |
GET |
/v2/medias/document/{doType}/{doPiece} |
Appel GET sur medias/document |
POST |
/v2/medias/document/{doType}/{doPiece} |
Appel POST sur medias/document |
GET |
/v2/medias/document/{doType}/{doPiece}/{fichier} |
Appel GET sur medias/document |
DELETE |
/v2/medias/document/{doType}/{doPiece}/{fichier} |
Appel DELETE sur medias/document |
PATCH |
/v2/medias/document/{doType}/{doPiece}/{fichier} |
Appel PATCH sur medias/document |
GET |
/v2/medias/ecriture/{ecNo} |
Appel GET sur medias/ecriture |
POST |
/v2/medias/ecriture/{ecNo} |
Appel POST sur medias/ecriture |
GET |
/v2/medias/ecriture/{ecNo}/{fichier} |
Appel GET sur medias/ecriture |
DELETE |
/v2/medias/ecriture/{ecNo}/{fichier} |
Appel DELETE sur medias/ecriture |
PATCH |
/v2/medias/ecriture/{ecNo}/{fichier} |
Appel PATCH sur medias/ecriture |
GET |
/v2/medias/immobilisation/{imCode} |
Appel GET sur medias/immobilisation |
POST |
/v2/medias/immobilisation/{imCode} |
Appel POST sur medias/immobilisation |
GET |
/v2/medias/immobilisation/{imCode}/{fichier} |
Appel GET sur medias/immobilisation |
DELETE |
/v2/medias/immobilisation/{imCode}/{fichier} |
Appel DELETE sur medias/immobilisation |
PATCH |
/v2/medias/immobilisation/{imCode}/{fichier} |
Appel PATCH sur medias/immobilisation |
GET |
/v2/medias/tiers/{ctNum} |
Appel GET sur medias/tiers |
POST |
/v2/medias/tiers/{ctNum} |
Appel POST sur medias/tiers |
GET |
/v2/medias/tiers/{ctNum}/{fichier} |
Appel GET sur medias/tiers |
DELETE |
/v2/medias/tiers/{ctNum}/{fichier} |
Appel DELETE sur medias/tiers |
PATCH |
/v2/medias/tiers/{ctNum}/{fichier} |
Appel PATCH sur medias/tiers |
Rôle déduit
La spécification ne porte ni summary ni description d'opération : la colonne Rôle est déduite mécaniquement de la méthode HTTP et du chemin.
Détail
GET /v2/medias/analytique/{nAnalytique}/{caNum}
Appel GET sur medias/analytique.
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|---|---|---|---|
nAnalytique |
path | integer (int32) |
oui | - |
caNum |
path | string |
oui | - |
Réponses
| Code | Description | Schéma de data |
|---|---|---|
200 |
OK | tableau de MediaV2 |
401 |
Unauthorized | - |
403 |
Forbidden | - |
Exemple
curl -s -X GET "https://<votre-connecteur>/v2/medias/analytique/<nAnalytique>/<caNum>" \
-H "Authorization: Bearer <jeton>" \
-H "Accept: application/json"
POST /v2/medias/analytique/{nAnalytique}/{caNum}
Appel POST sur medias/analytique.
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|---|---|---|---|
nAnalytique |
path | integer (int32) |
oui | - |
caNum |
path | string |
oui | - |
Corps de la requête (application/json)
Schéma MediaEcritureV2 - 4 propriétés (détail : Schémas).
Réponses
| Code | Description | Schéma de data |
|---|---|---|
201 |
Created | MediaStockeV2 |
401 |
Unauthorized | - |
403 |
Forbidden | - |
Exemple
curl -s -X POST "https://<votre-connecteur>/v2/medias/analytique/<nAnalytique>/<caNum>" \
-H "Authorization: Bearer <jeton>" \
-H "Content-Type: application/json" \
-d '{"fichier": "…", "datas": "…", "commentaire": "…"}'
GET /v2/medias/analytique/{nAnalytique}/{caNum}/{fichier}
Appel GET sur medias/analytique.
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|---|---|---|---|
nAnalytique |
path | integer (int32) |
oui | - |
caNum |
path | string |
oui | - |
fichier |
path | string |
oui | - |
Réponses
| Code | Description | Schéma de data |
|---|---|---|
200 |
OK | - |
401 |
Unauthorized | - |
403 |
Forbidden | - |
Exemple
curl -s -X GET "https://<votre-connecteur>/v2/medias/analytique/<nAnalytique>/<caNum>/<fichier>" \
-H "Authorization: Bearer <jeton>" \
-H "Accept: application/json"
DELETE /v2/medias/analytique/{nAnalytique}/{caNum}/{fichier}
Appel DELETE sur medias/analytique.
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|---|---|---|---|
nAnalytique |
path | integer (int32) |
oui | - |
caNum |
path | string |
oui | - |
fichier |
path | string |
oui | - |
Réponses
| Code | Description | Schéma de data |
|---|---|---|
200 |
OK | - |
401 |
Unauthorized | - |
403 |
Forbidden | - |
Exemple
curl -s -X DELETE "https://<votre-connecteur>/v2/medias/analytique/<nAnalytique>/<caNum>/<fichier>" \
-H "Authorization: Bearer <jeton>" \
-H "Accept: application/json"
PATCH /v2/medias/analytique/{nAnalytique}/{caNum}/{fichier}
Appel PATCH sur medias/analytique.
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|---|---|---|---|
nAnalytique |
path | integer (int32) |
oui | - |
caNum |
path | string |
oui | - |
fichier |
path | string |
oui | - |
Corps de la requête (application/json)
Schéma MediaModificationV2 - 3 propriétés (détail : Schémas).
Réponses
| Code | Description | Schéma de data |
|---|---|---|
200 |
OK | - |
401 |
Unauthorized | - |
403 |
Forbidden | - |
Exemple
curl -s -X PATCH "https://<votre-connecteur>/v2/medias/analytique/<nAnalytique>/<caNum>/<fichier>" \
-H "Authorization: Bearer <jeton>" \
-H "Content-Type: application/json" \
-d '{"commentaire": "…", "datas": "…", "transmettre": false}'
GET /v2/medias/article/{arRef}
Appel GET sur medias/article.
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|---|---|---|---|
arRef |
path | string |
oui | - |
Réponses
| Code | Description | Schéma de data |
|---|---|---|
200 |
OK | tableau de MediaV2 |
401 |
Unauthorized | - |
403 |
Forbidden | - |
Exemple
curl -s -X GET "https://<votre-connecteur>/v2/medias/article/<arRef>" \
-H "Authorization: Bearer <jeton>" \
-H "Accept: application/json"
POST /v2/medias/article/{arRef}
Appel POST sur medias/article.
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|---|---|---|---|
arRef |
path | string |
oui | - |
Corps de la requête (application/json)
Schéma MediaEcritureV2 - 4 propriétés (détail : Schémas).
Réponses
| Code | Description | Schéma de data |
|---|---|---|
201 |
Created | MediaStockeV2 |
401 |
Unauthorized | - |
403 |
Forbidden | - |
Exemple
curl -s -X POST "https://<votre-connecteur>/v2/medias/article/<arRef>" \
-H "Authorization: Bearer <jeton>" \
-H "Content-Type: application/json" \
-d '{"fichier": "…", "datas": "…", "commentaire": "…"}'
GET /v2/medias/article/{arRef}/{fichier}
Appel GET sur medias/article.
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|---|---|---|---|
arRef |
path | string |
oui | - |
fichier |
path | string |
oui | - |
Réponses
| Code | Description | Schéma de data |
|---|---|---|
200 |
OK | - |
401 |
Unauthorized | - |
403 |
Forbidden | - |
Exemple
curl -s -X GET "https://<votre-connecteur>/v2/medias/article/<arRef>/<fichier>" \
-H "Authorization: Bearer <jeton>" \
-H "Accept: application/json"
DELETE /v2/medias/article/{arRef}/{fichier}
Appel DELETE sur medias/article.
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|---|---|---|---|
arRef |
path | string |
oui | - |
fichier |
path | string |
oui | - |
Réponses
| Code | Description | Schéma de data |
|---|---|---|
200 |
OK | - |
401 |
Unauthorized | - |
403 |
Forbidden | - |
Exemple
curl -s -X DELETE "https://<votre-connecteur>/v2/medias/article/<arRef>/<fichier>" \
-H "Authorization: Bearer <jeton>" \
-H "Accept: application/json"
PATCH /v2/medias/article/{arRef}/{fichier}
Appel PATCH sur medias/article.
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|---|---|---|---|
arRef |
path | string |
oui | - |
fichier |
path | string |
oui | - |
Corps de la requête (application/json)
Schéma MediaModificationV2 - 3 propriétés (détail : Schémas).
Réponses
| Code | Description | Schéma de data |
|---|---|---|
200 |
OK | - |
401 |
Unauthorized | - |
403 |
Forbidden | - |
Exemple
curl -s -X PATCH "https://<votre-connecteur>/v2/medias/article/<arRef>/<fichier>" \
-H "Authorization: Bearer <jeton>" \
-H "Content-Type: application/json" \
-d '{"commentaire": "…", "datas": "…", "transmettre": false}'
GET /v2/medias/document/{doType}/{doPiece}
Appel GET sur medias/document.
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|---|---|---|---|
doType |
path | integer (int32) |
oui | - |
doPiece |
path | string |
oui | - |
Réponses
| Code | Description | Schéma de data |
|---|---|---|
200 |
OK | tableau de MediaV2 |
401 |
Unauthorized | - |
403 |
Forbidden | - |
Exemple
curl -s -X GET "https://<votre-connecteur>/v2/medias/document/<doType>/<doPiece>" \
-H "Authorization: Bearer <jeton>" \
-H "Accept: application/json"
POST /v2/medias/document/{doType}/{doPiece}
Appel POST sur medias/document.
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|---|---|---|---|
doType |
path | integer (int32) |
oui | - |
doPiece |
path | string |
oui | - |
Corps de la requête (application/json)
Schéma MediaEcritureV2 - 4 propriétés (détail : Schémas).
Réponses
| Code | Description | Schéma de data |
|---|---|---|
201 |
Created | MediaStockeV2 |
401 |
Unauthorized | - |
403 |
Forbidden | - |
Exemple
curl -s -X POST "https://<votre-connecteur>/v2/medias/document/<doType>/<doPiece>" \
-H "Authorization: Bearer <jeton>" \
-H "Content-Type: application/json" \
-d '{"fichier": "…", "datas": "…", "commentaire": "…"}'
GET /v2/medias/document/{doType}/{doPiece}/{fichier}
Appel GET sur medias/document.
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|---|---|---|---|
doType |
path | integer (int32) |
oui | - |
doPiece |
path | string |
oui | - |
fichier |
path | string |
oui | - |
Réponses
| Code | Description | Schéma de data |
|---|---|---|
200 |
OK | - |
401 |
Unauthorized | - |
403 |
Forbidden | - |
Exemple
curl -s -X GET "https://<votre-connecteur>/v2/medias/document/<doType>/<doPiece>/<fichier>" \
-H "Authorization: Bearer <jeton>" \
-H "Accept: application/json"
DELETE /v2/medias/document/{doType}/{doPiece}/{fichier}
Appel DELETE sur medias/document.
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|---|---|---|---|
doType |
path | integer (int32) |
oui | - |
doPiece |
path | string |
oui | - |
fichier |
path | string |
oui | - |
Réponses
| Code | Description | Schéma de data |
|---|---|---|
200 |
OK | - |
401 |
Unauthorized | - |
403 |
Forbidden | - |
Exemple
curl -s -X DELETE "https://<votre-connecteur>/v2/medias/document/<doType>/<doPiece>/<fichier>" \
-H "Authorization: Bearer <jeton>" \
-H "Accept: application/json"
PATCH /v2/medias/document/{doType}/{doPiece}/{fichier}
Appel PATCH sur medias/document.
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|---|---|---|---|
doType |
path | integer (int32) |
oui | - |
doPiece |
path | string |
oui | - |
fichier |
path | string |
oui | - |
Corps de la requête (application/json)
Schéma MediaModificationV2 - 3 propriétés (détail : Schémas).
Réponses
| Code | Description | Schéma de data |
|---|---|---|
200 |
OK | - |
401 |
Unauthorized | - |
403 |
Forbidden | - |
Exemple
curl -s -X PATCH "https://<votre-connecteur>/v2/medias/document/<doType>/<doPiece>/<fichier>" \
-H "Authorization: Bearer <jeton>" \
-H "Content-Type: application/json" \
-d '{"commentaire": "…", "datas": "…", "transmettre": false}'
GET /v2/medias/ecriture/{ecNo}
Appel GET sur medias/ecriture.
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|---|---|---|---|
ecNo |
path | integer (int32) |
oui | - |
Réponses
| Code | Description | Schéma de data |
|---|---|---|
200 |
OK | tableau de MediaV2 |
401 |
Unauthorized | - |
403 |
Forbidden | - |
Exemple
curl -s -X GET "https://<votre-connecteur>/v2/medias/ecriture/<ecNo>" \
-H "Authorization: Bearer <jeton>" \
-H "Accept: application/json"
POST /v2/medias/ecriture/{ecNo}
Appel POST sur medias/ecriture.
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|---|---|---|---|
ecNo |
path | integer (int32) |
oui | - |
Corps de la requête (application/json)
Schéma MediaEcritureV2 - 4 propriétés (détail : Schémas).
Réponses
| Code | Description | Schéma de data |
|---|---|---|
201 |
Created | MediaStockeV2 |
401 |
Unauthorized | - |
403 |
Forbidden | - |
Exemple
curl -s -X POST "https://<votre-connecteur>/v2/medias/ecriture/<ecNo>" \
-H "Authorization: Bearer <jeton>" \
-H "Content-Type: application/json" \
-d '{"fichier": "…", "datas": "…", "commentaire": "…"}'
GET /v2/medias/ecriture/{ecNo}/{fichier}
Appel GET sur medias/ecriture.
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|---|---|---|---|
ecNo |
path | integer (int32) |
oui | - |
fichier |
path | string |
oui | - |
Réponses
| Code | Description | Schéma de data |
|---|---|---|
200 |
OK | - |
401 |
Unauthorized | - |
403 |
Forbidden | - |
Exemple
curl -s -X GET "https://<votre-connecteur>/v2/medias/ecriture/<ecNo>/<fichier>" \
-H "Authorization: Bearer <jeton>" \
-H "Accept: application/json"
DELETE /v2/medias/ecriture/{ecNo}/{fichier}
Appel DELETE sur medias/ecriture.
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|---|---|---|---|
ecNo |
path | integer (int32) |
oui | - |
fichier |
path | string |
oui | - |
Réponses
| Code | Description | Schéma de data |
|---|---|---|
200 |
OK | - |
401 |
Unauthorized | - |
403 |
Forbidden | - |
Exemple
curl -s -X DELETE "https://<votre-connecteur>/v2/medias/ecriture/<ecNo>/<fichier>" \
-H "Authorization: Bearer <jeton>" \
-H "Accept: application/json"
PATCH /v2/medias/ecriture/{ecNo}/{fichier}
Appel PATCH sur medias/ecriture.
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|---|---|---|---|
ecNo |
path | integer (int32) |
oui | - |
fichier |
path | string |
oui | - |
Corps de la requête (application/json)
Schéma MediaModificationV2 - 3 propriétés (détail : Schémas).
Réponses
| Code | Description | Schéma de data |
|---|---|---|
200 |
OK | - |
401 |
Unauthorized | - |
403 |
Forbidden | - |
Exemple
curl -s -X PATCH "https://<votre-connecteur>/v2/medias/ecriture/<ecNo>/<fichier>" \
-H "Authorization: Bearer <jeton>" \
-H "Content-Type: application/json" \
-d '{"commentaire": "…", "datas": "…", "transmettre": false}'
GET /v2/medias/immobilisation/{imCode}
Appel GET sur medias/immobilisation.
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|---|---|---|---|
imCode |
path | string |
oui | - |
Réponses
| Code | Description | Schéma de data |
|---|---|---|
200 |
OK | tableau de MediaV2 |
401 |
Unauthorized | - |
403 |
Forbidden | - |
Exemple
curl -s -X GET "https://<votre-connecteur>/v2/medias/immobilisation/<imCode>" \
-H "Authorization: Bearer <jeton>" \
-H "Accept: application/json"
POST /v2/medias/immobilisation/{imCode}
Appel POST sur medias/immobilisation.
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|---|---|---|---|
imCode |
path | string |
oui | - |
Corps de la requête (application/json)
Schéma MediaEcritureV2 - 4 propriétés (détail : Schémas).
Réponses
| Code | Description | Schéma de data |
|---|---|---|
201 |
Created | MediaStockeV2 |
401 |
Unauthorized | - |
403 |
Forbidden | - |
Exemple
curl -s -X POST "https://<votre-connecteur>/v2/medias/immobilisation/<imCode>" \
-H "Authorization: Bearer <jeton>" \
-H "Content-Type: application/json" \
-d '{"fichier": "…", "datas": "…", "commentaire": "…"}'
GET /v2/medias/immobilisation/{imCode}/{fichier}
Appel GET sur medias/immobilisation.
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|---|---|---|---|
imCode |
path | string |
oui | - |
fichier |
path | string |
oui | - |
Réponses
| Code | Description | Schéma de data |
|---|---|---|
200 |
OK | - |
401 |
Unauthorized | - |
403 |
Forbidden | - |
Exemple
curl -s -X GET "https://<votre-connecteur>/v2/medias/immobilisation/<imCode>/<fichier>" \
-H "Authorization: Bearer <jeton>" \
-H "Accept: application/json"
DELETE /v2/medias/immobilisation/{imCode}/{fichier}
Appel DELETE sur medias/immobilisation.
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|---|---|---|---|
imCode |
path | string |
oui | - |
fichier |
path | string |
oui | - |
Réponses
| Code | Description | Schéma de data |
|---|---|---|
200 |
OK | - |
401 |
Unauthorized | - |
403 |
Forbidden | - |
Exemple
curl -s -X DELETE "https://<votre-connecteur>/v2/medias/immobilisation/<imCode>/<fichier>" \
-H "Authorization: Bearer <jeton>" \
-H "Accept: application/json"
PATCH /v2/medias/immobilisation/{imCode}/{fichier}
Appel PATCH sur medias/immobilisation.
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|---|---|---|---|
imCode |
path | string |
oui | - |
fichier |
path | string |
oui | - |
Corps de la requête (application/json)
Schéma MediaModificationV2 - 3 propriétés (détail : Schémas).
Réponses
| Code | Description | Schéma de data |
|---|---|---|
200 |
OK | - |
401 |
Unauthorized | - |
403 |
Forbidden | - |
Exemple
curl -s -X PATCH "https://<votre-connecteur>/v2/medias/immobilisation/<imCode>/<fichier>" \
-H "Authorization: Bearer <jeton>" \
-H "Content-Type: application/json" \
-d '{"commentaire": "…", "datas": "…", "transmettre": false}'
GET /v2/medias/tiers/{ctNum}
Appel GET sur medias/tiers.
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|---|---|---|---|
ctNum |
path | string |
oui | - |
Réponses
| Code | Description | Schéma de data |
|---|---|---|
200 |
OK | tableau de MediaV2 |
401 |
Unauthorized | - |
403 |
Forbidden | - |
Exemple
curl -s -X GET "https://<votre-connecteur>/v2/medias/tiers/<ctNum>" \
-H "Authorization: Bearer <jeton>" \
-H "Accept: application/json"
POST /v2/medias/tiers/{ctNum}
Appel POST sur medias/tiers.
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|---|---|---|---|
ctNum |
path | string |
oui | - |
Corps de la requête (application/json)
Schéma MediaEcritureV2 - 4 propriétés (détail : Schémas).
Réponses
| Code | Description | Schéma de data |
|---|---|---|
201 |
Created | MediaStockeV2 |
401 |
Unauthorized | - |
403 |
Forbidden | - |
Exemple
curl -s -X POST "https://<votre-connecteur>/v2/medias/tiers/<ctNum>" \
-H "Authorization: Bearer <jeton>" \
-H "Content-Type: application/json" \
-d '{"fichier": "…", "datas": "…", "commentaire": "…"}'
GET /v2/medias/tiers/{ctNum}/{fichier}
Appel GET sur medias/tiers.
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|---|---|---|---|
ctNum |
path | string |
oui | - |
fichier |
path | string |
oui | - |
Réponses
| Code | Description | Schéma de data |
|---|---|---|
200 |
OK | - |
401 |
Unauthorized | - |
403 |
Forbidden | - |
Exemple
curl -s -X GET "https://<votre-connecteur>/v2/medias/tiers/<ctNum>/<fichier>" \
-H "Authorization: Bearer <jeton>" \
-H "Accept: application/json"
DELETE /v2/medias/tiers/{ctNum}/{fichier}
Appel DELETE sur medias/tiers.
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|---|---|---|---|
ctNum |
path | string |
oui | - |
fichier |
path | string |
oui | - |
Réponses
| Code | Description | Schéma de data |
|---|---|---|
200 |
OK | - |
401 |
Unauthorized | - |
403 |
Forbidden | - |
Exemple
curl -s -X DELETE "https://<votre-connecteur>/v2/medias/tiers/<ctNum>/<fichier>" \
-H "Authorization: Bearer <jeton>" \
-H "Accept: application/json"
PATCH /v2/medias/tiers/{ctNum}/{fichier}
Appel PATCH sur medias/tiers.
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|---|---|---|---|
ctNum |
path | string |
oui | - |
fichier |
path | string |
oui | - |
Corps de la requête (application/json)
Schéma MediaModificationV2 - 3 propriétés (détail : Schémas).
Réponses
| Code | Description | Schéma de data |
|---|---|---|
200 |
OK | - |
401 |
Unauthorized | - |
403 |
Forbidden | - |
Exemple
curl -s -X PATCH "https://<votre-connecteur>/v2/medias/tiers/<ctNum>/<fichier>" \
-H "Authorization: Bearer <jeton>" \
-H "Content-Type: application/json" \
-d '{"commentaire": "…", "datas": "…", "transmettre": false}'
Schémas
Schémas résolus à un niveau : les propriétés qui référencent un autre schéma sont citées par leur nom, sans être dépliées.
MediaEcritureV2
MediaEcritureV2 - 4 propriétés
| Propriété | Type | Notes |
|---|---|---|
fichier |
string |
nullable |
datas |
string |
nullable |
commentaire |
string |
nullable |
transmettre |
boolean |
nullable |
MediaModificationV2
MediaModificationV2 - 3 propriétés
| Propriété | Type | Notes |
|---|---|---|
commentaire |
string |
nullable |
datas |
string |
nullable |
transmettre |
boolean |
nullable |
MediaStockeV2
MediaStockeV2 - 2 propriétés
| Propriété | Type | Notes |
|---|---|---|
fichier |
string |
nullable |
chemin |
string |
nullable |