Delete Company by lookup key
DELETE/companies/:lookupKey/:lookupValue
Delete a company by a specific lookupKey / lookupId combination. A deleted company will be moved to the Propeller Recycle bin. This means the deleted company can be restored, however, only via the Propeller backoffice.
Request
Path Parameters
Lookup key. Read more about company lookup keys
The value of the key (id or sourceId)
Responses
- 200
- 400
- 404
Delete 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)
- Delete Company by lookup key - 200
Schema
data
object
{
"data": {},
"messages": [
"Company deleted"
]
}
{
"data": {},
"messages": [
"Company deleted"
]
}
Delete Company by lookup key - 400 (invalid lookup key)
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)
- Delete Company by lookup key - 400 (invalid lookup key)
Schema
error
object
{
"error": {
"code": 10006,
"messages": [
"Invalid lookup key [ids], key must contain one of the following values: [id,sourceId,]"
],
"moreInfo": "https://www.propel.us/docs/errors/10006",
"status": 400,
"type": "InvalidLookupKey"
}
}
{
"error": {
"code": 10006,
"messages": [
"Invalid lookup key [ids], key must contain one of the following values: [id,sourceId,]"
],
"moreInfo": "https://www.propel.us/docs/errors/10006",
"status": 400,
"type": "InvalidLookupKey"
}
}
Delete 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)
- Delete Company by lookup key - 404
Schema
error
object
{
"error": {
"code": 40006,
"messages": [
"Company with sourceId [9483] not found"
],
"moreInfo": "https://www.propel.us/docs/errors/40006",
"status": 404,
"type": "CompanyNotFound"
}
}
{
"error": {
"code": 40006,
"messages": [
"Company with sourceId [9483] not found"
],
"moreInfo": "https://www.propel.us/docs/errors/40006",
"status": 404,
"type": "CompanyNotFound"
}
}