Request Types

Request Types

The most commonly-used HTTP methods are POST, GET, PATCH, and DELETE that correspond to create, read, update, and delete (or CRUD) operations. You can add the following endpoints after the version in the API URL.

MethodDescriptionResult
### GETUsed to retrieve an entity or list of entities. GET requests are always read-only. To retrieve a single entity, use its id in the URL. To retrieve multiple entities, leave it blank.Upon successful execution, GET method returns the data in the body and a 200 OK code.
### POSTUsed to create an entity in VWO. For example, a variation in a campaign.
POST requests have a JSON encoded body and the Content-Type: application/json header.
Upon successful execution, POST method returns the created entity as JSON in the body, including a new id argument, and a 201 CREATED code.
### PATCHUsed to update an entity in VWO. The URL includes the id of the entity to update.Upon successful execution, PATCH method returns a 200 OK code and the data in the body.
### DELETEUsed to remove an entity in VWO. The URL includes the id of the entity to delete. No data is sent in the body.The response includes a 204 NO CONTENT code.