---
updatedAt: 2026-09-07T18:58:08.000Z
agentTools:
  projectIndex: https://developers.viral-loops.com/llms.txt
---

# Edit Participant

Use this Endpont to edit the First Name, Last Name and Referral Count of your Participants

> 📊 Rate Limit: 300 requests per minute

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "Viral Loops API",
    "version": "3.0.0"
  },
  "servers": [
    {
      "url": "https://app.viral-loops.com/api/v3"
    }
  ],
  "paths": {
    "/campaign/participant": {
      "put": {
        "summary": "Edit Participant",
        "description": "Use this Endpont to edit the First Name, Last Name and Referral Count of your Participants\n\n> 📊 Rate Limit: 300 requests per minute",
        "tags": [
          "Participant"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "apiToken": {
                    "type": "string",
                    "description": "API token is required."
                  },
                  "email": {
                    "type": "string",
                    "format": "email",
                    "description": "Email is optional."
                  },
                  "referralCode": {
                    "type": "string",
                    "description": "Referral code is optional."
                  },
                  "newAttributes": {
                    "type": "object",
                    "description": "Object containing new attributes; at least one of 'firstname', 'lastname', 'referralCount', 'conversionCount', or 'extraDataJson' must be provided.",
                    "properties": {
                      "firstname": {
                        "type": "string",
                        "nullable": true,
                        "default": ""
                      },
                      "lastname": {
                        "type": "string",
                        "nullable": true,
                        "default": ""
                      },
                      "referralCount": {
                        "type": "integer"
                      },
                      "conversionCount": {
                        "type": "integer"
                      },
                      "extraDataJson": {
                        "type": "object",
                        "description": "Object containing custom field values. Values are merged with existing extraDataJson.",
                        "additionalProperties": true
                      }
                    },
                    "required": [
                      "firstname",
                      "lastname",
                      "referralCount",
                      "conversionCount"
                    ]
                  },
                  "sendEmails": {
                    "type": "boolean",
                    "description": "Optional flag to send emails."
                  },
                  "triggerIntegrations": {
                    "type": "boolean",
                    "description": "Optional flag to trigger integrations."
                  }
                },
                "required": [
                  "apiToken",
                  "newAttributes"
                ]
              }
            }
          }
        },
        "parameters": [
          {
            "name": "apiToken",
            "in": "header",
            "description": "Only use the `apiToken` in secure contexts. <a> Where to find it? </a>",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "name": "success",
                  "description": "",
                  "schema": {
                    "type": "boolean"
                  },
                  "required": false
                }
              }
            }
          },
          "4XX": {
            "description": "Programmer error response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "statusCode": {
                      "type": "number"
                    },
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "description": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "5XX": {
            "description": "Server side error response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "statusCode": {
                      "type": "number"
                    },
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    }
                  }
                },
                "example": {
                  "statusCode": 500,
                  "error": "Internal Server Error",
                  "message": "Something went wrong."
                }
              }
            }
          }
        }
      }
    }
  }
}
```