Contendar Help

Update submission

Change fields on an NPS submission. Send only the fields you want to change. The score cannot be changed.

PATCH /nps/submissions/{npsSubmissionId}

Authentication

Send your API key as a bearer token. See Authentication .

Path parameters

ParameterTypeNotes
npsSubmissionIdUUIDThe ID of the submission.

Request body

FieldTypeRequiredNotes
projectIdUUIDyesThe project the submission belongs to.
commentstringnoNew comment text.
statusstringnoactive or flagged. Flag a response to follow it up.
customerIdUUID or nullnoLink to a customer, or send null to unlink.
{
  "projectId": "8a7b6c5d-4e3f-2a1b-0c9d-8e7f6a5b4c3d",
  "status": "flagged"
}

Response

Returns the updated submission. See List NPS submissions for the meaning of each field.

Errors

Returns 404 if no submission with that ID exists in the project.

Example

curl -X PATCH "https://app.contendar.com/api/v1/nps/submissions/d3f2e5c4-8b6a-4d0c-9e3f-4a5b6c7d8e9f" \
  -H "Authorization: Bearer ck_your_key_here" \
  -H "Content-Type: application/json" \
  -d '{ "projectId": "YOUR_PROJECT_ID", "status": "flagged" }'

Related pages

Was this helpful?