API · v1 · stable
CODEMETA OSDeveloper Center
FR
Ouvrir la console

PUT /v1/quotations/{id}/opportunity

PUT/v1/quotations/{id}/opportunity

Link or unlink a quotation to/from an opportunity

Modèle de données

Cette opération porte sur l'entité Quotation (quotation). Les 51 champs (type, validation, caractère obligatoire, relations) figurent dans la référence du schéma.

Corps de la requête

NomTypeDescription
opportunityIdobligatoirestringnull

Paramètres de chemin

NomTypeDescription
idobligatoirestring

Exemple

curl -X PUT https://api.codemeta-os.de/v1/quotations/{id}/opportunity \
  -H "X-Tenant-Id: $TENANT" \
  -H "Content-Type: application/json" \
  -b cookies.txt \
  -d '{
  "opportunityId": null
}'
const result = await cm.quotations.put({
  "opportunityId": null
});

Codes de réponse

HTTP Signification
200 Default Response

Recherche