422 Error When Creating Document Automation

22 views
Skip to first unread message

Jacob M. Small

unread,
Dec 28, 2017, 4:20:19 PM12/28/17
to clio-de...@googlegroups.com, a...@clio.com
I'm attempting to use api v4 to create a new document automation. I think I have the json right but I keep getting the same 422 error:

{
  "error": {
    "type": "ArgumentError",
    "message": "An invalid argument was supplied: Formats are required"
  }
}

Here's the json I'm sending:

{
  "data": {
    "document_template": {
      "id": {id}
    },
    "filename": "{desired name}",
    "formats|": "pdf",
    "matter": {
      "id": {id}
    }
  }
}

Is this a bug or something I'm getting wrong? The inclusion of a pipe at the end of the formats key in the documentation seems odd to me, so I tried it with and without the pipe. It has no effect.

Sincerely,

Jacob
--
Jacob M. Small, Principal
J. Madison PLC
1750 Tysons Boulevard, Suite 1500
McLean, Virginia 22102
703.910.5062  F 703.910.5107
www.jmadisonplc.com

This email may contain confidential or privileged information. If you received this email by mistake, please disregard it and delete. If this information appears to contain information intended for someone who isn't you, please notify me immediately.

Tony Valenti

unread,
Dec 28, 2017, 7:12:15 PM12/28/17
to Jacob M. Small, a...@clio.com, clio-de...@googlegroups.com
Their documentation is bugged. Remove the pipe from the JSON. 

By the way, if you’re a .net developer, you might consider taking a look at my library. 

--
You received this message because you are subscribed to the Google Groups "Clio Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to clio-develope...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--


Always glad to help,

AlphaDrive for Clio
 
Tony Valenti
Software Engineer
T: 402-401-7568
E: Tony.V...@AlphaDriveForClio.com
W: www.AlphaDriveForClio.com
 
Schedule a Meeting with Me
This message contains confidential information and is intended only for the intended recipients. If you are not an intended recipient you should not disseminate, distribute or copy this e-mail. Please notify us immediately by e-mail if you have received this e-mail by mistake and delete this e-mail from your system. E-mail transmission cannot be guaranteed to be secure or error-free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses. Therefore we do not accept liability for any errors or omissions in the contents of this message, which arise as a result of e-mail transmission. If verification is required please request a hard-copy version.

Tony Valenti

unread,
Dec 28, 2017, 7:19:44 PM12/28/17
to Jacob M. Small, a...@clio.com, clio-de...@googlegroups.com
Also I think that formats is supposed to be an array. 

Jacob M. Small

unread,
Dec 28, 2017, 9:09:46 PM12/28/17
to Tony Valenti, a...@clio.com, clio-de...@googlegroups.com
There we go. getting rid of the pipe and sending the value as an array did it. Thanks!

As for .net... Nope, just an attorney with too much time on my hands! I write a bit of applescript, javascript, and swift. Mostly I tinker.

December 28, 2017 at 7:19 PM
Also I think that formats is supposed to be an array. 

--


Always glad to help,

AlphaDrive for Clio
 
Tony Valenti
Software Engineer
T: 402-401-7568
E: Tony.V...@AlphaDriveForClio.com
W: www.AlphaDriveForClio.com
 
Schedule a Meeting with Me
This message contains confidential information and is intended only for the intended recipients. If you are not an intended recipient you should not disseminate, distribute or copy this e-mail. Please notify us immediately by e-mail if you have received this e-mail by mistake and delete this e-mail from your system. E-mail transmission cannot be guaranteed to be secure or error-free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses. Therefore we do not accept liability for any errors or omissions in the contents of this message, which arise as a result of e-mail transmission. If verification is required please request a hard-copy version.
December 28, 2017 at 7:12 PM
Their documentation is bugged. Remove the pipe from the JSON. 

By the way, if you’re a .net developer, you might consider taking a look at my library. 

--


Always glad to help,

AlphaDrive for Clio
 
Tony Valenti
Software Engineer
T: 402-401-7568
E: Tony.V...@AlphaDriveForClio.com
W: www.AlphaDriveForClio.com
 
Schedule a Meeting with Me
This message contains confidential information and is intended only for the intended recipients. If you are not an intended recipient you should not disseminate, distribute or copy this e-mail. Please notify us immediately by e-mail if you have received this e-mail by mistake and delete this e-mail from your system. E-mail transmission cannot be guaranteed to be secure or error-free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses. Therefore we do not accept liability for any errors or omissions in the contents of this message, which arise as a result of e-mail transmission. If verification is required please request a hard-copy version.
December 28, 2017 at 4:20 PM
I'm attempting to use api v4 to create a new document automation. I think I have the json right but I keep getting the same 422 error:

{
  "error": {
    "type": "ArgumentError",
    "message": "An invalid argument was supplied: Formats are required"
  }
}

Here's the json I'm sending:

{
  "data": {
    "document_template": {
      "id": {id}
    },
    "filename": "{desired name}",
    "formats|": "pdf",
    "matter": {
      "id": {id}
    }
  }
}

Is this a bug or something I'm getting wrong? The inclusion of a pipe at the end of the formats key in the documentation seems odd to me, so I tried it with and without the pipe. It has no effect.

Sincerely,

Jacob
Reply all
Reply to author
Forward
0 new messages