Fluxir DocsFluxir Docs

Partially update person by ID

PATCH/api/app/persons/{id}

Apply a partial update to the person identified by id.

Header Parameters

X-Tenantstring

Tenant ID

Path Parameters

idintegerrequired

Body application/json

hasVisasboolean
socialAccountsobject
Show socialAccounts properties
facebookstring
twitterstring
linkedinstring
instagramstring
employmentInfoobject[]
Show employmentInfo properties
isCurrentboolean
fromstring<date>
tostring<date>
employerNamestring
descriptionstring
itemsobject
userIdstring<uuid>

Response

OK

No Content

Bad Request

errorobject
Show error properties
codestring
messagestring
detailsstring
dataobject
validationErrorsobject[]
Show validationErrors properties
messagestring
membersstring[]

Unauthorized

errorobject
Show error properties
codestring
messagestring
detailsstring
dataobject
validationErrorsobject[]
Show validationErrors properties
messagestring
membersstring[]

Forbidden

errorobject
Show error properties
codestring
messagestring
detailsstring
dataobject
validationErrorsobject[]
Show validationErrors properties
messagestring
membersstring[]

Not Found

errorobject
Show error properties
codestring
messagestring
detailsstring
dataobject
validationErrorsobject[]
Show validationErrors properties
messagestring
membersstring[]

Internal Server Error

errorobject
Show error properties
codestring
messagestring
detailsstring
dataobject
validationErrorsobject[]
Show validationErrors properties
messagestring
membersstring[]

Not Implemented

errorobject
Show error properties
codestring
messagestring
detailsstring
dataobject
validationErrorsobject[]
Show validationErrors properties
messagestring
membersstring[]
Request
curl -X PATCH "https://api.example.com/api/app/persons/<id>" \
  -H "Content-Type: application/json" \
  -H "X-Tenant: <X-Tenant>" \
  -d '{
  "hasVisas": true,
  "socialAccounts": {
    "facebook": "string",
    "twitter": "string",
    "linkedin": "string",
    "instagram": "string"
  },
  "employmentInfo": [
    {
      "isCurrent": true,
      "from": "2024-01-01",
      "to": "2024-01-01",
      "employerName": "string",
      "description": "string"
    }
  ],
  "items": {},
  "userId": "00000000-0000-0000-0000-000000000000"
}'
Response
(no body)