Edit a customer's name, website, industry or timezone
PATCH
/v1/mobile/workspace/customers/{organization_id}
const url = 'https://api.vocapable.com/v1/mobile/workspace/customers/example';const options = { method: 'PATCH', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"expected_revision":1,"name":"example","website":"example","industry":"example","timezone":"example"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request PATCH \ --url https://api.vocapable.com/v1/mobile/workspace/customers/example \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "expected_revision": 1, "name": "example", "website": "example", "industry": "example", "timezone": "example" }'expected_revision is the customer revision this phone last saw; a change saved
meanwhile answers 409 stale_revision with current_revision. Ownership changes
only through /reassign.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”organization_id
required
Organization Id
string
Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
WorkspaceOrganizationUpdate
object
Examplegenerated
{ "expected_revision": 1, "name": "example", "website": "example", "industry": "example", "timezone": "example"}Responses
Section titled “Responses”Successful Response
Media typeapplication/json
WorkspaceOrganization
A relationship with its people, open work and source.
object
id
required
Id
string
name
required
Name
string
kind
required
Kind
string
status
required
Status
string
owner
required
Any of:
WorkspacePersonRef
A teammate named on a record: the id the server holds and the name to show.
object
user_id
required
User Id
string
name
required
Name
string
null
source
required
Source
string
people
required
People
Array<object>
WorkspacePersonOne person (a contacts row) inside a relationship.
object
contact_id
required
Contact Id
string
display_name
required
Display Name
string
phone_e164
required
Phone E164
string
owner
required
Any of:
WorkspacePersonRef
A teammate named on a record: the id the server holds and the name to show.
object
user_id
required
User Id
string
name
required
Name
string
null
do_not_contact
required
Do Not Contact
boolean
contact_points
required
Contact Points
Array<object>
WorkspaceContactPointobject
policy
required
WorkspacePolicySummary
The current contact-policy answer for the viewing person, on one channel.
object
channel
required
Channel
string
allowed
required
Allowed
boolean
holds
required
Holds
Array<object>
WorkspacePolicyHoldobject
code
required
Code
string
message
required
Message
string
recovery
required
Recovery
string
evaluated_at
required
Evaluated At
string format: date-time
policy_version
required
Policy Version
string
window_jurisdictions
Window Jurisdictions
Array<string>
open_opportunities
required
Open Opportunities
Array<object>
WorkspaceOpportunitySummaryobject
id
required
Id
string
title
required
Title
string
stage
required
Stage
string
amount_minor
required
Amount Minor
integer
currency
required
Currency
string
owner
required
Any of:
WorkspacePersonRef
A teammate named on a record: the id the server holds and the name to show.
object
user_id
required
User Id
string
name
required
Name
string
null
open_tasks
required
Open Tasks
Array<object>
WorkspaceTaskobject
id
required
Id
string
kind
required
Kind
string
title
required
Title
string
owner
required
Any of:
WorkspacePersonRef
A teammate named on a record: the id the server holds and the name to show.
object
user_id
required
User Id
string
name
required
Name
string
null
status
required
Status
string
revision
required
Revision
integer
created_at
required
Created At
string format: date-time
updated_at
required
Updated At
string format: date-time
needs_review
required
Needs Review
boolean
revision
required
Revision
integer
created_at
required
Created At
string format: date-time
updated_at
required
Updated At
string format: date-time
Example
{ "kind": "business", "status": "active", "people": [ { "contact_points": [ { "kind": "phone" } ], "policy": { "channel": "voice", "holds": [ { "code": "do_not_contact" } ] } } ], "open_opportunities": [ { "stage": "new" } ], "open_tasks": [ { "kind": "follow_up", "subject_type": "handoff", "status": "open" } ]}Validation Error
Media typeapplication/json
HTTPValidationError
object
detail
Detail
Array<object>
ValidationErrorobject
loc
required
Location
Array
msg
required
Message
string
type
required
Error Type
string
input
Input
ctx
Context
object
Examplegenerated
{ "detail": [ { "loc": [ "example" ], "msg": "example", "type": "example", "input": "example", "ctx": {} } ]}