Aller au contenu

Créer un export tenantisé

POST
/relation-tiers/v1/exports
curl --request POST \
--url https://example.com/relation-tiers/v1/exports \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'Idempotency-Key: example' \
--data '{ "purpose": "example", "scope": {}, "format": "example" }'
X-Tenant-Id
string

Facultatif — le tenant fait foi dans le jeton ; s’il est fourni, il doit être identique.

X-Correlation-Id
string
Idempotency-Key
required
string
Media typeapplication/json
object
purpose
required
string
scope
required
object
format
string
Examplegenerated
{
"purpose": "example",
"scope": {},
"format": "example"
}

L’export est accepté — préparé puis remis sous trace.

Media typeapplication/json
object
id
required
string
aggregateVersion
integer
status
required
string
Examplegenerated
{
"id": "example",
"aggregateVersion": 1,
"status": "example"
}

Aucune identité présentée (401).

L’identité présentée n’a pas la famille d’accès relation-tiers:administration (403).

Donnée comprise mais non admissible — règle identifiée.

Media typeapplication/json
object
type
required
string
title
required
string
status
required
integer
code
required
string
detail
string
instance
string
correlationId
required
string
retryable
boolean
violations
Array<object>
object
field
string
reason
string
ruleId
string
Examplegenerated
{
"type": "example",
"title": "example",
"status": 1,
"code": "example",
"detail": "example",
"instance": "example",
"correlationId": "example",
"retryable": true,
"violations": [
{
"field": "example",
"reason": "example",
"ruleId": "example"
}
]
}