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

PATCH /v1/campaigns/{id}/items/{itemId}/assignment

PATCH/v1/campaigns/{id}/items/{itemId}/assignment

Update mutable workflow fields on a campaign item: assignee, outcome, notes and priority. Automatically stamps outcomeAt/outcomeBy when outcome changes.

Modèle de données

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

Corps de la requête

NomTypeDescription
assigneeUserIdstring
assigneeTeamIdstring
outcomestring
outcomeNotesstring
notesstring
prioritystring

Paramètres de chemin

NomTypeDescription
idobligatoirestring
itemIdobligatoirestring

Exemple

curl -X PATCH https://api.codemeta-os.de/v1/campaigns/{id}/items/{itemId}/assignment \
  -H "X-Tenant-Id: $TENANT" \
  -H "Content-Type: application/json" \
  -b cookies.txt \
  -d '{
  "assigneeUserId": "string",
  "assigneeTeamId": "string",
  "outcome": "string",
  "outcomeNotes": "string",
  "notes": "string",
  "priority": "LOW"
}'
const result = await cm.campaigns.patch({
  "assigneeUserId": "string",
  "assigneeTeamId": "string",
  "outcome": "string",
  "outcomeNotes": "string",
  "notes": "string",
  "priority": "LOW"
});

Codes de réponse

HTTP Signification
200 Default Response

Recherche