Update company
Companies
PUT company (admin)
Endpoint
PUT /api/v1/companies/:id
Parameters
Name | Description |
---|---|
company[name] required | Company name |
company[address] required | Company address |
company[license_number] required | Company license number |
company[vat_number] required | Company vat number |
company[invoice_email] required | Company invoice email |
company[billing_phone_number] required | Company billing phone number |
company[billing_full_name] required | Company billing full name |
company[billing_address] required | Company billing address |
company[due_days] | Company due days |
Request
Route
PUT /api/v1/companies/27
Headers
Accept: application/json
Content-Type: application/json
Authorization: Bearer eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOiIxMjIiLCJzY3AiOiJ1c2VyIiwiYXVkIjpudWxsLCJpYXQiOjE3Mzc1NTE1NTIsImV4cCI6MTc0MDE0MzU1MiwianRpIjoiYjg0NmZhODgtZWJkZC00MmQ5LThkMmItNjczNWYxNWIwNTkxIn0.6OU9LVfe54DUD4IXQ3YIEsXYqqtS4ApqIgviZnteFUY
Host: example.org
Cookie:
Body
{
"company": {
"name": "Haag-Olson",
"address": "81454 Emard Street, Watersberg, OH Y23 3LU",
"license_number": "37124226569",
"invoice_email": "hal@von-bednar.test",
"vat_number": "80314193881",
"billing_phone_number": "+4407854893972",
"billing_full_name": "Julene Goodwin Sr.",
"billing_address": "3879 Klein Circle, North Garryhaven, TX W4A 9JH",
"due_days": 20
}
}
Response
Simulated Response
Status
200
Headers
x-frame-options: SAMEORIGIN
x-xss-protection: 0
x-content-type-options: nosniff
x-permitted-cross-domain-policies: none
referrer-policy: strict-origin-when-cross-origin
content-type: application/json; charset=utf-8
vary: Accept, Origin
etag: W/"ee10d3640de8cf11811ec02b83f89d33"
cache-control: max-age=0, private, must-revalidate
x-request-id: 3ffef94a-e74e-4c5a-9bdd-e86bc4d82800
x-runtime: 0.023583
content-length: 374
Body
{
"company": {
"id": 27,
"address": "81454 Emard Street, Watersberg, OH Y23 3LU",
"billing_address": "3879 Klein Circle, North Garryhaven, TX W4A 9JH",
"billing_full_name": "Julene Goodwin Sr.",
"billing_phone_number": "+4407854893972",
"due_days": 20,
"invoice_email": "hal@von-bednar.test",
"license_number": "37124226569",
"name": "Haag-Olson",
"state": "verified",
"vat_number": "80314193881"
}
}