POST api/offres/{id}/rubriques/{rubriqueKey}/occurrences
Création d'une occurrence
Description de la Requête
Paramètres de l'URI
| Nom | Description | Type | Informations complémentaires |
|---|---|---|---|
| id |
Identifiant de l'offre |
string |
Required |
| rubriqueKey |
Identifiant de la rubrique |
string |
Required |
Paramètres du corps de la requête (BODY)
Définition de l'occurrence de l'offre
OccurrenceInputData| Nom | Description | Type | Informations complémentaires |
|---|---|---|---|
| id |
Identifiant de l'occurrence |
integer |
Aucune. |
| champs |
Les champs d'une occurrence |
Collection of ChampInputData |
Aucune. |
Formats de la requête
application/json, text/json
Sample:
{
"id": 1,
"champs": [
{
"langue": "fr-FR",
"valeur": "d0dfc8b9-a612-4518-9442-81a033f1622b",
"typeChamp": 5,
"key": null,
"profilId": null
},
{
"langue": "fr-FR",
"valeur": "d0dfc8b9-a612-4518-9442-81a033f1622b",
"typeChamp": 5,
"key": null,
"profilId": null
}
]
}
application/xml, text/xml
Sample:
<OccurrenceInputData xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ApiModels.v3.Offre.Occurrence">
<champs xmlns:d2p1="http://schemas.datacontract.org/2004/07/ApiModels.v3.Offre.Champ">
<d2p1:ChampInputData>
<d2p1:key i:nil="true" />
<d2p1:langue>fr-FR</d2p1:langue>
<d2p1:profilId i:nil="true" />
<d2p1:typeChamp>Liste</d2p1:typeChamp>
<d2p1:valeur xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/" i:type="d4p1:guid">d0dfc8b9-a612-4518-9442-81a033f1622b</d2p1:valeur>
</d2p1:ChampInputData>
<d2p1:ChampInputData>
<d2p1:key i:nil="true" />
<d2p1:langue>fr-FR</d2p1:langue>
<d2p1:profilId i:nil="true" />
<d2p1:typeChamp>Liste</d2p1:typeChamp>
<d2p1:valeur xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/" i:type="d4p1:guid">d0dfc8b9-a612-4518-9442-81a033f1622b</d2p1:valeur>
</d2p1:ChampInputData>
</champs>
<id>1</id>
</OccurrenceInputData>
application/x-www-form-urlencoded
Sample:
Exemple non disponible.
Description de la réponse
Description de la ressource retournée
OccurrenceInputData| Nom | Description | Type | Informations complémentaires |
|---|---|---|---|
| id |
Identifiant de l'occurrence |
integer |
Aucune. |
| champs |
Les champs d'une occurrence |
Collection of ChampInputData |
Aucune. |
Formats de réponse
application/json, text/json
Sample:
{
"id": 1,
"champs": [
{
"langue": "fr-FR",
"valeur": "d0dfc8b9-a612-4518-9442-81a033f1622b",
"typeChamp": 5,
"key": null,
"profilId": null
},
{
"langue": "fr-FR",
"valeur": "d0dfc8b9-a612-4518-9442-81a033f1622b",
"typeChamp": 5,
"key": null,
"profilId": null
}
]
}
application/xml, text/xml
Sample:
<OccurrenceInputData xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ApiModels.v3.Offre.Occurrence">
<champs xmlns:d2p1="http://schemas.datacontract.org/2004/07/ApiModels.v3.Offre.Champ">
<d2p1:ChampInputData>
<d2p1:key i:nil="true" />
<d2p1:langue>fr-FR</d2p1:langue>
<d2p1:profilId i:nil="true" />
<d2p1:typeChamp>Liste</d2p1:typeChamp>
<d2p1:valeur xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/" i:type="d4p1:guid">d0dfc8b9-a612-4518-9442-81a033f1622b</d2p1:valeur>
</d2p1:ChampInputData>
<d2p1:ChampInputData>
<d2p1:key i:nil="true" />
<d2p1:langue>fr-FR</d2p1:langue>
<d2p1:profilId i:nil="true" />
<d2p1:typeChamp>Liste</d2p1:typeChamp>
<d2p1:valeur xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/" i:type="d4p1:guid">d0dfc8b9-a612-4518-9442-81a033f1622b</d2p1:valeur>
</d2p1:ChampInputData>
</champs>
<id>1</id>
</OccurrenceInputData>