ValeronDocs

Companies

Restore a company

POST/v1/companies/{record_id}/restore

Requires the scope companies:write

Bring back an archived company.

#Path parameters

record_idstringrequired

#Responses

200Successful Response
Show response fieldsHide response fields
archived_atstring (date-time) or nullrequired
fieldsobject (values: object)required
Show child attributesHide child attributes
has_historybooleanrequired
itemsobject[] or null
Show child attributesHide child attributes
is_primarybooleanrequired
sourcestringrequired
valuestringrequired
labelstringrequired
sourcestring or nullrequired
typestringrequired
Allowed values: "text" "long_text" "number" "currency" "date" "datetime" "checkbox" "picklist" "multi_picklist" "url" "phone" "email" "user" "record_link"
valuestring | integer | number | boolean | string[] | object[] | object or nullrequired
A value as stored or shown. Text, dates, times, picklist values, member and record IDs are strings; a multi-select, tags or the points of a contact are lists of strings; money is { amount, currency }; a linked member or record is { id, name } (a list of them for a column that holds several); a status shown with its label is { value, label }; the guests of a meeting are a list of { email, name, response }; a metric column holds { value, unit, sample_size, unknown_count, reason }.
idstringrequired
objectstringrequired
Allowed values: "contacts" "companies"
processingobjectrequired
Show child attributesHide child attributes
errorstring or null
fields_pendingstring[]required
statusstringrequired
Allowed values: "pending" "running" "done" "failed"
updated_atstring (date-time)required

#Errors

Errors use the standard error shape.

StatusMeaning
400The request is not valid.
401Not signed in, or the credentials are not valid.
402The balance is too low.
403Not allowed to do this.
404Not found.
409Conflicts with the current state.
413The request body is too large.
415The content type is not supported.
422A value in the request is not valid.
429Too many requests. Wait for Retry-After seconds.
500Something went wrong on our side.
502A service Valeron depends on refused the request.
503A service Valeron depends on is unavailable.