Poser une restriction de négociabilité — hors cycle de vie, cumulable.
POST
/tenants/{tenant}/instruments/{instrument}/restrictions
const url = 'https://example.com/tenants/example/instruments/example/restrictions';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"type":"ferme_aux_souscriptions","du":"2026-04-15","au":"2026-04-15","provenance":{"source":"document","document":"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/example/restrictions \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "type": "ferme_aux_souscriptions", "du": "2026-04-15", "au": "2026-04-15", "provenance": { "source": "document", "document": "example" } }'Autorisations
Section intitulée « Autorisations »Paramètres
Section intitulée « Paramètres »Paramètres (path)
Section intitulée « Paramètres (path) »tenant
required
string
Le teneur de compte — la muraille, aucun geste ne la franchit.
instrument
required
string
L’identifiant publié de l’instrument chez ce tenant.
Corps de la requêterequired
Section intitulée « Corps de la requêterequired »Media typeapplication/json
object
type
required
string
du
required
string format: date
au
La borne de fin, exclue — absente pour une restriction ouverte (levée plus tard).
string format: date
provenance
required
object
source
required
string
document
La référence du document — obligatoire quand la source est un document.
string
Réponses
Section intitulée « Réponses »La restriction est posée, en vigueur sur sa période.
La demande est irrecevable — le motif nomme le champ.
Media typeapplication/json
object
motif
required
Le motif, qui nomme le champ, l’identifiant ou l’invariant en cause.
string
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 (instrument inconnu, type inapplicable à la nature) — motivé.
Media typeapplication/json
object
motif
required
Le motif, qui nomme le champ, l’identifiant ou l’invariant en cause.
string
Examplegenerated
{ "motif": "example"}