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

Replace contract

PUT/v1/contracts/{id}

Full replace with optimistic locking.

Modèle de données

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

  • Champs obligatoires : name, partyId, status, startDate, currencyCode, contractCategory
  • Gérés par le serveur : _id, schema, schemaVersion, tenantId, version, createdAt, updatedAt, createdBy, updatedBy, deletedAt, deletedBy, contractNumber, cancellationDeadline, nextNotificationDate, nextRenewalDate, cancellationDeadlineSource, nextNotificationSource, nextRenewalSource. La plateforme attribue ces champs ; ils sont ignorés dans la requête.

Paramètres de chemin

NomTypeDescription
idobligatoirestring

Exemple

curl -X PUT https://api.codemeta-os.de/v1/contracts/{id} \
  -H "X-Tenant-Id: $TENANT" \
  -b cookies.txt
const result = await cm.contracts.put();

Codes de réponse

HTTP Signification
200 Default Response

Recherche