POST
/
companies
Create company
curl --request POST \
  --url https://staging.yasmina.ai/api/v1/medical/companies \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "name": "<string>",
  "name_ar": "<string>",
  "sponsor_number": "<string>",
  "email_address": "<string>",
  "phone_number": "<string>",
  "commercial_registration_number": "<string>"
}'
{
  "name": "Syarah",
  "name_ar": "شركة سيارة",
  "sponsor_number": "123",
  "email_address": "[email protected]",
  "phone_number": "+966551234567",
  "commercial_registration_number": "456",
  "client_id": "9ba293f7-5f62-4e82-be9b-d804cc9d392c",
  "updated_at": "2024-12-28T09:50:14.000000Z",
  "created_at": "2024-12-28T09:50:14.000000Z",
  "id": 1
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json

Response

200
application/json

Company created

The response is of type object.