Update Company by lookup key
PATCH/companies/:lookupKey/:lookupValue
Use this endpoint to update company by lookup key. If multiple companies with the same lookup key exist, use additional filtering depending on the lookup key to uniquely identify the company (e.g. source
and language
for lookup key sourceId
).
Request
Path Parameters
Lookup key. Read more about company lookup keys
The value of the key (id or sourceId)
- application/json
Body
parent
object
Responses
- 200
- 400
- 404
Update Company by lookup key - 200
Response Headers
Alt-Svc
string
Via
string
alt-svc
string
content-length
string
date
string
return-format
string
x-request-id
string
- application/json
- Schema
- Example (from schema)
- Update Company by lookup key - 200
Schema
data
object
parent
object
{
"data": {
"budget": "N",
"budgetInherit": "N",
"cocNumber": "75564998",
"debtorId": "75564998",
"department": "",
"id": 9482,
"inheritOrderList": "N",
"inheritProductList": "Y",
"name": "Propellor B.V.",
"notes": "Company created from API",
"office": "",
"parent": {
"id": 106
},
"taxNumber": "NL860325386B01"
},
"messages": [
"Company updated"
],
"total": 1
}
{
"data": {
"budget": "N",
"budgetInherit": "N",
"cocNumber": "75564998",
"debtorId": "75564998",
"department": "",
"id": 9482,
"inheritOrderList": "N",
"inheritProductList": "Y",
"name": "Propellor B.V.",
"notes": "Company created from API",
"office": "",
"parent": {
"id": 106
},
"taxNumber": "NL860325386B01"
},
"messages": [
"Company updated"
],
"total": 1
}
Update Company by lookup key - 400 (invalid schema)
Response Headers
Alt-Svc
string
Via
string
alt-svc
string
content-length
string
date
string
return-format
string
x-request-id
string
- application/json
- Schema
- Example (from schema)
- Update Company by lookup key - 400 (invalid schema)
Schema
error
object
{
"error": {
"code": 10007,
"messages": [
"#: extraneous key [company] is not permitted"
],
"moreInfo": "https://www.propel.us/docs/errors/10007",
"status": 400,
"type": "SchemaValidationException"
}
}
{
"error": {
"code": 10007,
"messages": [
"#: extraneous key [company] is not permitted"
],
"moreInfo": "https://www.propel.us/docs/errors/10007",
"status": 400,
"type": "SchemaValidationException"
}
}
Update Company by lookup key - 404
Response Headers
Alt-Svc
string
Via
string
alt-svc
string
content-length
string
date
string
return-format
string
x-request-id
string
- application/json
- Schema
- Example (from schema)
- Update Company by lookup key - 404
Schema
error
object
{
"error": {
"code": 40006,
"messages": [
"Company with id [9484] not found"
],
"moreInfo": "https://www.propel.us/docs/errors/40006",
"status": 404,
"type": "CompanyNotFound"
}
}
{
"error": {
"code": 40006,
"messages": [
"Company with id [9484] not found"
],
"moreInfo": "https://www.propel.us/docs/errors/40006",
"status": 404,
"type": "CompanyNotFound"
}
}