We are in the process of mass updating our forms with the Marketo REST API to replace an old field with a new field. Right now am I testing my script on a single test form until it's ready.
The script is almost complete, but I'm having 2 issues with the API:
{Endpoint Reference: https://developers.marketo.com/rest-api/endpoint-reference/asset-endpoint-reference/#!/Form_Fields/d...
code: '704',
message: 'Invalid form field rearrange request. Number of fields in the form don\'t match with the number of field keys passed in the request.'
}
I have successfully been able to make other API calls throughout this process like getting all fields for the form, adding a new field to the form and approving the form and I've attached my code for reference.
All help is appreciated, thank you!