Restsharp Post Json Example is an example object payload from RestSharp, with 6 top-level fields. It illustrates the shape of data this provider's APIs accept or return.
{
"title": "POST JSON Request with RestSharp",
"description": "Example showing how to make a POST request with a JSON body using RestSharp's PostJsonAsync shortcut.",
"language": "csharp",
"version": "114.0.0",
"code": "using RestSharp;\n\nvar client = new RestClient(\"https://api.example.com\");\n\nvar newUser = new CreateUserRequest\n{\n Name = \"John Smith\",\n Email = \"john@example.com\"\n};\n\nvar created = await client.PostJsonAsync<CreateUserRequest, User>(\n \"/users\",\n newUser\n);\nConsole.WriteLine($\"Created user ID: {created.Id}\");\n",
"output": {
"type": "User",
"example": {
"id": 123,
"name": "John Smith",
"email": "john@example.com"
}
}
}
Discovery needs no key. Ratings and market analysis are Pro.
Get an API key
Free tier, no form to fill in. Signing in shares your email address with us — we
store it to create your key and to recognise you if you sign in with another
provider. See our Privacy Policy and
Terms.