- source: "require 'stackone_client'\n\n\ns = ::StackOne::StackOne.new\ns.config_security(\n ::StackOne::Shared::Security.new(\n username: \"\",\n password: \"\",\n )\n)\n\n \nres = s.ats.update_application(id=\"<id>\", x_account_id=\"<id>\", ats_update_application_request_dto=::StackOne::Shared::AtsUpdateApplicationRequestDto.new(\n passthrough: {\n \"other_known_names\": \"John Doe\",\n },\n rejected_reason_id: \"f223d7f6-908b-48f0-9237-b201c307f609\",\n custom_fields: [\n ::StackOne::Shared::ApplicationCustomFields.new(\n id: \"8187e5da-dc77-475e-9949-af0f1fa4e4e3\",\n remote_id: \"8187e5da-dc77-475e-9949-af0f1fa4e4e3\",\n name: \"Training Completion Status\",\n value: \"Completed\",\n value_id: \"value_456\",\n remote_value_id: \"e3cb75bf-aa84-466e-a6c1-b8322b257a48\",\n ),\n ],\n application_status: ::StackOne::Shared::AtsUpdateApplicationRequestDtoApplicationStatus.new(\n value: ::StackOne::Shared::AtsUpdateApplicationRequestDtoValue::HIRED,\n source_value: \"Hired\",\n ),\n source: ::StackOne::Shared::AtsUpdateApplicationRequestDtoSource.new(\n id: \"8187e5da-dc77-475e-9949-af0f1fa4e4e3\",\n name: \"LinkedIn\",\n ),\n interview_stage_id: \"18bcbb1b-3cbc-4198-a999-460861d19480\",\n))\n\nif ! res.update_result.nil?\n # handle response\nend"
0 commit comments