Data Action - Script API

Greetings, Community,

Reporting a 400 Bad Request when updating a Script via the Data Action API. Specifically, it’s failing on parameter validation.

  • Endpoint: /api/v2/scripts/{scriptId} - PATCH request.
  • SDK Version: Genesys Cloud Node.js SDK v8.2.0
  • Payload: Attempting to update the divisionId property. The Resource Center article for Script API states this is a valid updatable property.
  • Error: {"message":"Invalid request. Parameter validation failed.","errors":[{"field":"divisionId","code":"invalid_parameter","message":"divisionId must be a valid UUID."}]}. The UUID is valid.
  • Architect: Flow uses a Data Action to call this API after a user input. The same UUID works when manually tested in Postman.

It’s not a UUID format issue. This behavior is inconsistent.