persons.update
Modify personal information for individuals in the Ryft system, including contact details, identification data, and address records to maintain accurate customer profiles.
Instructions
Update a Ryft person.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| accountId | Yes | ||
| personId | Yes | ||
| firstName | No | ||
| middleNames | No | ||
| lastName | No | ||
| No | |||
| dateOfBirth | No | ||
| countryOfBirth | No | ||
| gender | No | ||
| nationalities | No | ||
| address | No | ||
| phoneNumber | No | ||
| businessRoles | No | ||
| documents | No | ||
| metadata | No |
Implementation Reference
- src/tools/persons.ts:79-88 (handler)The handler implementation for the 'persons.update' tool, which takes the validated arguments and calls the API to update a person.
registerTool( 'persons.update', 'Update a Ryft person.', updatePersonSchema.shape, async (args) => { const parsed = updatePersonSchema.parse(args); const { accountId, personId, ...body } = parsed; return client.patch(`/accounts/${accountId}/persons/${personId}`, body); }, ); - src/tools/persons.ts:28-32 (schema)The Zod schema validation for the 'persons.update' tool input.
const updatePersonSchema = z.object({ accountId: z.string().min(1), personId: z.string().min(1), ...personBaseSchema.partial().shape, });