Skip to main content
POST
/
okapicrm.v1.OkapiCRMService
/
UpsertRecord
cURL
curl --request POST \
  --url https://api.okapicrm.com/okapicrm.v1.OkapiCRMService/UpsertRecord \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "matchOn": "<string>",
  "record": {
    "archived": true,
    "createTime": {},
    "createdBy": {
      "apiKeyId": "<string>",
      "builtinIntegration": [
        "BUILTIN_INTEGRATION_UNSPECIFIED",
        "BUILTIN_INTEGRATION_GMAIL_V1",
        "BUILTIN_INTEGRATION_OUTLOOK_V1",
        "BUILTIN_INTEGRATION_LINKEDIN_V1"
      ],
      "userId": "<string>"
    },
    "deleted": true,
    "fields": {},
    "formulaErrors": {},
    "id": "<string>",
    "objectApiName": "<string>",
    "objectId": "<string>"
  },
  "updateFields": [
    "<string>"
  ]
}
'
{
  "archived": true,
  "createTime": {},
  "createdBy": {
    "apiKeyId": "<string>",
    "builtinIntegration": [
      "BUILTIN_INTEGRATION_UNSPECIFIED",
      "BUILTIN_INTEGRATION_GMAIL_V1",
      "BUILTIN_INTEGRATION_OUTLOOK_V1",
      "BUILTIN_INTEGRATION_LINKEDIN_V1"
    ],
    "userId": "<string>"
  },
  "deleted": true,
  "fields": {},
  "formulaErrors": {},
  "id": "<string>",
  "objectApiName": "<string>",
  "objectId": "<string>"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

matchOn
string
record
record · object
updateFields
string[]

Response

archived
boolean
createTime
create_time · object
createdBy
created_by · object
deleted
boolean
fields
fields · object
formulaErrors
formula_errors · object
id
string
objectApiName
string
objectId
string