Update Subject
smi_update_subjectPartially updates an SMI subject via PATCH /subjects/:id. type (PERSON or COMPANY) is required on every call — the SMI backend requires it as a discriminator on every subject PATCH. Editable fields match the API contract: firstName/lastName (or companyName for a COMPANY), birthYear/birthMonth/birthDay, and gender. At least one editable field must be provided.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| type | Yes | The subject's type. Required on every call as a discriminator, even when it isn't changing — SMI's PATCH endpoint rejects the request without it. PERSON for a person, COMPANY for a company or organization. | |
| gender | No | The subject's updated gender (PERSON subjects only). | |
| birthDay | No | The subject's updated day of birth. Treated as the day the company was founded, for a COMPANY subject. | |
| lastName | No | The subject's updated last name, required whenever type is PERSON. | |
| birthYear | No | The subject's updated birth year. Treated as the year the company was founded, for a COMPANY subject. | |
| firstName | No | The subject's updated first name, required whenever type is PERSON. | |
| subjectId | Yes | The SMI subject id to update, from a prior smi_get_subject call. | |
| birthMonth | No | The subject's updated birth month, as a number from 1 (January) to 12 (December). Treated as the month the company was founded, for a COMPANY subject. | |
| companyName | No | The subject's updated company name, required whenever type is COMPANY. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| subjectId | Yes | ||
| updatedFields | Yes |