Référencer un instrument — la hiérarchie est fermée, l'identifiant stable à vie.
const url = 'https://example.com/tenants/example/instruments';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"instrument":"example","libelle":"example","nature":"opcvm","forme":"fcpe_diversifie","isin":"example","entreprise_emettrice":"example","entreprise_debitrice":"example","accord_participation":"example"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://example.com/tenants/example/instruments \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "instrument": "example", "libelle": "example", "nature": "opcvm", "forme": "fcpe_diversifie", "isin": "example", "entreprise_emettrice": "example", "entreprise_debitrice": "example", "accord_participation": "example" }'La nature commande la forme du corps : un OPCVM porte sa forme (l’émettrice pour le seul FCPE d’actionnariat), un CCB son grain (l’entreprise débitrice et l’accord de participation), une devise rien d’autre que son identité. Un identifiant déjà référencé chez ce tenant est refusé. Aucun fait n’est publié.
Autorisations
Section intitulée « Autorisations »Paramètres
Section intitulée « Paramètres »Paramètres (path)
Section intitulée « Paramètres (path) »Le teneur de compte — la muraille, aucun geste ne la franchit.
Corps de la requêterequired
Section intitulée « Corps de la requêterequired »object
L’identifiant publié — unique chez ce tenant, stable à vie.
Obligatoire pour un OPCVM.
Le code ISIN, s’il existe — OPCVM seulement.
L’identifiant publié de l’émettrice — obligatoire pour le seul FCPE d’actionnariat.
L’identifiant publié de la débitrice — obligatoire pour un CCB.
L’identifiant publié de l’accord — obligatoire pour un CCB (le grain entreprise × accord).
Réponses
Section intitulée « Réponses »L’instrument est référencé, commercialisable.
La demande est irrecevable (champ manquant, date mal formée, flottant) — le motif nomme le champ.
object
Le motif, qui nomme le champ, l’identifiant ou l’invariant en cause.
Examplegenerated
{ "motif": "example"}Aucune identité présentée.
L’identité présentée n’a pas la famille d’accès administration.
Le référentiel refuse (identifiant déjà référencé, invariant de nature violé) — motivé.
object
Le motif, qui nomme le champ, l’identifiant ou l’invariant en cause.
Examplegenerated
{ "motif": "example"}