API · v1 · stabiel
CODEMETA OSDeveloper Center
NL
Console openen

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.

Datamodel

Deze operatie werkt op de entiteit Campaign (campaign). Alle 34 velden — type, validatie, verplichte velden, relaties — staan in de schemareferentie.

Request body

NaamTypeBeschrijving
assigneeUserIdstring
assigneeTeamIdstring
outcomestring
outcomeNotesstring
notesstring
prioritystring

Padparameters

NaamTypeBeschrijving
idvereiststring
itemIdvereiststring

Voorbeeld

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"
});

Antwoordcodes

HTTP Betekenis
200 Default Response

Zoeken