cURL
curl --request POST \ --url https://api.example.com/api/companies \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "name": "Tech Corp", "email": "[email protected]", "latitude": 52.520008, "longitude": 13.404954 } '
{ "message": "<string>", "data": { "id": 123, "user_id": 123, "name": "<string>", "email": "<string>", "latitude": 123, "longitude": 123 } }
Enter your JWT token in the format 'Bearer '
"Tech Corp"
"[email protected]"
52.520008
13.404954
Company created successfully
Show child attributes